Sunsynk + Home Assistant

Ok. I'm making same progress. Changed the modbus ID on the Sunsynk to 01, so now at least it pulls the inverter sn correctly.

I dont see anything being displayed anywhere. It does not show up as a device under Settings/Devices and Services.

It does not seem to give any errors in the log below, or am I missing something?


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022-11-20 08:26:02,078 INFO Loading HASS OS configuration
2022-11-20 08:26:02,093 DEBUG could not patch umodbus: numpy not found
2022-11-20 08:26:02,097 INFO Filter *last used for battery_soc, total_battery_charge, total_battery_discharge, total_grid_export, total_grid_import, total_pv_power
2022-11-20 08:26:02,098 INFO Connecting to serial:///dev/ttyUSB0
2022-11-20 08:26:02,180 INFO ############################################################
2022-11-20 08:26:02,180 INFO Inverter serial number '2207xxxxx6'
2022-11-20 08:26:02,180 INFO ############################################################
2022-11-20 08:26:02,181 INFO ############################################################
2022-11-20 08:26:02,182 INFO SUNSYNK_ID should be set to the serial number of your Inverter!
2022-11-20 08:26:02,183 INFO ############################################################
[cmd] ./run.py exited 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
 
Last edited:
@SauRoNZA can you share a pic of the physical setup ? Curious to see how it looks.

I have the solar assistant running on a Pi, at the inverter and my current handiwork makes the entire setup (which is a thing of beauty) look like crap.

I need to install an enclosure to 'hide' the pi .

TIA

Unfortunately nowhere close but there really is nothing to take a picture of.

The cable with Ethernet comes out of my Sunsynk and then converts to USB which has a 20m (I seem to recall) extension on that runs up into my roof and across the garage to the networking rack where my Home Assistant machine lives.
 
Ok. I'm making same progress. Changed the modbus ID on the Sunsynk to 01, so now at least it pulls the inverter sn correctly.

I dont see anything being displayed anywhere. It does not show up as a device under Settings/Devices and Services.

It does not seem to give any errors in the log below, or am I missing something?


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022-11-20 08:26:02,078 INFO Loading HASS OS configuration
2022-11-20 08:26:02,093 DEBUG could not patch umodbus: numpy not found
2022-11-20 08:26:02,097 INFO Filter *last used for battery_soc, total_battery_charge, total_battery_discharge, total_grid_export, total_grid_import, total_pv_power
2022-11-20 08:26:02,098 INFO Connecting to serial:///dev/ttyUSB0
2022-11-20 08:26:02,180 INFO ############################################################
2022-11-20 08:26:02,180 INFO Inverter serial number '2207xxxxx6'
2022-11-20 08:26:02,180 INFO ############################################################
2022-11-20 08:26:02,181 INFO ############################################################
2022-11-20 08:26:02,182 INFO SUNSYNK_ID should be set to the serial number of your Inverter!
2022-11-20 08:26:02,183 INFO ############################################################
[cmd] ./run.py exited 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

It looks like you haven’t set the serial number of the inverter in the configuration?
 
I actually have set it, inside quotation marks, so dont know why it says that.

Does it check the serial nr from inverter against what is manually entered, or wil it just override the correct one? In other words, is this the issue or something else?
 
I actually have set it, inside quotation marks, so dont know why it says that.

Does it check the serial nr from inverter against what is manually entered, or wil it just override the correct one? In other words, is this the issue or something else?

Look at my screenshot.

No quotation marks.

I believe it just verifies one against the other in case there is more than one.
 
Ok. I'm making same progress. Changed the modbus ID on the Sunsynk to 01, so now at least it pulls the inverter sn correctly.

I dont see anything being displayed anywhere. It does not show up as a device under Settings/Devices and Services.

It does not seem to give any errors in the log below, or am I missing something?


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022-11-20 08:26:02,078 INFO Loading HASS OS configuration
2022-11-20 08:26:02,093 DEBUG could not patch umodbus: numpy not found
2022-11-20 08:26:02,097 INFO Filter *last used for battery_soc, total_battery_charge, total_battery_discharge, total_grid_export, total_grid_import, total_pv_power
2022-11-20 08:26:02,098 INFO Connecting to serial:///dev/ttyUSB0
2022-11-20 08:26:02,180 INFO ############################################################
2022-11-20 08:26:02,180 INFO Inverter serial number '2207xxxxx6'
2022-11-20 08:26:02,180 INFO ############################################################
2022-11-20 08:26:02,181 INFO ############################################################
2022-11-20 08:26:02,182 INFO SUNSYNK_ID should be set to the serial number of your Inverter!
2022-11-20 08:26:02,183 INFO ############################################################
[cmd] ./run.py exited 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Enter your sunsynk serial in the inverter add on its the third line

sunsynk_id

otherwise this is working correctly.

You need to install mosquito broker now, once thats running you can go to the energy page and you should see battery_soc, total_battery_charge etc as available sensors :

1669017686050.png
 
Look at my screenshot.

No quotation marks.

I believe it just verifies one against the other in case there is more than one.

Thanks! Much appreciated. Got it working now by removing quotation marks. Not sure why I thought this was needed...

Can data be pulled from all the sensors? How do one add sensors? Say for e.g. Grid Power usage (in watts)? Mine only shows the list below. Many thanks

Also, what is the difference between the "Sunsynk Inverter Addon" and "Sunsynk Inverter Addon (dev)" ?

1669024480493.png
 
Thanks! Much appreciated. Got it working now by removing quotation marks. Not sure why I thought this was needed...

Can data be pulled from all the sensors? How do one add sensors? Say for e.g. Grid Power usage (in watts)? Mine only shows the list below. Many thanks

