[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:
svjense 2021-10-19 05:45:22 +11:00 committed by GitHub
parent 81e201d163
commit b8b22555ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -387,7 +387,7 @@ public class WLedHandler extends BaseThingHandler {
break;
case CHANNEL_SLEEP:
if (OnOffType.ON.equals(command)) {
sendGetRequest("/win&NL=1");
sendGetRequest("/win&ND");
} else {
sendGetRequest("/win&NL=0");
}