diff --git a/scripts.yaml b/scripts.yaml index a69d04f..423a575 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -1,7 +1,7 @@ wled_random_effect: alias: 'WLED: Zufälliger Effekt' sequence: - - service: wled.effect + - service: light.turn_on target: entity_id: light.wohnzimmer_hinten, light.wohnzimmer_vorne, light.lichterkette_kuche data: @@ -12,11 +12,13 @@ wled_random_effect: wled_random_palette: alias: 'WLED: Zufällige Palette' sequence: - - service: wled.effect + - service: select.select_option target: - entity_id: light.wohnzimmer_vorne, light.wohnzimmer_hinten, light.lichterkette_kuche + entity_id: select.wohnzimmer_hinten_color_palette, select.wohnzimmer_vorne_color_palette, + select.kuche_color_palette data: - palette: '{{ range(0,55) | random }}' + option: '{{ state_attr(''select.wohnzimmer_hinten_color_palette'', ''options'') + | random }}' mode: single icon: mdi:palette moodlight_neutral: