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.
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.
I’ve started persisting various values, DeviceAcumulatedReturned, DeviceAccumulatedWTotal, also returnedKWH for all 3 phases. I can’t make sense of it at all.
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
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.
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.
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
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.