[solarwatt] New binding for solarwatt energy manager

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.

1 Like

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 ?!

Englisch please, this is an international community!

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?

It is /rest/items and not /test/items

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.

Sounds good. I’ll try it.

It runs but I have to use port 80. 8080 doesn’t work. Let’s see what the next problems will be :wink: