Open TrueBlueRoo opened 1 week ago
Hi,
I know it’s not immediately obvious but there are a few thing you need to do before you can get this running on Home Assistant:
Follow the instructions at MickMake/HomeAssistantAddons. That gets you as far as having the GoSungrow add-on installed. But (and this is a key point), it will not work until you’ve done the next two steps.
If you have not already done so, install two other add-ons:
Follow the steps in Part 2 of this Gist.
Why all the convolution? Well, I’m not the author of this site so I don’t really know but, at a guess:
This repo is for the GoSungrow binary while the HomeAssistantAddons repo is where the GoSungrow binary is wrapped into a Docker container which can be deployed by Home Assistant.
Other than testing GoSungrow, I don’t use HA for anything so I’m not really familiar with its norms and can’t say whether adding a repo’s URL to HA is something that is standard or unusual.
In its “HA add-on” form, GoSungrow goes into MQTT mode so it needs an MQTT broker. Because GoSungrow sprays an absolute crate-load of MQTT messages on every update, it’s probably better to have the comms path as short as possible, and a broker on the same HA instance fits that bill. But, in principle, any broker will work.
You need “Advanced SSH and Web Terminal” in order to be able to apply a patch to GoSungrow to get it to work. This is suboptimal but it’s the best we (the community around this site) can do until MickMake comes back. Strictly speaking, it’s a “hack”.
In essence, the “hack” works like this:
There are still some wrinkles involving AppKeys and picking the correct URL for where your inverter is logging its data but, once that’s all sorted out, it (mostly) starts working. That’s all covered in the last part of the Gist.
I say “mostly” because I get the sense that people who have multiple Sungrow inverters have more trouble - possibly to the extent that they either get it working and don’t say how, or never get it working and give up without reporting that they’ve given up.
Hope this helps.
Thanks mate. Highly appreciated.
It got the GoSungrow running now. I run it in a VM on Windows Server. That was excately that kind of tutorial what I couldn't find.
The next step I am stuck is the HA's Energy Dashboard. How do I get those sensors running like sensor.gosungrow_virtual_XXXXXXXXXXXXXX_grid_to_load_energy ?
Any help would be appreciated.
Cheers :)
Sorry. Can't help you with that bit. You'll have to hope someone else with more experience chimes in to answer that bit.
In my own case, I just use the compiled binary running on a Mac (nothing to do with Home Assistant). Once a day a cron job fires to invoke GoSungrow to download "yesterday's" data at 5-minute resolution for the 12 metrics I need. I'm essentially continuing a time-series for an older SolaX inverter. I load the results of the GoSungrow fetch into an SQLite database. That's all I need and as far as I go. If I want to know what the Sungrow inverter is up to "now", I just use the iSolarCloud app.
There is no GoSungrow command available on HA Supervisor. Couldn't locate it through a find as well.
Thanks