I developed a new binding to query a solarwatt energy manager and read the values of all attached devices.
As there seems to be no public documentation about the API of the energy manager everything was done by trial and error. It works for my system at least.
If anybody with a solarwatt energy manager is willing to try it, I would be happy about feedback.
After 2 years⊠Was the binding maintained? I just got a Solarwatt PV-Installation some days ago and detected, that there is an openhab binding supporting this. I installed the binding - but cannot connect to the energymanager! No matter whether I use IP or hostname, the result ist always âcomm errorâ and then âofflineâ for the manager itself.
I did not yet create the other things because I think, this makes no sense if the manager itself cannot connectâŠ
It is also obvious that energymanager uses an openhab (V.2) internally. It could be an idea to create an UI directly out of this one but Iâm not sure that this is a good idea?!
It seems that Solarwatt produced a new âEnergymanager Flexâ which uses OpenHAB. (see gelöst Solarwatt Energymanager flex Daten auslesen ).
This binding only works for the âoldâ version as it is the only one I have in use.
Could you send me the output that is produced on your version if you query the URL /rest/items ?
Ja, das ist korrekt. Der output aus /rest/items ist auch wie erwartet JSON. Jetzt steh ich noch auf dem Schlauch, wie ich das in meinen zentralen openhab bekomme um es dort im UI mit anzuzeigen ?!
Shame on me! Youâre right! Donât know why I suddenly wrote in German?!
Yes, it is the new version of energymanager and it includes openhab. The output of /rest/items is - as expected - json. So⊠my real issue is, how do I get the values from the energymanager into my central openhab installation to integrate it there?!
We should carlify the supported version (EnergyManager without Pro) and should narrow it down via production year.
âOnly supports Solarwatt EnergyManager Standard which was discontinued in 2021/2022. This one lists its devices via a call to /rest/kiwigrid/wizard/devices/â
âThe newer EnergyManager Pro / Manager Flex is not supported as it is already based on OpenHAB. These list the devices via a call to /test/itemsâ
As the OpenHAB Installation on Manager Flex is to my understanding not open to the customer and therefore a parrallel use to an existing OpenHAB Installation (->UI) is not feasable - will there be any kind of binding for Manager Flex 1?
You could try a more general approach to connect two OpenHAB instances like this one Remote openHAB - Bindings | openHAB
A specialised binding only for Manage Flex seems to me to be a bit of overengineered. A more simplistic approach for âintegrate another openhabâ seems the way to go.
Iâve got a EnergyManager Pro - unfortunately I donât get access to OpenHab Listings on the Energymanager. What URL did you call to list the devices? 192.168.xxx.xxx/rest/items? The OpenHub Remote Binding is also not connecting to this IP. (not on Port 80 and also not on 8080)
I talk about Manager Flex 1 and not EnergyManager Pro! No glue, how EMp works! Does it use also an integrated openHAB?
Remote Binding works perfect fo MF1. The link /rest/items is correct for MF1.
Sorry that I canât help more!!
Try to input the passwort for EMp in the Remote Binding.
I hoped, that the PRO is also based on OpenHub - but it seems to be wrong.
I tried â/rest/kiwigrid/wizard/devices/â and this returns values - so I would sugguest, that the Pro is based on the same architecutre as Standard was.
Okay, I experimented a little bit with the knowledge of the call to " /rest/kiwigrid/wizard/devices/". With that one I could add the devices to the SolarWatt Binding manually. Autodiscover doesnât work. It seems like everything is working after adding it by hand. For the battery I had to fix ItemType StateOfCharge and StateOfHealth from âcallâ to ânumberâ manual while linking.
Could you send the output of the call to â/rest/kiwigrid/wizard/devicesâ to me via private message?
Iâll try to figure out why the autodiscover seems to fail.