Bug in Shelly integration (3.70~23)

Just wanted to report a bug I’ve found in the new Shelly integration:
I have two Shelly devices connected to my system: one Shelly Plus 1 (12V switch) which works perfectly. The other is a Shelly Plug S, which is a 230V plug with switch which basically lets you turn on and off the socket remotely. It also has some monitoring capabilities so you can see how much power runs thru it etc.

The Shelly Plus 1 works perfectly with Venus OS.
The Plug S however, does not work. It is found by Venus OS, and shows power draw etc on the device page:

However, under setup I can only select “AC Loads” - I don’t know what that is:


. I can not switch between switch-style and toggle-style switching like I can with the Shelly Plus.

Basically I would like the Shelly Plug to behave much the same way as the Shelly Plus.

I’m pretty certain there’s bugs in here, also since the “Position” selection in the device setup menu doesn’t “stick”.

Looking at the code, it looks like it makes some choices based on the presence of an energy meter or not:

role = 'acload' if c._has_em else 'switch'

which might not be optimal. I’m trying to force it into switch mode now to see how that works.

yup, I ended up disabling the checks for “has energy meter” in code, and now it works as intended (tho of course with all energy metering functionality disabled, which I don’t really need anyway)

When you are talking about “Shelly integration”, are you talking about GitHub - Telekatz/venus.dbus-shellyPlug: Integrate Shelly single phase energy meters into Victron Energies Venus OS or an integration done with Node-Red ?

Probably about the new venus-native shelly-integration in the beta.

See

and therefore most related :slight_smile:

A post was merged into an existing topic: V3.70 beta - new Shelly support