Kostal inverter

Tags: #<Tag:0x00007f616b303350> #<Tag:0x00007f616b302ea0>

I have already sent them an mail with some questions about our case. The last time I asked them answered they almost the next day, so we will see tomorrow or at least very soon.
If they had a binding that work should it be possible for booth of us, just to swap to this new one. I have done it with another binding so it should be handleable. We just have to wait and see, I let you know further on. I will send you my questions and hopefully the good answer from kostal.

Hi!

So, I have got the answer,

but first my question:

Hi! I have an Kostal 8.5. with data as below UI06.11 FW05.35 HW0100
PAR02.49 Serial number90523PD50000P Articel number10129558 Country
settingSweden (20.13) I am also running openhab2 but it’s not possible
to make it work. openhab2 doesn’t receive any readable data from the
inverter. It works just great with an ordinary Web-browser, I use
Chrome. The binding I use for openhab2 is as: 211 | Active | 80 |
2.0.0.qualifier | org.openhab.binding.kostalinverter

And this is the answer:

"Dear Sir,

I suppose you mean the connection to the Piko Portal.

The inverter has send his data.

In the next step you must registered the inverter in the portal, in your
plant.

In attachment you find the manual."

So it seems like they doesn’t have the answer to our questions, maybe
you to can make a try, otherwise I do think that we have to get in
contact with the people which had make the existing binding. I will do
my very best to find them.

Regards Örjan

Den 2016-11-08 kl. 21:15, skrev LM:

Hy,
I think this is because the web pages are change.
The binding in openHAB uses the page config.url
I have also read from implementations they use the page index.fhtml.
But in UI version 6.20 these pages are not existent.
Maybe there is a change to get the data by looking wireshark and the kostal APP.

Mit freundlichen Grüßen
Alexander Wetzel

They will try to give me the data we need.
But at this time I have to sign an NDA.
They will look for an solution without NDA.
In the JavaScript I haven’t found the solution.

I solved the problem using HTTP binding.

  1. In the file http.cfg:

kostal.url=http://192.168.2.101/api/dxs.json?dxsEntries=67109120&dxsEntries=251658754&dxsEntries=251658753&dxsEntries=16780032&dxsEntries=251658496
kostal.updateInterval=30000

The entries are:
67109120: Current Power (in W)
251658754: Day Yield (in Wh)
251658753: Total Yield (in kWh)
16780032: Status (0: Off, 3: Feed-in)
251658496: Operation Time (h)

  1. In the file kostal.items:

Number Solar_CurrentPower “Aktuelle Leistung [%.1f W]” <power_lightning> { http="<[kostal:60000:JSONPATH($.dxsEntries[0].value)]" }
Number Solar_DayYield “Tagesertrag [%.1f Wh]” <power_lightning> { http="<[kostal:60000:JSONPATH($.dxsEntries[1].value)]" }
Number Solar_TotalYield “Gesamtertrag [%.1f kWh]” <power_lightning> { http="<[kostal:60000:JSONPATH($.dxsEntries[2].value)]" }
String Solar_Status “Akueller Status [MAP(kostal_status.map):%s]” <power_lightning> { http="<[kostal:60000:JSONPATH($.dxsEntries[3].value)]" }
Number Solar_OperationTime “Betriebszeit [%d h]” <power_lightning> { http="<[kostal:60000:JSONPATH($.dxsEntries[4].value)]" }

1 Like

Hi!
Great, I will have a closer look and also make a try asap.
I do have an redesigned bundle working, but it’s not quit finished yet. I have to do some more test and make it ready for public.
I think your solution is a big step forward, regarding when we started, with nothing working at all.

//Basse03

Hi,

are there any news? I have on my old Kostal V 5.44. The V6 for the “bewährte Generation” was revoked.
All older Kostal Inverter are not working any more (2.1 or 2.2) with the Kostal Binding. I´m always getting the Thing offline with an “communication error”.
In my old 2.0 Version the Inverter works like it should, but it was on my Synology and I had to update for e.g. Keba wallbox.

Hi,
sorry to dig this up but I am experiencing the same problem.
Any news?

I tried the HTTP binding workaround posted by AlexMatic in April, but unfortunately did not get that running. Might have to do with my beginner’s level, but anyway I would prefer an update of the included Kostal openHAB binding - as this is from my understanding not working anymore, right?

Maybe we should try to contact Kostal again? But as I will not be able to “digest” any new information from there in a proper way - who would?

There is this another Thread where one user managed to refactor the binding.
Maybe someone can help him?

Hi!
I’m in a little hurry right now but I will try to answer your questions tomorrow.
I have got an Kostal inverter of the model New Generation and also an working redesigned binding, I will be back tomorrow.

Basse03

Hi,
I’m no professional programmer so I am not very familiar with ex. Github.
Spaceman_Spiff Sebastian, could you please send me your e-mail and I will send the .jar and some info asap.
And in the meantime I will do my very best to learn more regarding Github.

orjan.backsell@gmail.com

Regards Basse_03

Do you know what Status 1 and 2 are?

Hi,
I have found some info, I’m not sure but it could be something like:
AC S AC status:
Value Meaning 0 Inverter off
1 Inverter idling
2 Inverter starting up
28 Feed*

ENS S Status of the ENS (device for grid monitoring with
assigned switching elements):
Status of grid monitoring
Value Meaning 0 Grid monitoring deactivated
1 Initialisation phase
2 Pending (start-up of inverter)
3 Running (current feed-in to the grid)
15 Error

//Basse03

1 Like

Thank you

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

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

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

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

Hello,
what’s the difference in using the http binding to get the values from the Kostal, compared to using the new binding from Basse_03?
I understand that the httpbinding is more difficult to configure, but once you got it running, is there any disadvantage in using the httpbinding compared to the new kostal binding?

Regards
Bernd