Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lights_update_colour:
- alias: Light Colour - Update
- sequence:
- - delay: 00:00:01
- - service: light.turn_on
- data_template:
- entity_id: >-
- {%- for state, all_on_lights in states.light | groupby("state") -%}
- {%- if state == "on" -%}
- {%- for light in all_on_lights | rejectattr("attributes.is_hue_group") -%}
- {%- if not(loop.first) -%}, {% endif %}
- {{- light.entity_id -}}
- {%- endfor -%}
- {%- endif -%}
- {%- endfor %}
- brightness: '{{ states.input_slider.brightness.state | int }}'
- rgb_color: ['{{ states.input_slider.red.state | int }}', '{{ states.input_slider.green.state | int }}', '{{ states.input_slider.blue.state | int }}']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement