]> git.basschouten.com Git - openhab-addons.git/commitdiff
Enable accumulated channels for Shelly Pro 3EM (#16566)
authorLeif Bladt <leif.bladt@gmx.de>
Sun, 24 Mar 2024 15:24:06 +0000 (16:24 +0100)
committerGitHub <noreply@github.com>
Sun, 24 Mar 2024 15:24:06 +0000 (16:24 +0100)
Signed-off-by: Leif Bladt <leif.bladt@gmx.de>
bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/provider/ShellyChannelDefinitions.java

index 954ca644ff432ce0e9f43c3fd236f69bb40c0eb4..b2ba9c94a25061a02679352bfd0c60b96223b510 100644 (file)
@@ -328,7 +328,8 @@ public class ShellyChannelDefinitions {
         addChannel(thing, add, profile.settings.sleepTime != null, CHGR_SENSOR, CHANNEL_SENSOR_SLEEPTIME);
 
         // If device has more than 1 meter the channel accumulatedWatts receives the accumulated value
-        boolean accuChannel = profile.hasRelays && profile.numMeters > 1 && !profile.isRoller && !profile.isRGBW2;
+        boolean accuChannel = profile.is3EM
+                || (profile.hasRelays && profile.numMeters > 1 && !profile.isRoller && !profile.isRGBW2);
         addChannel(thing, add, accuChannel, CHGR_DEVST, CHANNEL_DEVST_ACCUWATTS);
         addChannel(thing, add, accuChannel, CHGR_DEVST, CHANNEL_DEVST_ACCUTOTAL);
         addChannel(thing, add, accuChannel && (status.emeters != null), CHGR_DEVST, CHANNEL_DEVST_ACCURETURNED);