# TODO : Il serait bien de pouvoir donner un nom joli sans envoyer de string mqtt: broker: "mqtt" port: 1883 client_id: "homeassistant1" username: "***REMOVED***" password: "***REMOVED***" input_select: strip1_effect: name: "Choix de l'effet" options: - 1 - 2 - 3 - 4 initial: 1 input_slider: strip1_animation_speed: name: "Strip1 Animation Speed" initial: 120 min: 10 max: 150 step: 10 automation: - alias: "Strip1 Effect" initial_state: True hide_entity: False trigger: - platform: state entity_id: input_select.strip1_effect action: - service: mqtt.publish data_template: topic: "strip1/seteffect" payload: '{{ trigger.to_state.state | string }}' retain: True - alias: "Strip1 Animation Speed" initial_state: True hide_entity: False trigger: - platform: state entity_id: input_slider.strip1_animation_speed action: - service: mqtt.publish data_template: topic: "strip1/setspeed" payload: '{{ trigger.to_state.state | int }}'