ff-ala-rgb-01.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. substitutions:
  2. devicename: ff-ala-rgb-01
  3. low_devicename: ff_ala_rgb_01
  4. friendly_devicename: FF Ala RGB Light 01
  5. esphome:
  6. name: $devicename
  7. friendly_name: ${friendly_devicename}
  8. bk72xx:
  9. board: generic-bk7231n-qfn32-tuya
  10. # Enable logging
  11. logger:
  12. web_server:
  13. port: 80
  14. # Enable Home Assistant API
  15. api:
  16. encryption:
  17. key: "ejeMnlF5M60w/yuYwAWn/kIBz701xLwVkUGf9iN8uLA="
  18. ota:
  19. password: "2c27af3ab81f992e23745c20ab5dfc02"
  20. wifi:
  21. ssid: !secret iot_ssid
  22. password: !secret iot_password
  23. domain: .int.mmax.cloud
  24. text_sensor:
  25. # - platform: debug
  26. # reset_reason:
  27. # name: Reset Reason
  28. - platform: libretiny
  29. version:
  30. name: LibreTiny Version
  31. packages:
  32. diag: !include common/diag.yaml
  33. bp5758d:
  34. clock_pin: P26
  35. data_pin: P24
  36. output:
  37. - platform: bp5758d
  38. id: output_red
  39. channel: 3
  40. current: 14
  41. - platform: bp5758d
  42. id: output_green
  43. channel: 2
  44. current: 14
  45. - platform: bp5758d
  46. id: output_blue
  47. channel: 1
  48. current: 14
  49. - platform: bp5758d
  50. id: output_cold
  51. channel: 5
  52. current: 29
  53. - platform: bp5758d
  54. id: output_warm
  55. channel: 4
  56. current: 29
  57. light:
  58. - platform: rgbww
  59. id: light_rgbww
  60. name: Light
  61. color_interlock: true
  62. cold_white_color_temperature: 6500 K
  63. warm_white_color_temperature: 2700 K
  64. red: output_red
  65. green: output_green
  66. blue: output_blue
  67. cold_white: output_cold
  68. warm_white: output_warm
  69. restore_mode: ALWAYS_ON #Start with light on after reboot/power-loss event, so that it works from a dumb lightswitch
  70. effects:
  71. - random:
  72. - strobe:
  73. - flicker:
  74. alpha: 50% #The percentage that the last color value should affect the light. More or less the “forget-factor” of an exponential moving average. Defaults to 95%.
  75. intensity: 50%