Shelly Pro EM3 - not refreshing states

Hi

I have a balcony solar, so i want to mesaure the export to the grid with openhab so i can utilize all the solar power by trigering smart plugs and sync power consumption with solar.

The issue i have is that connecting Shelly Pro EM3 to Openhab 4 isn’t working as expected.

I installed Shelly binding, added the EM3 Pro to the OH4 with typing in fixed IP of the device and it apears to work, but it stops worrkin in no time at all, like when i turn off EM3 Pro it wont reconect to OH every time, the refresh is not reliable.

I have latest shelly 1.5.1 firmware and openHAB 4.3.2 Release Build.
It appears that either the Shelly API gives trouble or the Binding is not optimized for EM3 Pro yet.
It appears that shelly em3 pro reports reliably to mqtt broker i set up, paralel for testing, but that HTTP API or that interface that the OH uses it seems troublesome, i am unsure on what end the issue persists.

I am thinking of integrating over MQTT, or Modbus if the issue will have to be resolved by binding creator, that seems to be bussy on github with many issues open.

I also tested Shelly Plus S plug that seems to be working fine, so it apears to be EM3 pro related issue mainly.

I also would like to have somewhat active status to see active power in real time whe it changes or at least every 5s, i understand it doesn’t need to send all but heartbeat and active power seem necesarry for our use case.

I have my own meter that only pulls current of 3 phases every 2s and it works for alerting of supply overload.

Thats my current setup with diy EMONLIB meter but it lacks advanced power analisys, that shelly will bring.

Any recomendations on reliable integration appriciated.

Cheers
Matej

Yeah I have the same device and it’s also a bit buggy. By mqtt it seems to work fine though. I upgraded to 1.5.1 after using a matter bridge and at least for now it’s handling it fine. I’ll report back. Maybe use the main Shelly thread for support though?

Hi
Thanks for sharing your experience.
May you share the mqtt.things and items snippet for EM3 pro if you have text based config, that would be really helpfull.
Mainly sharing all your JSON trasnsforms in items, that would help me get running with MQTT.

You said shelly thread, what is the official one is it this one Shelly Binding ?
Thanks a lot
Matej

Yes that thread!
All of my config is ui based though. And I simply used mqtt explorer on windows to see the payloads and topics and copied over to a generic mqtt. Ive since deleted that and moved to a matter bridge. Which stopped sending the payloads some time ago so now im back to the binding.

It’s a mess xD

Oh dear, i see, but shelly seems really good so it deserves to work great on OH.
I mainly streamlined all my setup to text config and MQTT.
Sometimes i wish there would be easier to debug bindings on my own but i have no clue of bindings.
I make my own rules and scripts and write python for more sophisticated stuff.

It feels tedious for manually doing all the fetching of JSON in UI.

I will look into it, and make text config by fetching JSON in items then, it has to woork reliably :grinning_face_with_big_eyes: