[deconz] make lightgroup switch off if brightness is set to 0 (#10729)
* Make lightgroup switch off lights if brightness is set to 0 Fixes #10320 Signed-off-by: Andres Meyer <andres@meyerfamily.ch>
This commit is contained in:
parent
27d5bb11c7
commit
096cd49b38
|
@ -129,8 +129,8 @@ public class GroupThingHandler extends DeconzBaseThingHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
Integer bri = newGroupAction.bri;
|
Integer bri = newGroupAction.bri;
|
||||||
if (bri != null && bri > 0) {
|
if (bri != null) {
|
||||||
newGroupAction.on = true;
|
newGroupAction.on = (bri > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
sendCommand(newGroupAction, command, channelUID, null);
|
sendCommand(newGroupAction, command, channelUID, null);
|
||||||
|
|
Loading…
Reference in New Issue