goodwe-sems-home-assistant icon indicating copy to clipboard operation
goodwe-sems-home-assistant copied to clipboard

Found a better API

Open WouterJN opened this issue 3 years ago • 3 comments

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.

WouterJN avatar Jul 14 '21 20:07 WouterJN

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 .

TimSoethout avatar Jul 15 '21 05:07 TimSoethout

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 avatar Jul 16 '21 19:07 WouterJN

@WouterJN do you use the solargo API in Home Assitant??

Silv0rShad0w avatar Sep 26 '22 08:09 Silv0rShad0w