WIP junk for lights management using zigbee remote.

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

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:
- name: "power_other"
unit_of_measurement: "W"