Open BHylsebeck opened 2 years ago
What do you mean with "API is made"?
Hi - as I can see growatt has made a api so it is possible to connect to the SPH-series and get data out of the units. Is it possible for you to add support for Growatt SHP series in your Growatt APP ?
Unfortunately, there's no documentation for the Growatt API.
Are you able to collect the API calls for your SPH-unit?
PS: @DiedB is planning to drop Growatt support in the next release, so I'm not sure it makes sense to spend time on this.
Hi, Ok, How about communication with the Growatt server and get all the reading that way ? I am connected to the Growatt server and gets all data thru APP and Webportal. Is it possbile to get all these readings from Growatt server to Homey ? Today I cant thru the Homey Growatt APP.
My Growatt driver is based on API calls.
If you want to scrape the website you might want to start a separate driver from scratch.
I also need support for the SPH series,
Found this mabye it can help? https://growatt.pl/wp-content/uploads/2020/01/Growatt-Server-API-Guide.pdf
This seems to be documentation for an API for installers, who get a token from Growatt to use this API.
As far as I know Growatt does not hand out such tokens to individuals (though maybe you can try to get one?).
Oh! What about using HA Intergration as base? https://github.com/home-assistant/core/tree/dev/homeassistant/components/growatt_server
Seems to use the same API as the/my Growatt driver currently uses, but with support for newer devices (TLX, Mix, storage).
Does this library work for you with your SPH-series device?
Seems to use the same API as the/my Growatt driver currently uses, but with support for newer devices (TLX, Mix, storage).
Does this library work for you with your SPH-series device?
Yes work fine :) using it to schedule charge from grid on battery when power is cheap
Excellent!
Which API calls from this library do you use for that?
So you use update_mix_inverter_setting
.
Can you get the total energy production for today (so far) (in kWh) and current power (in W) using some of the other "mix" functions? (How?)
(those are the two values that the driver needs to report to the App)
Total solar production today is mix_info['epvToday']
Current W is (its in kW) mix_status['ppv']
Den 18. aug. 2022 kl. 23.03 skrev Rob @.***>:
So you use update_mix_inverter_setting.
Can you get the total energy production for today (so far) (in kWh) and current power (in W) using some of the other "mix" functions? (How?)
(those are the two values that the driver needs to report to the App)
— Reply to this email directly, view it on GitHubhttps://github.com/DiedB/Homey-SolarPanels/issues/209#issuecomment-1219960348, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG5V2R5UGJ4IJKYHKMGZNCLVZ2QJLANCNFSM547YO7GA. You are receiving this because you commented.Message ID: @.***>
I did this to calculate to W current production
calc_pv_total = (float(mix_status['pPv1']) + float(mix_status['pPv2']))*1000
@pro-sumer I haven't read the entire thread, but it seems that this (newer?) API does support all Growatt devices that were also supported in the current integration?
In that case I'm inclined to just give it a go in the new Solar Panels app version. Lots of Growatt users and would be nice if it's supported - given that it is stable enough!
@DiedB That would be great news!
I haven't had much time to look into this (busy with other projects), but it looks like this updated version of the Python Growatt library still uses the same domain name and API calls as currently used in SolarPanels (for "legacy" devices). However, it does add support for newer ("tlx" and "mix"?) devices.
We would have to find out how to detect which kind of inverter is used and what API calls need to be made for getting the energy production for today and the current power for that specific inverter. I can check that the code still works for my "legacy" inverter; @LasseBang seems to be capable to help for the "mix" inverters, and maybe we can find a "tlx" "power user" as well?
Perhaps with some teamwork we can make this work?
Im fresh! :-)
@pro-sumer Added Growatt support to the SDK v3 version of this app, could you check whether it works by running it locally?
I'll try to test this later this week/weekend.
Installed 5.1.2 today (after sunset).
App shows 0 W plus today's production in kWh (OK), but I will have to wait for tomorrow (sunlight) to test current power.
I did get a single value for current power once, but no updates after that.
Growatt refreshes the data every 5 minutes, but I see you have interval = 60
in the code. What’s the unit of that?
Does this mean "every hour"? If so, is that a mistake or intentional? (Why?)
Should be 60 seconds.
Will have a look at the code to see what goes wrong, and why it doesn't update without giving any errors.
@pro-sumer Could you manually send a crash report? Want to check whether the scheduled interval runs.
Please reconsider accessing the Growatt server every minute, which means 5x as much requests compared to the current implementation.
(it might cause Growatt to get even more defensive about third-party API usage)
@pro-sumer It's currently 15 minutes (before it was 60 minutes), I was mistaken.
@BHylsebeck please supply me with Growatt credentials at slower_04_machete@icloud.com so I can see if I can (easily) add support for SPH series.
Is this issue fixed or??? I can't make heads or tail in this thread.
When I use the growatt homey-app, my Growatt SPH10000TL3 is recognized, but when I open the device in homey I get an error That it is not supported yet.
When I try to use the solar panels homey-app i get to where I can enter my growatt credentials, but then "no new devices have been found"
Is this a Growatt problem? or a homey problem ?? What is the latest and greatest, and am I even trying the right app :-)
I would like to connect to my SPH3600
Hi
I hav a request for integration with the SPH-series. I would be very happy if it would be possible to add support for this series. API is made. I have a SPH-unit online/cloud connection if I can help. I hope it can be made.