Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. mqtt:
  2. broker: your.mqtt.ip.address
  3. port: 1883
  4. client_id: home-assistant-1
  5. username: YOURUSERNAME
  6. password: YOURPASSWORD
  7.  
  8. light:
  9. - platform: mqtt_json
  10. name: "Porch Strip"
  11. state_topic: "bruh/porch"
  12. command_topic: "bruh/porch/set"
  13. effect: true
  14. effect_list:
  15. - bpm
  16. - candy cane
  17. - confetti
  18. - cyclon rainbow
  19. - dots
  20. - fire
  21. - glitter
  22. - juggle
  23. - lightning
  24. - noise
  25. - police all
  26. - police one
  27. - rainbow
  28. - rainbow with glitter
  29. - ripple
  30. - sinelon
  31. - solid
  32. - twinkle
  33. brightness: true
  34. flash: true
  35. rgb: true
  36. optimistic: false
  37. qos: 0
  38.  
  39. input_slider:
  40. porch_animation_speed:
  41. name: Porch Animation Speed
  42. initial: 150
  43. min: 1
  44. max: 150
  45. step: 10
  46.  
  47. automation:
  48. - alias: "Porch Animation Speed"
  49. initial_state: True
  50. hide_entity: False
  51. trigger:
  52. - platform: state
  53. entity_id: input_slider.porch_animation_speed
  54. action:
  55. - service: mqtt.publish
  56. data_template:
  57. topic: "bruh/porch/set"
  58. payload: '{"transition":{{ trigger.to_state.state | int }}}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement