From a2c8ea9d653b1c86f3acf46800cd0141028dc903 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 15 Jan 2020 22:14:47 +1100 Subject: [PATCH] Make the B or brightness part of the HSBColor command optional This makes it easier (possible?) to use the HSBColor with hs_command_topic in Home-Assistant, which in turn allows completely independent control of the color part of an RGBW or RGBWW bulb. --- tasmota/xdrv_04_light.ino | 42 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index 9526f8c82..0fa8838f8 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -2249,31 +2249,31 @@ void CmndHsbColor(void) bool validHSB = (XdrvMailbox.data_len > 0); if (validHSB) { uint16_t HSB[3]; - if (strstr(XdrvMailbox.data, ",") != nullptr) { // Command with 3 comma separated parameters, Hue (0