split des fichiers de conf HA
This commit is contained in:
committed by
Cabillot Julien
parent
fdc51427b3
commit
4a8e870e76
22
home-assistant/conf_automation.d/strip1.yaml
Normal file
22
home-assistant/conf_automation.d/strip1.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
- 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
|
||||
Reference in New Issue
Block a user