DiedB / Homey-SolarPanels

Connects production statistics of a wide range of PV inverters to Homey
https://apps.athom.com/app/it.diederik.solar
GNU General Public License v3.0
52 stars 37 forks source link

Kostal support #92

Closed carstenkruseh closed 4 years ago

carstenkruseh commented 4 years ago

Hi!

Would it be possible to add Kostal support for the Homey app?

I have a Plenticore Plus - It's available on my LAN. I Hope you can help :)

DiedB commented 4 years ago

Can you show some screenshots of the LAN interface?

carstenkruseh commented 4 years ago

Hi!

Thanks a lot for your reply!

First login-page:

Maybe possible to Connect to sunspec? Or simular?

Sendt fra min iPhone

Den 29. jan. 2020 kl. 21.12 skrev Diederik Bakker notifications@github.com:

 Can you show some screenshots of the LAN interface?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

DiedB commented 4 years ago

You would need to upload those images via GitHub, otherwise they are not shown.

carstenkruseh commented 4 years ago

Hi!

Here is the pictures :) Maybe you can use something from this: (Though it's for Kostal Pico-inverter) https://www.smarthomeng.de/developer/plugins/kostal/README.html

IMG_9392 IMG_9393 IMG_9394

DiedB commented 4 years ago

Should be possible, I think. Could you forward port 80 of your inverter and send me the IP and login details? I will have a look.

diederik@outlook.com

FalcoRutten commented 4 years ago

94.215.98.26 port 80 user pvserver pw test123

derhelle commented 4 years ago

Hi DiedB,

i also would appreciate an Kostal Integration. I could send you the requested Data or give you access to my Inverter. A Tesla PowerWall 2 integration would be also very cool ;-)

regards Helle

DiedB commented 4 years ago

@derhelle Could you contact me at diederik@outlook.com? Would like to look into both of them, but port forwards of others here are not working (anymore).

DiedB commented 4 years ago

Almost done, it just needs some error handling and a token refresh mechanism. Implementing the authentication is hell, the other parts are smooth sailing. I like the update speed of these inverters, a 5-second resolution is possible! Will upload a test version later tonight or tomorrow.

IMG_7333

carstenkruseh commented 4 years ago

Sounds super great! Will it be possible to see battery %, house consumption too?

91.144.213.80 Cahan277

Hent Outlook til iOShttps://aka.ms/o0ukef


Fra: Diederik Bakker notifications@github.com Sendt: Thursday, August 27, 2020 8:13:20 PM Til: DiedB/Homey-SolarPanels Homey-SolarPanels@noreply.github.com Cc: carstenkruseh carstenkh@gmail.com; Author author@noreply.github.com Emne: Re: [DiedB/Homey-SolarPanels] Kostal support (#92)

Almost done, it just needs some error handling and a token refresh mechanism. Implementing the authentication is hell, the other parts are smooth sailing. I like the update speed of these inverters, a 5-second resolution is possible! Will upload a test version later tonight or tomorrow.

[IMG_7333]https://user-images.githubusercontent.com/7628001/91479323-8bbcb400-e8a1-11ea-8e2d-8599eae6fe8e.PNG

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/DiedB/Homey-SolarPanels/issues/92#issuecomment-682109847, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOMWJW66XJHKI4HFHTLCZUTSC2O4BANCNFSM4KMPG3BQ.

derhelle commented 4 years ago

Awesome!! Thank you!

DiedB commented 4 years ago

@carstenkruseh Could you reset the inverter password? I locked the account while testing the login error handling ;-)

carstenkruseh commented 4 years ago

Done - Password Now Cahan2777 :)

Hent Outlook til iOShttps://aka.ms/o0ukef


Fra: Diederik Bakker notifications@github.com Sendt: Friday, August 28, 2020 1:12:57 PM Til: DiedB/Homey-SolarPanels Homey-SolarPanels@noreply.github.com Cc: carstenkruseh carstenkh@gmail.com; Mention mention@noreply.github.com Emne: Re: [DiedB/Homey-SolarPanels] Kostal support (#92)

@carstenkrusehhttps://github.com/carstenkruseh Could you reset the inverter password? I locked the account while testing the login error handling ;-)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/DiedB/Homey-SolarPanels/issues/92#issuecomment-682468319, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOMWJW2FXBJKJGGOQQZTOL3SC6GLTANCNFSM4KMPG3BQ.

DiedB commented 4 years ago

Great, thanks for your collaboration guys!

You can test Kostal integration at: https://homey.app/a/it.diederik.solar/test/

I would like to implement full support for your system @carstenkruseh, but it is a little too complicated for this app currently. For all brands it supports, it only shows PV production statistics. It would need some more custom capabilities and such, and I think it is better to create a standalone Kostal app which allows for full integration. Athom is releasing a new SDK (with firmware 5.0.0) and once that is adopted broadly, I'll plug Kostal out of this app and into its own app, including battery support. Could you create an issue for now (in this repository) asking for full support?

There is another limitation, since the app currently only supports PV/inverter variables, it won't show the values you currently want to see @carstenkruseh. The app measures inverter output and yield, but because you have a battery on the DC side, the inverter output doesn't equal solar production. Don't worry, we'll get around to it once Kostal gets its own app ;)

