Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. 8:09:05 A1016391:~/work/esphome > cat boothesp.yml
  2. ---
  3. <<: !include .secrets.yml
  4.  
  5. esphome:
  6. name: boothesp
  7. platform: ESP8266
  8. board: nodemcu
  9. # includes:
  10. # -
  11.  
  12. wifi:
  13. ssid: ${wifi_ssid}
  14. password: ${wifi_pass}
  15.  
  16. # Enable logging
  17. logger:
  18. level: INFO
  19.  
  20. ota:
  21.  
  22. #api: # home assistant
  23.  
  24. mqtt:
  25. broker: ${mqtt_host}
  26. username: ${mqtt_user}
  27. password: ${mqtt_pass}
  28. topic_prefix: '/esphome'
  29. discovery: False # HomeAssistant
  30.  
  31. birth_message:
  32. topic: '/esp/boothesp/restart'
  33. payload: 'Hi'
  34. qos: 0
  35. retain: True
  36.  
  37. on_message:
  38. - topic: '/esp/test'
  39. then:
  40. - light.turn_on:
  41. id: booth_strip
  42. red: 0.2
  43. green: 1.0
  44. blue: 0.1
  45. brightness: 0.5
  46. effect: "Strobe Effect With Custom Values"
  47. - topic: '/esp/test2'
  48. then:
  49. - light.turn_off: booth_strip
  50.  
  51. light:
  52. - platform: neopixelbus
  53. id: booth_strip
  54. type: GRB
  55. pin: GPIO3
  56. num_leds: 10
  57. name: "Test Light"
  58. #effects: ${light_effects}
  59. effects:
  60. - random:
  61. name: Random Effect With Custom Values
  62. transition_length: 5s
  63. update_interval: 7s
  64. - strobe:
  65. name: Strobe Effect With Custom Values
  66. colors:
  67. - state: True
  68. brightness: 100%
  69. red: 100%
  70. green: 90%
  71. blue: 0%
  72. duration: 500ms
  73. - state: False
  74. duration: 250ms
  75. - state: True
  76. brightness: 100%
  77. red: 0%
  78. green: 100%
  79. blue: 0%
  80. duration: 500ms
  81. % 8:09:14 A1016391:~/work/esphome > cat .secrets.yml
  82. ---
  83. substitutions:
  84. wifi_ssid: "this"
  85. wifi_pass: "that"
  86.  
  87. mqtt_host: "what.ever"
  88. mqtt_user: boothesp
  89. mqtt_pass: "bla"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement