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.

29 lines
570 B

  1. #pragma once
  2. #include <array>
  3. #include <stdexcept>
  4. namespace esphome {
  5. namespace rgbww {
  6. namespace yeelight_bs2 {
  7. class NightLight
  8. {
  9. public:
  10. // Based on measurements using the original device firmware.
  11. //float red = 0.968f;
  12. //float green = 0.960f;
  13. //float blue = 0.978f;
  14. float red = 0.968f;
  15. float green = 0.968f;
  16. float blue = 0.972f;
  17. float white = 0.0f;
  18. void set_color(float red, float green, float blue, float brightness, float state)
  19. {
  20. }
  21. };
  22. } // namespace yeelight_bs2
  23. } // namespace rgbww
  24. } // namespace esphome