Skip to content

Commit 0fbfe29

Browse files
leifbladtlolodomo
authored andcommitted
Enable accumulated channels for Shelly Pro 3EM (openhab#16566)
Signed-off-by: Leif Bladt <[email protected]>
1 parent 78e3f29 commit 0fbfe29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/provider/ShellyChannelDefinitions.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ public static Map<String, Channel> createDeviceChannels(final Thing thing, final
315315
addChannel(thing, add, profile.settings.sleepTime != null, CHGR_SENSOR, CHANNEL_SENSOR_SLEEPTIME);
316316

317317
// If device has more than 1 meter the channel accumulatedWatts receives the accumulated value
318-
boolean accuChannel = profile.hasRelays && profile.numMeters > 1 && !profile.isRoller && !profile.isRGBW2;
318+
boolean accuChannel = profile.is3EM
319+
|| (profile.hasRelays && profile.numMeters > 1 && !profile.isRoller && !profile.isRGBW2);
319320
addChannel(thing, add, accuChannel, CHGR_DEVST, CHANNEL_DEVST_ACCUWATTS);
320321
addChannel(thing, add, accuChannel, CHGR_DEVST, CHANNEL_DEVST_ACCUTOTAL);
321322
addChannel(thing, add, accuChannel && (status.emeters != null), CHGR_DEVST, CHANNEL_DEVST_ACCURETURNED);

0 commit comments

Comments
 (0)