Fix CWWW/RGBWW lights (#562)

This commit is contained in:
Otto Winter 2019-05-28 20:44:27 +02:00 committed by GitHub
parent 9d26c16471
commit 2decb8115c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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 {

View File

@ -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 {