Bandeau de LEDs contrôlable (puissance, couleur, effet) au travers de Home Assistant
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
620 B

- alias: "Strip1 Effect"
hide_entity: True
trigger:
platform: "state"
entity_id: "input_select.strip1_effect"
action:
- service: "mqtt.publish"
data_template:
topic: "strip1/effect/switch"
payload: '{{ trigger.to_state.state | string }}'
retain: True
- alias: "Strip1 Animation Speed"
hide_entity: True
trigger:
platform: "state"
entity_id: "input_slider.strip1_animation_speed"
action:
- service: "mqtt.publish"
data_template:
topic: "strip1/speed/switch"
payload: '{{ trigger.to_state.state | int }}'
retain: True