[WLED] Fix Nightlight sleep timer to use default (#11389)
Based on WLED API (https://kno.wled.ge/interfaces/http-api/) current handler uses NL=1 so sleep timer is hard coded to 1 minute. Should be default (ND) to use configured time in WLED. Fixes #11389 Signed-off-by: Sven Jensen <github@s7j.de> Co-authored-by: Sven Jensen <github@s7j.de>
This commit is contained in:
parent
81e201d163
commit
b8b22555ff
|
@ -387,7 +387,7 @@ public class WLedHandler extends BaseThingHandler {
|
||||||
break;
|
break;
|
||||||
case CHANNEL_SLEEP:
|
case CHANNEL_SLEEP:
|
||||||
if (OnOffType.ON.equals(command)) {
|
if (OnOffType.ON.equals(command)) {
|
||||||
sendGetRequest("/win&NL=1");
|
sendGetRequest("/win&ND");
|
||||||
} else {
|
} else {
|
||||||
sendGetRequest("/win&NL=0");
|
sendGetRequest("/win&NL=0");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue