Enable accumulated channels for Shelly Pro 3EM (#16566)

Signed-off-by: Leif Bladt <leif.bladt@gmx.de>
This commit is contained in:
Leif Bladt 2024-03-24 16:24:06 +01:00 committed by Laurent Garnier
parent 78e3f29232
commit 0fbfe297f4

View File

@ -315,7 +315,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);