Made templates for WLED effect and palette working on its own.

This commit is contained in:
Marcus Scholz 2024-10-10 14:57:16 +02:00
parent bf3b4e5e81
commit 7f9a366171

View File

@ -1,16 +1,29 @@
- select: - select:
- name: "All WLED effects" - name: "Wohnzimmer Effekt"
unique_id: '6641823075755' unique_id: '6641823075755'
state: "{{ states('input_text.wled_effekt') }}" state: "{{ state_attr('light.wohnzimmer_hinten', 'effect') }}"
icon: mdi:firework icon: mdi:firework
options: > options: >
{{ state_attr('light.wohnzimmer_hinten', 'effect_list') }} {{ state_attr('light.wohnzimmer_hinten', 'effect_list') }}
select_option: select_option:
- service: input_text.set_value - service: light.turn_on
target: target:
entity_id: input_text.wled_effekt entity_id: light.wohnzimmer_hinten, light.wohnzimmer_vorne
data: data:
value: "{{ option }}" effect: "{{ option }}"
- select:
- name: "Wohnzimmer Palette"
unique_id: '3107042775387'
state: "{{ states('select.wohnzimmer_hinten_color_palette') }}"
icon: mdi:palette
options: >
{{ state_attr('select.wohnzimmer_hinten_color_palette', 'options') }}
select_option:
- service: select.select_option
target:
entity_id: select.wohnzimmer_hinten_color_palette, select.wohnzimmer_vorne_color_palette
data:
option: '{{ option }}'
- select: - select:
- name: "Available Media Players" - name: "Available Media Players"
unique_id: '6284128947660' unique_id: '6284128947660'