correctiom effet -> char,--etat pour les topic marche pas

This commit is contained in:
Julien Cabillot 2017-03-04 03:32:37 +01:00 committed by Cabillot Julien
parent 82104f19a6
commit 0a12eede53

View File

@ -2,9 +2,9 @@ input_select:
strip1_effect: strip1_effect:
name: "Choix de l'effet" name: "Choix de l'effet"
options: options:
- 2 - "cylon"
- 3 - "full"
- 4 - "error"
input_slider: input_slider:
strip1_animation_speed: strip1_animation_speed:
@ -33,8 +33,7 @@ automation:
action: action:
- service: "mqtt.publish" - service: "mqtt.publish"
data_template: data_template:
command_topic: "strip1/effect/switch" topic: "strip1/effect/switch"
state_topic: "strip1/effect/status"
payload: '{{ trigger.to_state.state | string }}' payload: '{{ trigger.to_state.state | string }}'
retain: True retain: True
- alias: "Strip1 Animation Speed" - alias: "Strip1 Animation Speed"
@ -45,7 +44,6 @@ automation:
action: action:
- service: "mqtt.publish" - service: "mqtt.publish"
data_template: data_template:
command_topic: "strip1/speed/switch" topic: "strip1/speed/switch"
status_topic: "strip1/speed/switch"
payload: '{{ trigger.to_state.state | int }}' payload: '{{ trigger.to_state.state | int }}'
retain: True retain: True