FalcoRutten commented 4 years ago

Hi, I tested the kostal version, but get timeout-error. Falco

DiedB commented 4 years ago

@FalcoRutten What are you entering exactly, can you send screenshots of your inverter interface?

FalcoRutten commented 4 years ago

See attachments

Verzonden vanaf mijn Samsung Galaxy-smartphone.

-------- Oorspronkelijk bericht -------- Van: Diederik Bakker notifications@github.com Datum: 28-08-2020 15:10 (GMT+01:00) Aan: DiedB/Homey-SolarPanels Homey-SolarPanels@noreply.github.com Cc: FalcoRutten falcorutten@hotmail.com, Mention mention@noreply.github.com Onderwerp: Re: [DiedB/Homey-SolarPanels] Kostal support (#92)

@FalcoRuttenhttps://github.com/FalcoRutten What are you entering exactly, can you send screenshots of your inverter interface?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/DiedB/Homey-SolarPanels/issues/92#issuecomment-682547393, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP76MY4SKU6A5EBH5JAK7RTSC6UCXANCNFSM4KMPG3BQ.

DiedB commented 4 years ago

@FalcoRutten You'll have to do that directly on GitHub, it doesn't allow email attachments to come through.

FalcoRutten commented 4 years ago

Screenshot_20200828-151327_Samsung Internet Screenshot_20200828-151300_Homey

DiedB commented 4 years ago

Ah, you have a different inverter from @carstenkruseh and @derhelle (they have a Plenticore), and the app is not going to work with yours (for now). I'll need to clarify that in the app. Kostal does not really provide documentation on their inverters and connectivity, so it is hard to determine which inverters are supported.

FalcoRutten commented 4 years ago

Would be great if you could also add my system!! Thanks Falco

derhelle commented 4 years ago

"Hi, I just tried but I get an error: Could not find that PairSession."

Never mind, I tried it a 2nd time, and it works fine!!! Thank!

regards Helle

carstenkruseh commented 4 years ago

It’s meassuring Home consumption, not pv production :) Maybe you need to only add DC string 1 and 2. String 3 is battery.

Hent Outlook til iOShttps://aka.ms/o0ukef


Fra: derhelle notifications@github.com Sendt: Friday, August 28, 2020 3:53:05 PM Til: DiedB/Homey-SolarPanels Homey-SolarPanels@noreply.github.com Cc: carstenkruseh carstenkh@gmail.com; Mention mention@noreply.github.com Emne: Re: [DiedB/Homey-SolarPanels] Kostal support (#92)

Hi, I just tried but I get an error: Could not find that PairSession.

regards Helle

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/DiedB/Homey-SolarPanels/issues/92#issuecomment-682587226, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOMWJW2EFXSIGAAHTK72ZOTSC6ZEDANCNFSM4KMPG3BQ.

DiedB commented 4 years ago

@carstenkruseh Are you sure? I believe it is consistent with the inverter output, e.g. the value that you see on the top left when you login to your inverter. It might look like home consumption because the home often runs on battery power (which goes through the inverter).

carstenkruseh commented 4 years ago

Hi!

Yes, I’m sure. But you might be right.

I just tested this afternoon. The consumption was bigger than the pv output. So the rest of the power was drawn from the battery.

Pv output + battery output = consumption. So you are probably right.

Then I’ll have to wait for your Kostal app :)

Med venlig hilsen Carsten Kruse Kristrupvej 33 8960 Randers SØ

T: 31 61 31 21 E: carstenkh@gmail.com mailto:carstenkh@gmail.com

Den 30. aug. 2020 kl. 21.18 skrev Diederik Bakker notifications@github.com:

@carstenkruseh https://github.com/carstenkruseh Are you sure? I believe it is consistent with the inverter output, e.g. the value that you see on the top left when you login to your inverter. It might look like home consumption because the home often runs on battery power (which goes through the inverter).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DiedB/Homey-SolarPanels/issues/92#issuecomment-683459202, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJWYLPM5C75RNKNY7TXDSDKQXPANCNFSM4KMPG3BQ.

DiedB commented 4 years ago

The newest version including Kostal Plenticore has been released.

FalcoRutten commented 4 years ago

Hi, Still not working with my Piko Kostal!