diff --git a/sonoff/xdrv_04_light.ino b/sonoff/xdrv_04_light.ino index 872417b3e..f6338ded2 100644 --- a/sonoff/xdrv_04_light.ino +++ b/sonoff/xdrv_04_light.ino @@ -684,8 +684,6 @@ public: // channel 0=intensity, channel2=temperature light_current_color[0] = bri; // set brightness from r (white) light_current_color[1] = c; - } else if (LT_PWM1 == light_type) { - light_current_color[0] = 255; // One PWM channel only supports Dimmer but needs max color } else { switch (light_subtype) { case LST_NONE: diff --git a/sonoff/xplg_wemohue.ino b/sonoff/xplg_wemohue.ino index 4e6d922be..40dbc1aab 100644 --- a/sonoff/xplg_wemohue.ino +++ b/sonoff/xplg_wemohue.ino @@ -628,9 +628,9 @@ void HueLightStatus1(uint8_t device, String *response) *response += FPSTR(HUE_LIGHTS_STATUS_JSON1); response->replace("{state}", (power & (1 << (device-1))) ? "true" : "false"); // Brightness for all devices with PWM - if (LST_SINGLE <= light_subtype) { - light_status += "\"bri\":" + String(bri) + ","; - } + //if (LST_SINGLE <= light_subtype) { + light_status += "\"bri\":" + String(bri) + ","; + //} if (LST_COLDWARM <= light_subtype) { light_status += "\"colormode\":\"" + String(g_gotct ? "ct" : "hs") + "\","; }