Shelly Binding

The input for the update worked for me. With the developer version, I now also get the device#accumulatedWatts channel displayed on my Shelly Pro 3EM.

openhab> update org.openhab.binding.shelly https://github.com/markus7017/myfiles/blob/master/shelly/org.openhab.binding.shelly-4.2.0-SNAPSHOT.jar?raw=true
openhab> list -s | grep shelly
288 x Active x  80 x 4.2.0.202404071245     x org.openhab.binding.shelly

Unfortunately, device#accumulatedWTotal and device#accumulatedReturned do not work - I’ll have to look at that again.

now i change to current dev

304 x Active x  80 x 4.2.0.202404071245     x openHAB Add-ons :: Bundles :: Shelly Binding

but the phase 3 is still NULL

{channel="shelly:shellypro3em:PowerMeterMain:meter3#currentWatts"}

so data em1:2 is not availabe

I updated the DEV build to include the following fixes

  • #16736 BLU HT - sensor channels missing @Simon_B @Larsen :white_check_mark:
  • #16734 Range Extender Support is enabled by default :white_check_mark:
  • #16542 Wong model for Shelly Plus 10V
  • #16709 Shelly TRV: decimal place of target temperature is cut off @scheuerer @Larsen :white_check_mark:
  • #16735 Info events are sent to the alarm channel
  • #16655 Devices cannot be added via DNS anymore
  • #16724 Addon channels not discovered when in cover mode with Shelly Plus 2PM :white_check_mark:
  • #16750 Shelly Pro 3EM shows only 1 meter instead of 3 @MOS @eidelsburger :white_check_mark:

please verify and report results

3 Likes

The Shelly TRV works perfectly now: target values with decimal place are correctly transferred in both directions. Many Thanks for this great binding.

1 Like

you got the early bird verified award :wink:

1 Like

Hi all

Just installed the beta version today, posted a question regarding the Shelly Pro 3EM here.
I see the beta has three new channels (device@accumulatedWatts, accumulatedWTotal and accumulatedReturned) but I couldn’t figure out how to calculate the total kWh for each phase or in total.

Anyone managed to do that?

It works, with 0,5 degrees steps……

I’ve started persisting various values, DeviceAcumulatedReturned, DeviceAccumulatedWTotal, also returnedKWH for all 3 phases. I can’t make sense of it at all. :face_with_spiral_eyes:

Can someone explain what the first two stand for?
And for returnedKWH, I was under the impression that this only makes sense with PV if I feed back to the grid, but in OH I do get values for these channels.
In the Shelly App, the return values are 0 when exporting data to a CSV file.

I’m sure there’s a way to get the total consumption. Only then can I calculate the daily / YTD costs. I used to do that with the Homematic power meter and would like to do the same with the 3EM now.

Hi Markus,
thanks for the Binding, actually i cant see any Script provided by OH.

openhab> bundle:list | grep Shell
315 x Resolved x  80 x 4.1.2                  x openHAB Add-ons :: Bundles :: Shelly Binding Gen1+2
316 x Active   x  80 x 4.2.0.202405112307     x openHAB Add-ons :: Bundles :: Shelly Binding

With enabling the BT gateway function, you also need to enable to copy the script to the device in you Thing config.

1 Like

Many Thanks this is the way :slight_smile:

Dear all,
i have installed the new Shelly Mini1G3 is there a plan to implement this device, as i see this is actually not supported?
Regards
Simon

Found a nice script for the total values on GitHub, it conveniently posts the totals to a MQTT topic. Not the ideal solution, but I’m integrating that for the time being.

If anyone can explain how to interpret the DeviceAccumulatedWTotal to achieve the same result, would appreciate it.

See this README, at the bottom it’s explained what information is needed to support new devices.

Many Thanks, i have opened a new issue😀

Hi Markus,
i finaly updated all Plugs to 1.30 the Script is there after all devices are updated but the BLU Button does not work any more. Could you please have a look on that?
Regards
Simon

Hi, since updating to Openhab 4.2.0 M3 all my non plus/gen3 devices are not connecting anymore (e.g. shelly1 or shelly2.5). I am getting a “Websocket error” and then “Es trat ein unerwartetes Problem beim API-Zugriff auf” in the UI.
I have my things defined via the thing file. If I comment it out in the file and add them via the UI then the devices will connect. I checked how the UI configures the thing vs my file configuration and I dont see a difference. Anyone else getting this kind of errors?

Here an example of my thing definition in the file which is not working.

Thing shelly:shelly1:E8DB84A21513 "Bewässerung Tomaten" [deviceIp="192.168.4.49", userId="", password=""]

Should already be supported unless Allterco introduced a new model number
Check http://<shelly ip>/shelly and compare the model number with the on in README

that sounds odd, because I’m also using a mix of Gen1/2/3
Please check the latest DEV build, see READMEbeta how to install

4.2-DEV | 4.1-DEV | 4.0.-DEV | 3.4.5-DEV | README | READMEbeta
Avdanced Users - Shelly Manager - Bugs/Features - API Doc | Firmware Index - Firmware Archive


Note: The DEV build is always newer than the version in the official Distro or Milestone builds. Current development is based on 4.2-SNAPSHOT, 4.0.x and 3.4.x are outdated.

I see the same problem. All my non plus/gen3 shelly devices do not connect anymore with 4.2.0 M3. I am getting also the “Websocket error”.
The only shelly that is connecting is a shelly pro3.
All my shellys are defined in a thing file.

Example from my thing file:

Thing shelly:shelly25-relay:juri "Shelly Switch 2.5 Juri" [deviceIp="192.168.2.40", userId="xy", password="xy", updateInterval=15, eventsCoIoT=false, eventsButton=false, eventsPush=false, eventsSwitch=false]
Thing shelly:shellypro3:boiler "Shelly Pro 3 Boiler" [deviceIp="192.168.2.47", userId="xy", password="xy", updateInterval=15, eventsCoIoT=false, eventsButton=false, eventsPush=false, eventsSwitch=false]