Home Assistant Community Add-on: iSolarCloud / Sungrow

The GoSungrow addon will use whatever broker you have set and create those control entries in the MQTT tree.

Cheers Mick.

Nah, leave it unless you want to mate. Youā€™re not the IT helpdesk :wink:

Iā€™ll try and sort this out myself.

Jarrod.

1 Like

Hi Mick,
I tried your Add-On and itā€™s exactly what I was looking for. Thanks for that.
I still have a few things to sort out and configure, but for the moment one question about the energy dashboard.
I followed excactly your documentation (but with 2 inverters). Unfortunatly I get for all entities the error: ā€œlast_resetā€ is missing (screenshot in German, but I think youā€™ll get it).

Am I missing something or do I have to make some adjustments somewhere?

BR Manuel

Ciao Mick.sono contento perche sono riuscito ad integrare gosungrow sul mio home assistant e vedo centinaia di entita.perĆ² non riesco ad aggiungere la card di lovelace come quella che assomiglia a isolarcloud.riesci a darmi una mano?grazie

Howā€™d you go Jarrod? Iā€™m having a very similar issue. I have HA installed on a RaspberyPi with the Mosquitto broker addon for MQTT (MQTT - Home Assistant). Iā€™ve tried setting the the MQTT_HOST in the configuration to ā€œlocalhostā€, ā€œhomeassistant.localā€, and even the IP address of HAā€¦ no dice. I keep getting the error following error. Interestingly ā€œkirkā€ is my username.

Error: network Error : dial tcp: lookup kirk on 127.0.0.11:53: no such host

image

Hi Kirk,

Yeah still no go unfortunately.

My Config - very similar:

image

My MQTT Broker as you see is 10.1.1.165, which is the IP of a container in a Qnap NAS. ( 165 is the actual NAS IP) But HA is in a VM in the NAS. the VM is allocated 10.1.1.171.

I just tried to start the add on again just now to show you the error message:

image

Iā€™m not a coder, or a network engineer - Iā€™m hardware, so this one has me a little stumped. :frowning:

If you sort it, please let me know!!!

Cheers,

Jarrod.

Thanks Jarrod. @MickMake, do you have any thoughts on whatā€™s happening?

Have you got the Mosquitto broker installed from the Add-ons?

Problem with installation. I follwed GitHub - MickMake/HomeAssistantAddons step 1 and step 2 grafik
But step 3 no new Addon is shown: grafik
Running Home Assistant 2022.12.8 on Raspberry P 4. What can i do?

Ok, after rebbot of HA the add on is shown.
But after pressing ā€œinstallā€ i got the error (i know was allredy report, but found no solution):

The command ā€˜/bin/ash -o pipefail -c chmod a+x /usr/local/bin/setup.sh && /usr/local/bin/setup.shā€™ returned a non-zero code: 1

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:124
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 09:42:00 (3 occurrences)
Last logged: 12:49:25

Failed to to call /addons/ba22da74_gosungrow/install - The command ā€˜/bin/ash -o pipefail -c chmod a+x /usr/local/bin/setup.sh && /usr/local/bin/setup.shā€™ returned a non-zero code: 1

Step 29/36 : RUN chmod a+x /usr/local/bin/setup.sh && /usr/local/bin/setup.sh
ā€”> Running in a3f0b704de88
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/armv7/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/armv7/APKINDEX.tar.gz
v3.16.3-135-geaceb73d52 [Index of /alpine/v3.16/main/]
v3.16.3-135-geaceb73d52 [Index of /alpine/v3.16/community/]
OK: 16571 distinct packages available
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/armv7/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/armv7/APKINDEX.tar.gz
(1/4) Installing libunistring (1.0-r0)
(2/4) Installing libidn2 (2.3.2-r2)
(3/4) Installing wget (1.21.3-r0)
(4/4) Installing gosungrow.persist (20230119.114923)
Executing busybox-1.35.0-r17.trigger
OK: 18 MiB in 44 packages
bashio::log.error Hardware not supported
Removing intermediate container a3f0b704de88

Any hint to fix this error?
Running HA 2022.12.8 on Raspberry Pi 4 (32 Bit)
Supervisor 2022.12.1 Operating System 9.4 Frontend 20221213.1 - latest

Identical issue here as well

Hi,

I try to use this addon but i always have this error of connection.

