diff --git a/template.yaml b/template.yaml index a867151..74eae19 100644 --- a/template.yaml +++ b/template.yaml @@ -1,16 +1,29 @@ - - select: - - name: "All WLED effects" + - select: + - name: "Wohnzimmer Effekt" unique_id: '6641823075755' - state: "{{ states('input_text.wled_effekt') }}" + state: "{{ state_attr('light.wohnzimmer_hinten', 'effect') }}" icon: mdi:firework options: > {{ state_attr('light.wohnzimmer_hinten', 'effect_list') }} select_option: - - service: input_text.set_value + - service: light.turn_on target: - entity_id: input_text.wled_effekt + entity_id: light.wohnzimmer_hinten, light.wohnzimmer_vorne 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: - name: "Available Media Players" unique_id: '6284128947660'