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.

26 lines
486 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.968f;
  13. float blue = 0.972f;
  14. float white = 0.0f;
  15. void set_color(float red, float green, float blue, float brightness, float state)
  16. {
  17. }
  18. };
  19. } // namespace yeelight_bs2
  20. } // namespace rgbww
  21. } // namespace esphome