Home Assistant Community Add-on: iSolarCloud / Sungrow

Trying to integrate my Hybrid PV-system into HA. Using GoSungrow. I have no possibility to use direct MODBUS due to FCR-D connection to the inverter itself.

I’m trying to get Gosungrow into my Energi-page of HA. Struggling to get the correct sensor to this setup… For the moment using

GoSungrow 5137128_14_1_1 - pv_total_energy - Overview - Pv Total Energy (p13134)

As the Total Solar energy. But get a strange peak every new day:

What sensor du you use to get the correct numbers into the this page?

Looking forward to your input!
Patrik

Hey,
im also interested to visualize the data like this overview:


can anyone explain how can we do this.
My HA is running on a VM on my Synology.

[EDIT - SOLVED Make it clear that the Username / passoword is the MQTT BROKER user / pass, (i.e. default of homeassistant for the user and a long string of digits for pass NOT the z2m or ZHA user / pass ;-P)

This is superb, i’m starting to play around a bit :slight_smile: BUT - after a couple of days of playing around, i’m getting stuck!

The plugin seems to actually login to sungrow (it’s found my 2 inverters and comms devices)
then comes up with an error!
I’ve seen a few people have this, but no luck.
using the latest version and one versino behind in HAOS / X64

2023/03/18 21:35:22 INFO: Connecting to MQTT HASSIO Service…
2023/03/18 21:35:22 INFO: Connecting to SunGrow…
User Name: ****************
Is Online: false
Token: *********************
Token File: /data/.GoSungrow/AppService_login.json
2023/03/18 21:35:23 INFO: Found SunGrow 4 devices
Error: identifier rejected

1 Like

HI was this ever resolved ??
Thanks

I had the same problem, after I took the HA User inside GoSungrow Settings and Mosquitto broker login, then it works for me.

Good morning everybody,
I currently try to connect to my SH10RT using the HA-add on.
While connecting via webbrowser works fine on the European portal I can not connect using HA.

I am using the EU gateway atm: https://gateway.isolarcloud.eu/

I get the following protocol prompts after creating the config:


[09:42:59] INFO: Login to iSolarCloud using gateway https://gateway.isolarcloud.eu/ ...
Error: API httpResponse is 404 Not Found
Usage:
  GoSungrow api login [flags]
Examples:
	GoSungrow api login  
Flags: Use "GoSungrow help flags" for more info.
Additional help topics:
ERROR: API httpResponse is 404 Not Found

Is there any hint were to look for?

Hi,
Did anybody resolve this issue? When I use Ha lovelace command I get foloowing…

┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Ps Key ┃ Ps Id ┃ Device Type ┃ Device Code ┃ Channel Id ┃ Serial # ┃ Factory Name ┃ Device Model ┃
┣━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┫
┃ 1204183_1_1_1 β”‚ 1204183 β”‚ 1 β”‚ 1 β”‚ 1 β”‚ B2122202986 β”‚ SUNGROW β”‚ SG15RT ┃
┃ 1204183_22_247_1 β”‚ 1204183 β”‚ 22 β”‚ 247 β”‚ 1 β”‚ B2122202986 β”‚ SUNGROW β”‚ WiNet-S ┃
┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┛

C:\Users\Rajapakses\Downloads\gosungrow>GoSungrow ha lovelace
Email: ##############@gmail.com
Create Date: Wed Dec 23 16:37:22 CST 2020
Login Last Date: 2023-03-31 07:06:17
Login Last IP:
Login State: 1
User Account: ######
User Id: 183472
User Name: Chanaka
Is Online: false
Token: 183472_1f8504d258da49dea6df31ce4c1bcfe8
Token File: C:\Users\Rajapakses.GoSungrow\AppService_login.json
Can’t find DeviceType 14 attached to ps_id 1204183.

Hi Guys, sorry for this noob question, but i am a complete newbe in this area.
this integration looks very nice, but i have problems to install it.
Where i can find the mqtt host, port, user and passwort informations.
my login by isolarcloud is correct. it find my user, my user id and its saying that it found 3 devices. But then it gives an error

2023/04/14 22:53:22 INFO: Found SunGrow 3 devices
Error: network Error : dial tcp: lookup core-mosquitto on 127.0.0.11:53: no such host
Usage:
GoSungrow mqtt run [flags]
Aliases:
run,
Examples:
GoSungrow mqtt run
Flags: Use β€œGoSungrow help flags” for more info.
Additional help topics:
ERROR: network Error : dial tcp: lookup core-mosquitto on 127.0.0.11:53: no such host
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

please help me

i must say i am not a admin from my pv installation, a company installed it and are the admins. i have an normal user account and i can use an local access via app and browser if i activate it on the wifi dongle at the power inverter.

thank you

Tobias I never got this one to work, changed to Sungather and that one did it for me.

Very clear description. Thanks mate.

I am stuck with last few steps as I am using a Raspberry Pi and Mac to setup.

Can you guide as how to get PS_Key and PS_ID plus, how to have a clean dashboard. Currently it is displaying lots of data in tex format and I am unable to get that in Apple HomeKit?

I am currently having this issue and I don’t understand what you’re saying in your edit. I have valid credentials for my MQQT setup, and the sungrow credentials are those I use with the isolarcloud website.

Am I missing something?

Sorry, by β€œthis issue” I mean:

[04:19:20] INFO: Syncing data from gateway https://augateway.isolarcloud.com …
2023/04/18 04:19:21 INFO: Connecting to MQTT HASSIO Service…
2023/04/18 04:19:21 INFO: Connecting to SunGrow…
2023/04/18 04:19:21 INFO: Found SunGrow 2 devices
Error: identifier rejected

Hi @tkoetzing
MQTT is running, and I get a lot of new entities with the wrong PS_Id
I got to β€œGoSungrow.exe show ps list” from a CMD.
I think I edited config.json correctly. But here is the error:
ERROR: API httpResponse is 405 Method Not Allowed
config json:
…
β€œappkey”: β€œ93D72E60331ABDCDC7B39ADC2D1F32B3”,
β€œconfig”: β€œC:\Users\Ludwig\.GoSungrow\config.json”,
β€œdebug”: false,
β€œhost”: β€œhttps://portal.isolarcloud.eu”,
β€œmqtt-host”: β€œβ€,
β€œmqtt-password”: β€œxxxxxxx”,
β€œmqtt-port”: β€œβ€,
β€œmqtt-user”: β€œmqtt-user”,
β€œout”: β€œβ€,
β€œpassword”: β€œyyyyyyyyyyy”,
β€œquiet”: false,
β€œsave”: false,
β€œtimeout”: β€œ30s”,
β€œtoken-expiry”: β€œβ€,
β€œuser”: β€œ[email protected]” ## my isolarcloud account with yyyyyyyyy-password
…
all replies welcome
BG Ludwig

Hello all,
I directed my last reply accidentally to tkoetzing only.
Please disregard this.
All answers are very welcome.
BG Ludwig

I have the same issue and I believe it is a β€œlate reset” or maybe rather a late MQTT reply to Home Assistant causing the first few minutes of the day to have the days before’s values for energy production. When the values are reset and start to increase again during the day, the sum will be wrong, due to the to high starting value.

e.g
If actual PV energy during the day is 12 kWh but the starting value at 00:00 is 25kWh (the day before’s total PV yield), the calculated PV energy for the current day in the Energy dashboard will be -13kWh.

I just got my Energy dashboard working and noticed this behavior this morning. I would be very happy if someone knows a good way to prevent this problem with to high (old) values just after midnight.

I really like this addon by the way and see great potential for it in my HA use!

/Anders

1 Like

Hi Stuart,
Sorry for the delay in replying, (just so many things on atm).

If you go to my github GoSungrow repo, (Releases Β· MickMake/GoSungrow Β· GitHub), you can download the GoSungrow executable and run it from a terminal/shell.

I’ll update the plugin and make it clearer.

Yeah, this is a frustrating one. It doesn’t happen on a handful of inverters I have access to, so debugging is hard. I’d suggest turning on debug mode and see what spits out. There’s an MQTT entry that allows control of the plugin. Just search for control in the entities list.

Yes, this is an issue with the response coming back from isolarcloud, but only for some values. I’ll have to figure out a nice way of handling it.

1 Like

GoSungrow will collect all inverters assigned to your account.

I’m beginning to think that each of the isolarcloud datacentres are being run by different people. The EU DC just seems to always be problematic.

There’s two ways to do this.

  1. Have a look at the raw yml files - HomeAssistantAddons/GoSungrow/docs/lovelace at main Β· MickMake/HomeAssistantAddons Β· GitHub

  2. Download GoSungrow and it’ll generate these files for you based on your inverter config.

$ GoSungrow ha lovelace
$ ls -l
total 528
-rw-r--r--  1 mick  staff  29104 27 Apr 11:36 Lovelace-Basic-1129147.yaml
-rw-r--r--  1 mick  staff  29104 27 Apr 11:36 Lovelace-Basic-1171348.yaml
-rw-r--r--  1 mick  staff  96418 27 Apr 11:36 Lovelace-Graphs-1129147.yaml
-rw-r--r--  1 mick  staff  96418 27 Apr 11:36 Lovelace-Graphs-1171348.yaml
-rw-r--r--  1 mick  staff   2547 27 Apr 11:36 Lovelace-Stats-1129147.yaml
-rw-r--r--  1 mick  staff   2547 27 Apr 11:36 Lovelace-Stats-1171348.yaml

Hello all,

first of all thanks to @MickMake for the nice addon.

I’ve also been trying to integrate my Sungrow SG5.0RT inverter into my HA using the MickMake variant for a few days. In the meantime I managed to get the addon to run without errors and generate a lot of entities. Unfortunately, I have the problem that my entities are all named differently than those of MickMake. So not only the IDs (it is clear that they are different), but also the endings of the entities are different.

For example:
all entities that MickMake specifies on its website for HA’s Energy Dashboard

Electricity grid

  • sensor.gosungrow_virtual_XXXXXXXXXXXXXX_grid_to_load_energy
  • sensor.gosungrow_virtual_XXXXXXXXXXXXXX_pv_to_grid_energy

Solar Panels

  • sensor.gosungrow_virtual_XXXXXXXXXXXXXX_pv_energy

doesn’t exist with me.

Have now tried to find my matching entities like this. This is not that easy. When adapting the templates for the dashboards, I also noticed that the entities that end in β€œpercent” do not exist for me at all. The AddOn did not generate any entities with β€œpercent”.

Does anyone else have this problem or has an idea what could be causing it?

Thanks in advance!

best regards
Thomas