mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +00:00
Merge pull request #3929 from emontnemery/fix_hass_colors
Use color2 command (HASS sends normalized RGB)
This commit is contained in:
commit
3d6b9859bd
@ -50,7 +50,7 @@ const char HASS_DISCOVER_LIGHT_DIMMER[] PROGMEM =
|
|||||||
"\"brightness_value_template\":\"{{value_json." D_CMND_DIMMER "}}\"";
|
"\"brightness_value_template\":\"{{value_json." D_CMND_DIMMER "}}\"";
|
||||||
|
|
||||||
const char HASS_DISCOVER_LIGHT_COLOR[] PROGMEM =
|
const char HASS_DISCOVER_LIGHT_COLOR[] PROGMEM =
|
||||||
"%s,\"rgb_command_topic\":\"%s\"," // cmnd/led2/Color
|
"%s,\"rgb_command_topic\":\"%s2\"," // cmnd/led2/Color2
|
||||||
"\"rgb_state_topic\":\"%s\"," // stat/led2/RESULT
|
"\"rgb_state_topic\":\"%s\"," // stat/led2/RESULT
|
||||||
"\"rgb_value_template\":\"{{value_json." D_CMND_COLOR "}}\"";
|
"\"rgb_value_template\":\"{{value_json." D_CMND_COLOR "}}\"";
|
||||||
// "\"rgb_value_template\":\"{{value_json." D_CMND_COLOR " | join(',')}}\"";
|
// "\"rgb_value_template\":\"{{value_json." D_CMND_COLOR " | join(',')}}\"";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user