updownlight.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. esphome:
  2. name: updownlight
  3. esp8266:
  4. board: esp01_1m
  5. restore_from_flash: true
  6. # Store the current Light Color in the flash every miniute only (MAX)
  7. # The RAM will checked every minute - if there was a change in light color,
  8. # this new color will be stored and restored on next boot (power off & on)
  9. preferences:
  10. flash_write_interval: 1min
  11. # Enable logging
  12. logger:
  13. # Enable Home Assistant API
  14. api:
  15. encryption:
  16. key: "2M3DWxk37LQNhf8ZCanRyh1eVcGWd82HcuqHyp4mvzU="
  17. ota:
  18. password: "c4947f215eaa994ca91fa4d77db9552f"
  19. wifi:
  20. ssid: !secret wifi_ssid
  21. password: !secret wifi_password
  22. # Enable fallback hotspot (captive portal) in case wifi connection fails
  23. ap:
  24. ssid: "Updownlight Fallback Hotspot"
  25. password: "qye5ppI6crG4"
  26. captive_portal:
  27. sensor:
  28. - platform: wifi_signal
  29. name: "Updownlight WiFi Signal"
  30. update_interval: 60s
  31. light:
  32. - platform: rgbww
  33. name: updownlight
  34. id: updownlight
  35. gamma_correct: 2.8
  36. red: red
  37. green: green
  38. blue: blue
  39. cold_white: cold_white
  40. warm_white: warm_white
  41. cold_white_color_temperature: 6200 K
  42. warm_white_color_temperature: 2800 K
  43. color_interlock: true
  44. restore_mode: RESTORE_AND_ON
  45. effects:
  46. - strobe:
  47. name: Strobe Effect
  48. colors:
  49. - state: True
  50. brightness: 80%
  51. red: 80%
  52. green: 0%
  53. blue: 80%
  54. duration: 500ms
  55. - state: False
  56. duration: 250ms
  57. - state: True
  58. brightness: 80%
  59. red: 0%
  60. green: 80%
  61. blue: 0%
  62. duration: 500ms
  63. - flicker:
  64. name: Flicker Effect
  65. alpha: 95%
  66. intensity: 2.0%
  67. - random:
  68. name: Slow Random Effect
  69. transition_length: 12s
  70. update_interval: 10s
  71. - random:
  72. name: Fast Random Effect
  73. transition_length: 4s
  74. update_interval: 5s
  75. output:
  76. - platform: esp8266_pwm
  77. id: red
  78. pin: GPIO4
  79. - platform: esp8266_pwm
  80. id: green
  81. pin: GPIO12
  82. - platform: esp8266_pwm
  83. id: blue
  84. pin: GPIO14
  85. - platform: esp8266_pwm
  86. id: cold_white
  87. pin: GPIO5
  88. max_power: 0.85
  89. - platform: esp8266_pwm
  90. id: warm_white
  91. pin: GPIO13
  92. max_power: 0.85