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.

50 lines
1.1 KiB

3 years ago
  1. # TODO : Il serait bien de pouvoir donner un nom joli sans envoyer de string
  2. mqtt:
  3. broker: "mqtt"
  4. port: 1883
  5. client_id: "homeassistant1"
  6. username: "***REMOVED***"
  7. password: "***REMOVED***"
  8. input_select:
  9. strip1_effect:
  10. name: "Choix de l'effet"
  11. options:
  12. - 1
  13. - 2
  14. - 3
  15. - 4
  16. initial: 1
  17. input_slider:
  18. strip1_animation_speed:
  19. name: "Strip1 Animation Speed"
  20. initial: 120
  21. min: 10
  22. max: 150
  23. step: 10
  24. automation:
  25. - alias: "Strip1 Effect"
  26. initial_state: True
  27. hide_entity: False
  28. trigger:
  29. - platform: state
  30. entity_id: input_select.strip1_effect
  31. action:
  32. - service: mqtt.publish
  33. data_template:
  34. topic: "strip1/seteffect"
  35. payload: '{{ trigger.to_state.state | string }}'
  36. retain: True
  37. - alias: "Strip1 Animation Speed"
  38. initial_state: True
  39. hide_entity: False
  40. trigger:
  41. - platform: state
  42. entity_id: input_slider.strip1_animation_speed
  43. action:
  44. - service: mqtt.publish
  45. data_template:
  46. topic: "strip1/setspeed"
  47. payload: '{{ trigger.to_state.state | int }}'