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

trannergy disappeared #57

Closed ghost closed 4 years ago

ghost commented 5 years ago

I have installed the latest version of solar panels but trannergy seems to be disappeared. Will it be back in a later version?

DiedB commented 5 years ago

Will be back soon!

ghost commented 5 years ago

Any news on adding Trannergy again?

DiedB commented 5 years ago

Soon was a little optimistic, but I will find/make time for it sooner or later.

MaxvandeLaar commented 4 years ago

@DiedB Why did you removed it and is there a way I can help with this?

DiedB commented 4 years ago

It was removed in the migration to Homey v3.0 probably. Can you send me your Trannergy account details at diederik@outlook.com? I'd like to re-implement it but I need credentials for testing.

stephanhaas commented 4 years ago

@DiedB If you're in need of a Trannergy account I could help you. Would really like Trannergy added to your app.

DiedB commented 4 years ago

Sure!

stephanhaas commented 4 years ago

@DiedB just to be sure, did you receive my email?

edit: typo corrected

DiedB commented 4 years ago

I did!

stephanhaas commented 4 years ago

OK, thanks.

MaxvandeLaar commented 4 years ago

@DiedB is there any progress on this?

DiedB commented 4 years ago

Not really, I don't have an account and API documentation. If I remember correctly, Trannergy support was dropped when they changed their API two years ago.

MaxvandeLaar commented 4 years ago

@DiedB, sooo I really want Trannergy added. I decompiled an android apk and figured out their API. Do you accept pull requests so I can try to add it myself?

stephanhaas commented 4 years ago

interested!

DiedB commented 4 years ago

@MaxvandeLaar Cool, and I sure do! Please have a look at the other inverter implementations and try to not stray away too much, keeps the app maintainable ;-) Good luck and let me know here if you need help.

MaxvandeLaar commented 4 years ago

@MaxvandeLaar Cool, and I sure do! Please have a look at the other inverter implementations and try to not stray away too much, keeps the app maintainable ;-) Good luck and let me know here if you need help.

Great. I noticed SolarMan uses the same api (except base url) so I just copied it all and changed the url and some labels and icons. I currently installed it on my Homey and it connected without issues. I will probably make a pull request somewhere this weekend.

DiedB commented 4 years ago

For everyone who wants to test along, please install the beta version using https://homey.app/a/it.diederik.solar/test/ and report back with your findings!

stephanhaas commented 4 years ago

Installed the beta version and it seems to work. When looking at insights the total generated power of yesterday looks to be reset at 07:20 today. Perhaps in the coming days this will sort itself out. Don't know what the intended behaviour should be.

DiedB commented 4 years ago

That is intended in some way, it just takes over the daily generation value from the Trannergy API. This resets early in the morning, apparently.

stephanhaas commented 4 years ago

OK, thanks. I'll adjust my flow to a calculation early morning.

DiedB commented 4 years ago

Has been added to the live version, thanks @MaxvandeLaar!