I can connect to isolarcloud platform with this login and pass but not to the addon

Can you give me some help

[20:01:49] INFO: Login to iSolarCloud using gateway https:/gateway.isolarcloud.eu ...
Error: Post "https:/gateway.isolarcloud.eu/v1/userService/login": http: no Host in request URL
Usage:
  GoSungrow api login [flags]
Examples:
	GoSungrow api login  
Flags: Use "GoSungrow help flags" for more info.
Additional help topics:
ERROR: Post "https:/gateway.isolarcloud.eu/v1/userService/login": http: no Host in request URL
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

Ive updated HA, and getting a new error from my original post above:

[22:40:38] INFO: Login to iSolarCloud using gateway https://augateway.isolarcloud.com ...
Email:	[email protected]
Create Date:	Mon Apr 26 11:02:02 CST 2021
Login Last Date:	2023-01-26 06:40:41
Login Last IP:	
Login State:	1
User Account:	XXXXXXX
User Id:	XXXXXX
User Name:	XXXXXXXXX
Is Online:	false
Token:	462374624726389264XXXXXXXXX4239012
Token File:	/data/.GoSungrow/AppService_login.json
[22:40:41] INFO: Syncing data from gateway https://augateway.isolarcloud.com ...
2023/01/25 22:40:41 INFO: Connecting to MQTT HASSIO Service...
2023/01/25 22:40:41 INFO: Connecting to SunGrow...
2023/01/25 22:40:41 INFO: Found SunGrow 2 devices
2023/01/25 22:40:41 INFO: Caching Sungrow metadata...
2023/01/25 22:40:42 INFO: Cached 236 Sungrow data points...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xc8 pc=0x8b91fe]
goroutine 1 [running]:
GoSungrow/iSolarCloud/AppService/queryDeviceList.(*EndPoint).SetPvPoints(_, {{_, _, _}}, {0xc000bc48d0, {0xc000a02640, 0x7}, {0xc0ec89da93008c9f, 0x2ad53c5f, 0x48d4da0}, ...})
	/Users/mick/Documents/GoLang/Solar/GoSungrow/iSolarCloud/AppService/queryDeviceList/data.go:419 +0x87e
GoSungrow/iSolarCloud/AppService/queryDeviceList.(*EndPoint).GetEnergyStorageSystem(_, {0xc000bc48d0, {0xc000a02640, 0x7}, {0xc0ec89da93008c9f, 0x2ad53c5f, 0x48d4da0}, {{0xc000a40220, 0x2, 0x2}}, ...})
	/Users/mick/Documents/GoLang/Solar/GoSungrow/iSolarCloud/AppService/queryDeviceList/data.go:299 +0x3b5
GoSungrow/iSolarCloud/AppService/queryDeviceList.(*EndPoint).GetData(_)
	/Users/mick/Documents/GoLang/Solar/GoSungrow/iSolarCloud/AppService/queryDeviceList/data.go:259 +0xb8
GoSungrow/iSolarCloud/AppService/queryDeviceList.EndPoint.GetEndPointData(...)
	/Users/mick/Documents/GoLang/Solar/GoSungrow/iSolarCloud/AppService/queryDeviceList/struct.go:367
GoSungrow/iSolarCloud.(*SunGrowData).CallEndpoint(_, {_, _}, {{0xc000a17350, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...})
	/Users/mick/Documents/GoLang/Solar/GoSungrow/iSolarCloud/data.go:161 +0x433
GoSungrow/iSolarCloud.(*SunGrowData).getDataSinglePsIdRequired(0xc000b77488, {0x2f0ee30, 0xc000897180})
	/Users/mick/Documents/GoLang/Solar/GoSungrow/iSolarCloud/data.go:281 +0x325
GoSungrow/iSolarCloud.(*SunGrowData).GetDataSingle(0xc000b77488, {0xc0001280d0, 0xf})
	/Users/mick/Documents/GoLang/Solar/GoSungrow/iSolarCloud/data.go:236 +0x14f
GoSungrow/iSolarCloud.(*SunGrowData).GetData(0xc000b77488)
	/Users/mick/Documents/GoLang/Solar/GoSungrow/iSolarCloud/data.go:207 +0x125
GoSungrow/cmd.(*CmdMqtt).Cron(0xc00012d720)
	/Users/mick/Documents/GoLang/Solar/GoSungrow/cmd/cmd_mqtt.go:370 +0x2b7
GoSungrow/cmd.(*CmdMqtt).CmdMqttRun(0xc00012d720, 0x0?, {0x0?, 0x0?, 0x0?})
	/Users/mick/Documents/GoLang/Solar/GoSungrow/cmd/cmd_mqtt.go:268 +0x85
github.com/spf13/cobra.(*Command).execute(0xc0001ec900, {0xc00003e1a0, 0x0, 0x0})
	/Users/mick/go/pkg/mod/github.com/spf13/[email protected]/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc00017c000)
	/Users/mick/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/mick/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
