Skip to content

Commit

Permalink
[deconz] make lightgroup switch off if brightness is set to 0 (openha…
Browse files Browse the repository at this point in the history
…b#10729)

* Make lightgroup switch off lights if brightness is set to 0

Fixes openhab#10320

Signed-off-by: Andres Meyer <[email protected]>
  • Loading branch information
cputoaster authored May 22, 2021
1 parent 27d5bb1 commit 096cd49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public void handleCommand(ChannelUID channelUID, Command command) {
}

Integer bri = newGroupAction.bri;
if (bri != null && bri > 0) {
newGroupAction.on = true;
if (bri != null) {
newGroupAction.on = (bri > 0);
}

sendCommand(newGroupAction, command, channelUID, null);
Expand Down

0 comments on commit 096cd49

Please sign in to comment.