Sungrow-API

PythonScript files to access Sungrow’s iSolarCloud Open API

Credits

MickMake (https://github.com/MickMake) has a wonderful app named GoSungrow (https://github.com/MickMake/GoSungrow) that creates MQTT sensors in HA for ALL the data points available. It uses a generic AppKey and the user’s login information. I have it installed and working without any problems.

MickMake explicitly says that using the standard API is not the best, but it works, and it’s fun to program and debug by yourself. Please be sure to access his repository to see why he finally opted for his solution.

Why this repository?

While setting up MickMake’s app I had some problems with the appkey. So I accesed the ‘Applications’ menu option from ISolarCloud and was asked to create an app to obtain the appkey. In a couple of days I got my appkey, which didn’t work with GoSungrow, and started looking at the API requirements. So, when I finally got GoSungrow working I decided to continue studying this other solution.

What is it?

It is a DIY way of reading data from a Sungrow installation. You can choose what and when to read it

These files implement the minimum ISolarCloud API calls needed to integrate the data into Home-Assistant.

Setup procedure

Getting the information needed for the API queries

alt_text

alt_text

You must give some information about why you need access to the api. In my case I just said I wanted access from Home Assistant, WITHOUT access with OAuth2.0. In a couple of days I entered the screen and the app was approved.

alt_text

Installation

Restart Home Assistant

Home Assistant will update all Sensors on startup. In case the token is not valid it will renew it.

TODO list

Right now it works well enoough for me, and I want to test it before adding additional stuff: