mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[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;
|
||||
case CHANNEL_SLEEP:
|
||||
if (OnOffType.ON.equals(command)) {
|
||||
sendGetRequest("/win&NL=1");
|
||||
sendGetRequest("/win&ND");
|
||||
} else {
|
||||
sendGetRequest("/win&NL=0");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user