]> git.basschouten.com Git - openhab-addons.git/commitdiff
[deconz] make lightgroup switch off if brightness is set to 0 (#10729)
authorAndres Meyer <andres@meyerfamily.ch>
Sat, 22 May 2021 06:16:14 +0000 (08:16 +0200)
committerGitHub <noreply@github.com>
Sat, 22 May 2021 06:16:14 +0000 (08:16 +0200)
* Make lightgroup switch off lights if brightness is set to 0

Fixes #10320

Signed-off-by: Andres Meyer <andres@meyerfamily.ch>
bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/GroupThingHandler.java

index b3b455a9a003c399b0b00d827f0142a6f6512cfc..ad2f51409b5761ba9adb21fd23cfc277b9a302d8 100644 (file)
@@ -129,8 +129,8 @@ public class GroupThingHandler extends DeconzBaseThingHandler {
         }
 
         Integer bri = newGroupAction.bri;
-        if (bri != null && bri > 0) {
-            newGroupAction.on = true;
+        if (bri != null) {
+            newGroupAction.on = (bri > 0);
         }
 
         sendCommand(newGroupAction, command, channelUID, null);