From f99ff75b9ddcb1fc24cd1a6909f865591826f188 Mon Sep 17 00:00:00 2001 From: Leif Bladt Date: Sun, 24 Mar 2024 16:24:06 +0100 Subject: [PATCH] Enable accumulated channels for Shelly Pro 3EM (#16566) Signed-off-by: Leif Bladt Signed-off-by: Ciprian Pascu --- .../shelly/internal/provider/ShellyChannelDefinitions.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 954ca644ff4..b2ba9c94a25 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);