From: Leif Bladt Date: Sun, 24 Mar 2024 15:24:06 +0000 (+0100) Subject: Enable accumulated channels for Shelly Pro 3EM (#16566) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=fd882ffc7525781e65afd7bbc507c917ec838d8f;p=openhab-addons.git Enable accumulated channels for Shelly Pro 3EM (#16566) Signed-off-by: Leif Bladt --- diff --git a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/provider/ShellyChannelDefinitions.java b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/provider/ShellyChannelDefinitions.java index 954ca644ff..b2ba9c94a2 100644 --- a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/provider/ShellyChannelDefinitions.java +++ b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/provider/ShellyChannelDefinitions.java @@ -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);