Also, what is the difference between the "Sunsynk Inverter Addon" and "Sunsynk Inverter Addon (dev)" ?

View attachment 1425909
Check my screenshot again and you'll see all the other sensors I use. You simply go and add them to the config.

Dev build is just slightly quicker on updates I had to use it at some point because I needed a new feature that wasn't in the Production version yet and then just left it there. I would recommend just using the normal one unless there is a specific reason to go for Dev.
 
Check my screenshot again and you'll see all the other sensors I use. You simply go and add them to the config.

Dev build is just slightly quicker on updates I had to use it at some point because I needed a new feature that wasn't in the Production version yet and then just left it there. I would recommend just using the normal one unless there is a specific reason to go for Dev.
Hi

Yes I see all your sensors, but how/where to add? Can it be done from the UI (how?), or must it be done in the yaml file? Thanks
 
Hi

Yes I see all your sensors, but how/where to add? Can it be done from the UI (how?), or must it be done in the yaml file? Thanks

There is no YAML file, you just add it in the GUI.

The only YAML you’ll need is the one to add PV1 and PV2 together.
 
How do you add it in gui?

It is possible to call up the yaml if you click on the 3 dots top right. So I used the editor to add the required lines.
 
How do you add it in gui?

It is possible to call up the yaml if you click on the 3 dots top right. So I used the editor to add the required lines.

Just type it in the sensor area and press enter.
 
Just type it in the sensor area and press enter.
That does not work for me for some reason.

But no worries. Im finding it easier to work in the yaml files. Brings back old memories of when I did some basic coding at varsity :)
 
So this addon has been running flawless for the last 6 weeks, which is great.

My use case is is mainly to monitor the grid power, load power and battery SOC sensor readings to control smart switches on "less essential" loads on my essential side, i.e. shutting off kettles, aircons, dishwasher, microwave etc. in a specific order to preserve battery energy and prevent AC overload on inverter during loadshedding.

Two questions:
1) I'm still running version 0.1.4 (dated March 2022), while latest version is 0.2.5 (Nov 2022). Can I update to latest version or will it "break" current configuration? I don't really want to setup from scratch and risk running into quirks.
2) What is the frequency that data is being sent to HA, i.e. every how many seconds? Where can I confirm this? And is there a way to increase frequency to e.g. once per second. I need need as close as possible to real time data to prevent AC overload trips on the inverter.

Thanks
-
 
So this addon has been running flawless for the last 6 weeks, which is great.

My use case is is mainly to monitor the grid power, load power and battery SOC sensor readings to control smart switches on "less essential" loads on my essential side, i.e. shutting off kettles, aircons, dishwasher, microwave etc. in a specific order to preserve battery energy and prevent AC overload on inverter during loadshedding.

Two questions:
1) I'm still running version 0.1.4 (dated March 2022), while latest version is 0.2.5 (Nov 2022). Can I update to latest version or will it "break" current configuration? I don't really want to setup from scratch and risk running into quirks.
2) What is the frequency that data is being sent to HA, i.e. every how many seconds? Where can I confirm this? And is there a way to increase frequency to e.g. once per second. I need need as close as possible to real time data to prevent AC overload trips on the inverter.

Thanks
-
In terms of updates most installs update with no issues. i would, however, check the github of the developer for any breaking changes
 
So this addon has been running flawless for the last 6 weeks, which is great.

My use case is is mainly to monitor the grid power, load power and battery SOC sensor readings to control smart switches on "less essential" loads on my essential side, i.e. shutting off kettles, aircons, dishwasher, microwave etc. in a specific order to preserve battery energy and prevent AC overload on inverter during loadshedding.

Two questions:
1) I'm still running version 0.1.4 (dated March 2022), while latest version is 0.2.5 (Nov 2022). Can I update to latest version or will it "break" current configuration? I don't really want to setup from scratch and risk running into quirks.
2) What is the frequency that data is being sent to HA, i.e. every how many seconds? Where can I confirm this? And is there a way to increase frequency to e.g. once per second. I need need as close as possible to real time data to prevent AC overload trips on the inverter.

Thanks
-

I just hit the update button when I see it and never has a problem. Generally they are very small changes to add extra sensors and such.

As for question two I have no idea if that can be changed or what it is, may be worth asking the developer on the GitHub page.

I do note different sensors seem to update at less or more regular levels and the Grid Status one is much too slow to rely on for load shedding so I made a binary sensor based on the Grid Voltage instead.

Either way I’ve never seen it update in less than a minute. I suspect it only updates when values actually change in some cases.

Like right now my grid load updated 24 minutes ago and I suspect it’s because it’s been zero throughout.

My Battery load on the contrary is updating every minute or so.
 
Hey, I am trying to replicate this but my installer provided a wireless dongle the plugs into the RS-485 serial port and so I want to connect to that. Has anyone done that? not quire sure as to what config I must use.

I have MQTT:

and the sunsynk plugin from github:
 

Attachments

  • IMG_3687.jpg
    IMG_3687.jpg
    187.7 KB · Views: 51
Last edited:
I just hit the update button when I see it and never has a problem. Generally they are very small changes to add extra sensors and such.

As for question two I have no idea if that can be changed or what it is, may be worth asking the developer on the GitHub page.

I do note different sensors seem to update at less or more regular levels and the Grid Status one is much too slow to rely on for load shedding so I made a binary sensor based on the Grid Voltage instead.

Either way I’ve never seen it update in less than a minute. I suspect it only updates when values actually change in some cases.

Like right now my grid load updated 24 minutes ago and I suspect it’s because it’s been zero throughout.

My Battery load on the contrary is updating every minute or so.
The figures updating at different times is due to Sunsynk's server. To save themselves processing money they only update every now and then, different figures at different time.
 
Top
Sign up to the MyBroadband newsletter
X