goodwe-sems-home-assistant
goodwe-sems-home-assistant copied to clipboard
Found a better API
While decompiling the Solargo app I found a better API that's refreshes the data more often and results in less errors
Get token:
POST /api/Solargo/Login HTTP/1.1 Host: solargo.sems.com.cn language: en Content-Type: application/json Content-Length: 74 {"sn": "_serial_of_goodwe_", "password": "_MD5_hash_of_password_"}
Geta data:
GET /api/Solargo/GetRealdataOverview?language=%22en%22&sn=_serial_of_goodwe_ HTTP/1.1 Host: solargo.sems.com.cn token: _token_ language: en
Are you willing to use this API for your HA Custom Component? If not then I will try to make my own component.
Wow, really cool! If it performs better, we could definitely use this, but maybe keep the old URLs around?
I see this is a .cn
domain, while the current semsportal.com
seems to
redirect based on location to .eu
. I don't know what the performance
difference will be?
I don't know when I will have time to look into this, so feel free to fork the component and see it you can get it working. :)
PS there also seems to be some documentation in chinese: http://solargo.sems.com.cn/help
On Wed, 14 Jul 2021 at 22:59, WouterJN @.***> wrote:
While decompiling the Solargo app I found a better API that's refreshes the data more often and results in less errors
Get token: POST /api/Solargo/Login HTTP/1.1 Host: solargo.sems.com.cn language: en Content-Type: application/json Content-Length: 74 {"sn": "serial_of_goodwe", "password": "MD5_hash_of_password"}
Geta data: GET /api/Solargo/GetRealdataOverview?language=%22en%22&sn=serial_of_goodwe HTTP/1.1 Host: solargo.sems.com.cn token: token language: en
Are you willing to use this API for your HA Custom Component? If not then I will try to make my own component.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TimSoethout/goodwe-sems-home-assistant/issues/36, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEQZ3ADQNMCP7QMDOWIYZDTXX3ETANCNFSM5AMG5IAA .
Time is also always an issue for me, hopefully I have some times after my holiday.
Meanwhile I made a temporally test in Node-red and the results are looking very promising, the data frequency is one minute instead of 5 minutes with the SEMS API.
@WouterJN do you use the solargo API in Home Assitant??