From 67aa76ed78baa78b57d3be787942b0f948295be0 Mon Sep 17 00:00:00 2001 From: Jason2866 Date: Wed, 27 Nov 2019 18:14:12 +0100 Subject: [PATCH] Align slider behaviour with mqtt... commands. Via slider it was NOT possible to set ```{"POWER1":"OFF","Dimmer1":0,"POWER2":"OFF","Dimmer2":100,"Color":"000000FF","HSBColor":"0,0,0","Channel":[0,0,0,100]}``` min value was before the change ```{"POWER1":"ON","Dimmer1":1,"POWER2":"OFF","Dimmer2":100,"Color":"030303FF","HSBColor":"1,1,1","Channel":[1,1,1,100]}``` --- tasmota/xdrv_01_webserver.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index f7b76d2d4..e5d8aecfe 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -1056,7 +1056,7 @@ void HandleRoot(void) "s", // s - Unique HTML id related to eb('s').style.background='linear-gradient(to right,rgb('+sl+'%%,'+sl+'%%,'+sl+'%%),hsl('+eb('sl2').value+',100%%,50%%))'; scolor, stemp, // Brightness to max current color 3, // sl3 - Unique range HTML id - Not used - 1, 100, // Range 1 to 100% + 0, 100, // Range 0 to 100% changeUIntScale(sat, 0, 255, 0, 100), 'n', 0); // n0 - Value id } @@ -1065,7 +1065,7 @@ void HandleRoot(void) "c", // c - Unique HTML id "#000", "#fff", // Black to White 4, // sl4 - Unique range HTML id - Used as source for Saturation begin color - 1, 100, // Range 1 to 100% + 0, 100, // Range 0 to 100% Settings.light_dimmer, 'd', 0); // d0 - Value id is related to lc("d0", value) and WebGetArg("d0", tmp, sizeof(tmp)); } else { // Settings.flag3.pwm_multi_channels - SetOption68 1 - Enable multi-channels PWM instead of Color PWM