Skip to content

Commit

Permalink
Fix CWWW/RGBWW lights (esphome#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
OttoWinter authored May 28, 2019
1 parent 9d26c16 commit 2decb81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esphome/components/cwww/cwww_light_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class CWWWLightOutput : public light::LightOutput {
traits.set_supports_rgb(false);
traits.set_supports_rgb_white_value(false);
traits.set_supports_color_temperature(true);
traits.set_min_mireds(this->cold_white_temperature_);
traits.set_min_mireds(this->warm_white_temperature_);
return traits;
}
void write_state(light::LightState *state) override {
Expand Down
2 changes: 2 additions & 0 deletions esphome/components/rgbww/rgbww_light_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class RGBWWLightOutput : public light::LightOutput {
traits.set_supports_rgb(true);
traits.set_supports_rgb_white_value(true);
traits.set_supports_color_temperature(true);
traits.set_min_mireds(this->cold_white_temperature_);
traits.set_min_mireds(this->warm_white_temperature_);
return traits;
}
void write_state(light::LightState *state) override {
Expand Down

0 comments on commit 2decb81

Please sign in to comment.