From 3c6471d5de75fe149f9126911731623571043d78 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 15 Jul 2021 16:07:30 +0200 Subject: [PATCH] Improve RGBW light integration with HomeAssistant for so19 1 --- tasmota/xdrv_12_home_assistant.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasmota/xdrv_12_home_assistant.ino b/tasmota/xdrv_12_home_assistant.ino index 323c1b2c5..c2face57e 100644 --- a/tasmota/xdrv_12_home_assistant.ino +++ b/tasmota/xdrv_12_home_assistant.ino @@ -94,10 +94,10 @@ const char HASS_DISCOVER_LIGHT_COLOR[] PROGMEM = "\"rgb_val_tpl\":\"{{value_json." D_CMND_COLOR ".split(',')[0:3]|join(',')}}\""; const char HASS_DISCOVER_LIGHT_WHITE[] PROGMEM = - ",\"whit_val_cmd_t\":\"%s\"," // cmnd/led2/White - "\"whit_val_stat_t\":\"%s\"," // stat/led2/RESULT - "\"whit_val_scl\":100," - "\"whit_val_tpl\":\"{{value_json." D_CMND_WHITE "}}\""; + ",\"whit_cmd_t\":\"%s\"," // cmnd/led2/White + "\"clrm_stat_t\":\"%s\"," // stat/led2/RESULT + "\"whit_scl\":100," + "\"clrm_val_tpl\":\"{%%if value_json.White%%}white{%%else%%}rgb{%%endif %%}\""; const char HASS_DISCOVER_LIGHT_CT[] PROGMEM = ",\"clr_temp_cmd_t\":\"%s\"," // cmnd/led2/CT