Only enable white mode for RGBW lights

This commit is contained in:
Erik 2021-07-15 16:16:51 +02:00
parent 3c6471d5de
commit 02de85efa7

View File

@ -535,7 +535,7 @@ void HAssAnnounceRelayLight(void)
TryResponseAppend_P(HASS_DISCOVER_LIGHT_CT, color_temp_command_topic, state_topic);
ct_light = false;
}
if ((!ind_light && wt_light) || (LST_RGBW <= Light.subtype &&
if ((!ind_light && wt_light) || (LST_RGBW == Light.subtype &&
!PwmMulti && LightControl)) {
char *white_temp_command_topic = stemp1;