WIP junk for lights management using zigbee remote.

This commit is contained in:
Marcus Scholz 2023-12-14 18:41:43 +01:00
parent 479a1cb8e1
commit ee90402c8b
2 changed files with 65 additions and 0 deletions

View File

@ -74,3 +74,43 @@ moodlight_orange_plasma:
transition: 2 transition: 2
mode: single mode: single
icon: mdi:lightbulb-on icon: mdi:lightbulb-on
moodlight_xmas:
alias: Moodlight XMas
sequence:
- service: light.turn_on
data:
brightness_pct: 20
transition: 2
effect: Plasma
target:
device_id:
- 6dcbd87b459412144bddc42af3ae8b83
- 4edd9b9df7d1f6f2fe7dcc2e5c0eb968
- c64e7c3dcda7f1c23e456959f2c60f39
- service: select.select_option
target:
entity_id: select.wohnzimmer_hinten_color_palette, select.wohnzimmer_vorne_color_palette,
select.kuche_color_palette
data:
option: Orangery
- condition: state
state: 'on'
entity_id: media_player.lg_webos_smart_tv
- service: light.turn_off
target:
device_id: 6dcbd87b459412144bddc42af3ae8b83
data:
transition: 2
mode: single
icon: mdi:lightbulb-on
wled_wohnzimmer_nachster_effekt:
alias: 'WLED: Wohnzimmer nächster Effekt'
sequence:
- service: light.turn_on
target:
entity_id: light.wohnzimmer_hinten, light.wohnzimmer_vorne
data:
effect: '{{ state_attr(''light.wohnzimmer_hinten'', ''effect_list'') | random
}}'
mode: single
icon: mdi:firework

View File

@ -1,3 +1,28 @@
- select:
- name: "All WLED effects"
state: "{{ states('input_text.wled_effekt') }}"
icon: mdi:firework
options: >
{{ state_attr('light.wohnzimmer_hinten', 'effect_list') }}
select_option:
- service: input_text.set_value
target:
entity_id: input_text.wled_effekt
data:
value: "{{ option }}"
- select:
- name: "Available Media Players"
state: "{{ states('input_text.selected_media_player') }}"
options: >
{{ states.media_player
| rejectattr('state', 'in', ['off', 'idle', 'unavailable', 'unknown'])
| map(attribute ='entity_id') | list }}
select_option:
- service: input_text.set_value
target:
entity_id: input_text.selected_media_player
data:
value: "{{ option }}"
- sensor: - sensor:
- name: "power_other" - name: "power_other"
unit_of_measurement: "W" unit_of_measurement: "W"