You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
974 B

  1. i2c:
  2. - id: eeprom_i2c
  3. sda: 17
  4. scl: 18
  5. scan: True
  6. - id: front_panel_i2c
  7. sda: 21
  8. scl: 19
  9. scan: True
  10. output:
  11. - platform: gpio
  12. id: master1
  13. pin: GPIO33
  14. - platform: gpio
  15. id: master2
  16. pin: GPIO4
  17. - platform: ledc
  18. id: led_r
  19. pin: GPIO13
  20. frequency: "3000Hz"
  21. - platform: ledc
  22. id: led_g
  23. pin: GPIO14
  24. frequency: "3000Hz"
  25. - platform: ledc
  26. id: led_b
  27. pin: GPIO5
  28. frequency: "3000Hz"
  29. - platform: ledc
  30. id: led_w
  31. pin: GPIO12
  32. frequency: "3000Hz"
  33. light:
  34. - platform: yeelight_bs2
  35. name: ${friendly_name} Custom Light
  36. red: led_r
  37. green: led_g
  38. blue: led_b
  39. white: led_w
  40. master1: master1
  41. master2: master2
  42. default_transition_length: 1s
  43. effects:
  44. - random:
  45. name: "Slow Random"
  46. transition_length: 30s
  47. update_interval: 30s
  48. - random:
  49. name: "Fast Random"
  50. transition_length: 3s
  51. update_interval: 4s