Kostal inverter

openhab2
kostal
Tags: #<Tag:0x00007fd311b85b28> #<Tag:0x00007fd311b85790>

(Leo Verkaik) #21

Hi,

I think this add-on is what I would like to implement. Only, I have a SMA Sunnyboy 3000TL inverter. The operational data is accessable via a portal, www.sunnyportal.com. So scraping the data from that one and using it in OpenHab2 is on my wish-list.

I would like to use the current power from the solar panels to manage the charging of our electro car by the solar panels.

Would it be possible to add the reading of the SMA Sunnyportal (scraping) to the Kostal inverter binding, or could we create a SMA one based on the Kostal one?

thanks


(Örjan Backsell) #22

Hi,
I think the best solution will be to create a new binding for SMA.
The inverters type of Kostal New Generation are returning the data as an JSON-object.
I am in these days in the middle of creating another binding, but I will be glad to help if there are any questions I might be able to answer. Just let me know.

Regards Basse03


(Leo Verkaik) #23

Hi, thanks.

You’re probaly right. Although most of the coding is the same, just the data collecting will be different, I think.
I e-mailed SMA asking for any API they might have. Otherwise it will literally have to be scraped from the webpage.

Basse03, is it possible with the coding in the Kostal binding to login to a https site ?

Regards,

Leo


(Örjan Backsell) #24

Hi,
Sorry, but no, it’s not possible.
You connect to your very own inverter and catch the info with an link like:
http://192.168.1.114/api/dxs.json?dxsEntries=67109120

and then you will return the answer as an JSON-object.

I think that the best way is to create a new binding as: http://docs.openhab.org/developers/development/bindings.html

and then find out how the data will be best collected and then handle it, so it fit and then use the parts that are useful from Kostal or other bindings.
As I understand must you make the collected data to fit the method updateState(channel, state).
There might be other methods bu this is the one I have used in Kostal-binding.

Regards Örjan