github.com/MickMake/GoUnify/Unify.(*Commands).Execute(...)
	/Users/mick/go/pkg/mod/github.com/!mick!make/!go!unify/[email protected]/struct.go:258
github.com/MickMake/GoUnify/Unify.(*Unify).Execute(0xc0001527e0)
	/Users/mick/go/pkg/mod/github.com/!mick!make/!go!unify/[email protected]/struct.go:201 +0x385
GoSungrow/cmd.Execute(...)
	/Users/mick/Documents/GoLang/Solar/GoSungrow/cmd/commands.go:90
main.main()
	/Users/mick/Documents/GoLang/Solar/GoSungrow/main.go:11 +0x6f
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

Ive had an extra 6.6KW of panels installed last week - so Im super keep to see whats happening from my PV system!

Any help appreciated.

Jarrod.

I forget a / in https://gateway.isolarcloud.eu :crazy_face:

1 Like

Hi Mick (or anyone whose got this working on RPi),

First of all thanks Mick for your awesome work - Iā€™m busting keen to get it going.

Iā€™m running Home Assistant on an RPi3. Installed it, configā€™d it, and it connected with my ā€œPlantā€ like a dream, giving me;

2023/01/29 08:54:59 INFO: Connecting to SunGrowā€¦
2023/01/29 08:55:00 INFO: Found SunGrow 4 devices
2023/01/29 08:55:00 INFO: Caching Sungrow metadataā€¦
2023/01/29 08:55:01 INFO: Cached 236 Sungrow data pointsā€¦
2023/01/29 08:55:02 INFO: Syncing 148 entries with HASSIO from getPsList.
?CUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCU?CUCUCUCUCUCU
2023/01/29 08:55:03 INFO: Syncing 285 entries with HASSIO from getPsDetail.
2023/01/29 08:55:03 INFO: Syncing 3165 entries with HASSIO from queryDeviceList.
CUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCU??CUCUCUCUCUCUCUCUCUCUCUCU?CUCUCUCUCUCUCUCUCUCU?CUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCUCU?

which sounds promising. I even managed to installed the dashboards.

But I fall over at your instructions;

Youā€™ll need to modify the ps_id and ps_keys within these files to display the correct info.

You can use the GoSungrow tool to get this info:

GoSungrow show ps tree

Iā€™m new to this Home Assistant game but could somebody give me some pointers as to where to do this ā€œshow ps treeā€ commandā€¦

In the terminal via SSH? Somewhere else?

I know I need to modify the ps_id and ps_keys but Iā€™m stumped on how practically to get these values on a RPi3ā€¦

Apologies for the newbie question, and thanks in advance for your help.

Stu

uninstalled the add on.
reboot HA on RPi 4
update to: Home Assistant 2023.1.7 Supervisor 2023.01.1 Operating System 9.5 Frontend 20230110.0 - latest
add the add on to reposetory store
reboot HA (twice)
And now the add on is not show to install any more.

Does any body have a hint to get this add on installed?

Hi everyone,

just found an error in the add-on: if you have an MQTT-Passwort with an ā€œ/ā€, the add-on doesnā€™t work. Took me a while to figure it out :slight_smile:

Thanks for this awesom integration!

Hello,
Now that Iā€™ve managed to integrate it into HA, Iā€™m trying to figure out which sensor I should add to the HA energy module.

I have three inverters to connect to the addon. Any idea?

thx

What does ā€œSleep Delay After Scheduleā€ mean? Thanks!

I have read all the documentation, but unfortunately after research I canā€™t find the sensor sensor.gosungrow_virtual_XXXXXXXXXXXXXX_pv_energy

someone would have an idea of how to integrate it to the energy panel

1 Like