Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. esphome:
  2. name: sofa_light_1
  3. platform: ESP8266
  4. board: esp01_1m
  5. on_boot:
  6. - priority: -10
  7. then:
  8. - light.turn_on:
  9. id: sofa_light_1
  10. brightness: 00%
  11. red: 0%
  12. green: 0%
  13. blue: 0%
  14. white: 80%
  15.  
  16. wifi:
  17. ssid: "REDACTED"
  18. password: "REDACTED"
  19.  
  20. # Enable fallback hotspot (captive portal) in case wifi connection fails
  21. ap:
  22. ssid: "Bulb Test Fallback Hotspot"
  23. password: "REDACTED"
  24.  
  25. captive_portal:
  26.  
  27. # Enable logging
  28. logger:
  29.  
  30. # Enable Home Assistant API
  31. api:
  32. password: "REDACTED"
  33.  
  34. ota:
  35. password: "REDACTED"
  36.  
  37. output:
  38. - platform: esp8266_pwm
  39. id: output_red
  40. pin: GPIO14
  41. - platform: esp8266_pwm
  42. id: output_green
  43. pin: GPIO12
  44. - platform: esp8266_pwm
  45. id: output_blue
  46. pin: GPIO13
  47. - platform: esp8266_pwm
  48. id: output_white
  49. pin: GPIO4
  50.  
  51. light:
  52. - platform: rgbw
  53. name: "sofa_light_1"
  54. id: sofa_light_1
  55. red: output_red
  56. green: output_green
  57. blue: output_blue
  58. white: output_white
  59. gamma_correct: 1.0
  60. effects:
  61. - strobe:
  62. - random:
  63. - strobe:
  64. name: Rainbow
  65. colors:
  66. - state: True
  67. brightness: 100%
  68. red: 100%
  69. green: 0%
  70. blue: 0%
  71. white: 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. white: 0%
  81. duration: 500ms
  82. - state: False
  83. duration: 250ms
  84. - state: True
  85. brightness: 100%
  86. red: 0%
  87. green: 0%
  88. blue: 100%
  89. white: 0%
  90. duration: 500ms
  91. - state: False
  92. duration: 250ms
  93. - state: True
  94. brightness: 100%
  95. red: 100%
  96. green: 0%
  97. blue: 100%
  98. white: 0%
  99. duration: 500ms
  100. - state: False
  101. duration: 250ms
  102. - state: True
  103. brightness: 100%
  104. red: 100%
  105. green: 100%
  106. blue: 0%
  107. white: 0%
  108. duration: 500ms
  109. - state: False
  110. duration: 250ms
  111. - state: True
  112. brightness: 100%
  113. red: 0%
  114. green: 100%
  115. blue: 100%
  116. white: 0%
  117. duration: 500ms
  118. - strobe:
  119. name: RGB
  120. colors:
  121. - state: True
  122. brightness: 100%
  123. red: 100%
  124. green: 0%
  125. blue: 0%
  126. white: 0%
  127. duration: 500ms
  128. - state: False
  129. duration: 250ms
  130. - state: True
  131. brightness: 100%
  132. red: 0%
  133. green: 100%
  134. blue: 0%
  135. white: 0%
  136. duration: 500ms
  137. - state: False
  138. duration: 250ms
  139. - state: True
  140. brightness: 100%
  141. red: 0%
  142. green: 0%
  143. blue: 100%
  144. white: 0%
  145. duration: 500ms
  146. - state: False
  147. duration: 250ms
  148. - strobe:
  149. name: Red
  150. colors:
  151. - state: True
  152. brightness: 100%
  153. red: 100%
  154. green: 0%
  155. blue: 0%
  156. white: 0%
  157. duration: 100ms
  158. - state: False
  159. duration: 150ms
  160. # Ensure the light turns on by default if the physical switch is actuated.
  161. restore_mode: RESTORE_DEFAULT_ON
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement