From 02de85efa71bd252df71aea6129aa13206926d58 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 15 Jul 2021 16:16:51 +0200 Subject: [PATCH] Only enable white mode for RGBW lights --- tasmota/xdrv_12_home_assistant.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_12_home_assistant.ino b/tasmota/xdrv_12_home_assistant.ino index c2face57e..5db6fa9aa 100644 --- a/tasmota/xdrv_12_home_assistant.ino +++ b/tasmota/xdrv_12_home_assistant.ino @@ -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;