Skip to content

Commit

Permalink
Fix Nightlight sleep timer to default
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
svjense committed Oct 18, 2021
1 parent 23b4a62 commit 298f731
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public void handleCommand(ChannelUID channelUID, Command command) {
break;
case CHANNEL_SLEEP:
if (OnOffType.ON.equals(command)) {
sendGetRequest("/win&NL=1");
sendGetRequest("/win&ND");
} else {
sendGetRequest("/win&NL=0");
}
Expand Down

0 comments on commit 298f731

Please sign in to comment.