Thanks for the awesome work! Just getting into home assistant and this helped a lot linking up my inverter setup. Just a small heads up that the slipx yaml doesn't work without alterations anymore like it does in the video. The name of the sensors include your inverter serial number within them now it seems. e.g. sensor.solarsynk_xxxxxxx_inverter_power
Good day. I added an extension, as if everything connected to my SunsynkMobile_SM3.6kW, but there are no sensors in HA, but I get the values in the log file. And an error occurs /run.sh: line 401: [: ==: unary operator expected
Add-on looks fantastic! I run HA as a docker so am unable to access add-ons. Is there anyway this add-on could be developed into docker-compose so we can still get it to work with HA Docker?
Hi Martin I'm not sure what happened to my previous comment, but the log instructed me: "Entity does not exist! Manually create it for this inverter using the HA GUI in menu [Settings] -> [Devices & Services] -> [Helpers] tab -> [+ CREATE HELPER]. Choose [Text] and name it [solarsynk_210...." which I did, and now get the following log: Helper entity input_text.solarsynk_210xxxxxxx_inverter_settings has no value. Therefore no inverter setting will be sent for change. Please help.
Hi! Thanks for your efforts. I have installed the Solarsynk addon and have all the required entities. I copied and pasted in the slipx powerflow yaml into the card but it does not show any activity. Any suggestions, please?
Hi, there has been allot of changes to the addon since the video so the slipx mapping provided with the addon no longer works you have to manually map the entities. Also entities are now serialized so the is no way to provide a pre mapped config file. It wont take long to map them your self. HA has an auto complete search function and will help you to find the right entity.
This is really great. I have installed it and it was running smoothly in HA. Since a couple of days, HA does not recognize any entities anymore associated with my Sunsynk Inverter. The addon is working fine, the reading is done fine (as per log). Maybe due to a HA Core update? Anyone else having the same issue?
Thanks Martin for the plugin. Is there anyway I can get realtime data updates from the investor? I have set my refresh time to 60 seconds, but that's is still too long to wait when any change occurs.
Settings are technically not written to the app. Its written to the cloud and the inverter then fetches the settings. Same with the App it reads and send settings to the cloud. Yes this addon does support sending settings to the inverter via the cloud.
@@MailmartinviljoenHi Amy chance you could walk me through how to do this. I would love to set up some logic as to when to export and stuff but not sure how I send changes to the cloud.
Hi Martin, Just found your video for setting up HA with SunSynk. Very easy to understand as I'm a novice to HA. The values are appearing in the log of your SolarSynkV2, but updating of the entities don't appear in the log and also when I look under devices and entities and search for "Solar" nothing appears. What have I missed / missing from HA. TIA Mike
Hi usually this is because its not able to actually send the values to the entities due to an invalid long live token. Perhaps re create the token and update the config with the new token ?
Another thing, is the data on the cards updated in near realtime? I compared the data from the sunsynk website for my inverter to the HA cards and there is a differecde/lag?
Hi. thanks SO MUCH for this. It is exactly the solution I have been looking for... I do have a question if you don't mind : the data feed works for about 3 minutes and and then suddenly stops with this error log (any help you can give me)? /run.sh: line 152: [: ==: unary operator expected jq: error: Could not open file pvindata.json: No such file or directory /run.sh: line 153: [: ==: unary operator expected jq: error: Could not open file pvindata.json: No such file or directory /run.sh: line 154: [: ==: unary operator expected jq: error: Could not open file pvindata.json: No such file or directory /run.sh: line 155: [: ==: unary operator expected jq: error: Could not open file pvindata.json: No such file or directory /run.sh: line 156: [: ==: unary operator expected jq: error: Could not open file pvindata.json: No such file or directory /run.sh: line 157: [: ==: unary operator expected jq: error: Could not open file inverterinfo.json: No such file or directory /run.sh: line 158: [: ==: unary operator expected jq: error: Could not open file dcactemp.json: No such file or directory jq: error: Could not open file dcactemp.json: No such file or directory
Hi. I have Sunsynk inverter going in today (AC coupled battery) and would like to integrate into Home Assistant and found this integration. Most of the integrations require RS485 modules but this appears to work with Sunsynk cloud direct. Out of interest, what is the delay between inverter > cloud > home assistant. Wondering if I can use it for 'real time' or just totals for the day.
Hi , Correct it connects to the SunSynk cloud, fetches the information then publishes it to Homeassitant entities. If you have a sunsynk admin account you can set the rate up to 1 minute and if you dont the default is 5 minutes.
@@Mailmartinviljoen Added the addin and log shows values (which i think is good) but for some reason I can find the entities in HA. Any ideas what I should look for in the log or am I not looking for the entities correctly (searching for synk)
@@mdeakin not sure which log you are looking at but if you go to Settings->Devices & Services and then click the Entities Tab, from there search Synk then it they should show up prefixed with the inverter's serial number.. The entities are static and will be created once the addon sends the Inverter values so if you dont see them there's probably an issue with the config. Make sure the long lived token is correctly configured.
@@Mailmartinviljoen I was looking at logs in Settings > Addons> SolarSynk > Log. I will have a play as I suspect I have put in the incorrect IP/Hostname. I used the external nabu casa url (I pay for the home assistant cloud service) and changed port to 443 (instead of default) and its come alive. Many thanks.
First and foremost congratulations and thank you for such straighforward and clean integration! (Even thought Im struggling to make it working for me. ) Is it possible to add to verbose logging more details about when the connection is trying to be established with the API and whats the error message or others from their side? Once again, thank you
Looks good, I've tried installing it, I'm getting this error in the log Entity does not exist! Manually create it for this inverter using the HA GUI in menu [Settings] -> [Devices & Services] -> [Helpers] tab -> [+ CREATE HELPER]. Choose [Text] and name it [solarsynk_XXXX_inverter_settings] Settings pushback system aborted. It looks like it has fetched the data though. Will create the entity as suggested but didn't see you having to do that in the video, so assume this is a bug? Is there a better place than youtube for discussing this addon?
Excellent, it works. I used to have the node red flow to do it but it broke with the move to region 2 Will look at changing inverter settings after browsing the forum.
Hi. The sunsynk-power-flow-card is not a repository that I manage. Looks like you have something t hat is pointing to the power flow card that is not installed properly. Its maintained by SlipX You may find a solution here, Some people mention the same error, powerforum.co.za/topic/17970-home-assistant-sunsynk-power-flow-card-and-dashboard/
Hi - great Add-on and great video explaining how to use it. I have one question though - it describes it as having multi inverter support. How can you add more than one inverter (I have 3). Successfully added one, but want to add the other two. Thanks, Rich
@@Mailmartinviljoen Hi Martin - thanks for that. However, I think I have a more basic problem as it does not appear to be working correctly. I have HA installed on a raspberry pi 4 with a dedicated HA install (latest version). I have your Solarsynk v.2.1.11. Install went well. I was region 2 until the merger. However, when I "start" the integration the "start" does not turn into a "stop"; the red dot does not turn to green and "Hostname", "CPU usage" and "RAM usage" do not appear on the control panel. There is, however, some communication with the inverter is clearly happening because I do received readings (such as battery charge percentage etc). However, it does not renew after the set time, and the log ends by saying "Entity does not exist!" etc. Are you able to help? I'm happy to post the full log to the Issues page on your GitHub page. Thanks, Richard
Hi Martin, I run home assistant core in docker and all my add ons run as separate containers, I do however have HACS running on it. Can I add your add on as a container and if so, how do I pull the data back into HA?
Hi, the addon is just a bash script. You could make minor modifications to it by hard coding the variables right at the top of the script. You don't even need to run it on the same hardware it can run on a totally different host because its posting data to HA entities using HA's Rest API. It also does not have any out of the ordinary dependencies. It just needs curl and jq which is a JSON parser/poster. You will see in the documentation I mentioned that you cannot point it to a local loop back in the addon's config. This is because the addon is actually running in a docker and it's communicating with HA as if its a totally different machine. My suggestion is take a look at run.sh in the repository to see how it works. github.com/martinville/solarsynkv2/
Hi Martin. Thanks for this video tried to follow others with no luck - yours took 20 mins and worked fist time with your solarsynk2 solution. After they moved us in SA to Region 2 my HA Sunsynk integration died - thanks for your help. One problem I'm missing the Non-essential load Entity ... did i do something wrong - can I add it in. We running a power hungry kiln here and need to keep an eye on it.
Hi Jonny, Good to know it works. I dont recall adding a Non-essential load entities. I will have to take a look, Doubt that you are doing something wrong its probably not added. My system is very basic and I think my non-essential loads are simply bypassed on the DB by the electrician. Didn't even know it can be monitored. Is this done using a CT Clamp of some sorts or does it actually feed into the inverter and then internally bypassed to not run on batteries?
Thanks for your reply. Correct. In my installation the Non-essential load line is fed via the inverter but is turned off when CT clamp shows the grid is down. The inverter graphic display shows a value for the non-essential load as well as the "UPS" load separately ... so the data does exist. I see in the e-Linter documentation there is an address for Load 1 , Load 2 and Total Load ... not sure if it is relevant but that is as far as my understanding of these things takes me 😏. Nice if you can look into it but dont waste time on my account. Thanks.@@Mailmartinviljoen
After trying all the suggestions and assistance I received on this you tube video I couldn't get it to work. A complete rebuild of home assistant from scratch fixed it though and it 's now working fine. I thought 'd come back and update in case anyone else found it useful. Not expecting a reply but does anyone know if this can be used with a rs485/modbus converter of ethernet I'd hope. This is mainly just due to the lag on the sunsynk platform makes the setup on here very very useful but very slow...
Hi I specifically developed this addon to integrate with the Sunsynk.net API. It does not have the ability to communicated via RS485. There are other solutions out there that can. A good place to start searching would be on the power forum powerforum.co.za/forum/121-home-automation/. You may want to have a look at the KellerZa solution github.com/kellerza/sunsynk. I'm unfortunately not able to assist with that. Regarding to the update frequency of the data. On the sunsynk portal you can set your gateway to update up to 60s instead of the default 300 seconds. Hence the reason I added the option to increase the update rate in this addon.
Thanks. I have reduced the update time to 60seconds and really for most users looking at data once in a while this will be ok. I have four inverters and solar arrays on site. Three sunsynk and one sunny boy with 40kwh battery storage. Tweaking things needs a much greater resolution than 60s but only whilst tweaking probably.. if you decide to make this modbus over Ethernet tcp at anytime please let me know as it is perfect other than the update time… cheers dude..
@@brookejonny Its always been possible via the sunsynk cloud, but not using this add-on. If your dongle is linked and setup with the sunsynk app you can change settings using the portal. sunsynk.net/ I have now added functionality to this add-on that will allow you to create automation in HA to change settings when certain conditions are met. I realize now I may have misunderstood you, this addon does not do any direct comms with the inverter via the dongle its merely piggybacking off the Sunsynk.Net API.
@@MailmartinviljoenHi, thanks for explaining. So I'm able to change settings via the sunsynk link that you sent, but I got excited at the thought of being able to create automations via the Sunsynk API or Sunsynk dongle? I know it won't respond as quickly as some of the other home assistant integrations but if possible it would avoid the need of any wiring which would be amazing?!
Thank you Martin. A few of us at work went from region 1 to region 2 yesterday with the Sunsynk region change and all our home assistant integrations for Sunsynk stopped working. Your integration saved us.
Hi Martin having an issue with the app I start the app it fetches the data then the service stops and the app stops completely. Updating the following sensor entities ------------------------------------------------------------------------------ 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
Hi Werner, Unfortunatley your log doesnt say much. It seems like its not even getting past fetching the Sunsynk token. The only thing I can think of is the configuration is not filled in properly. Also not if you still have a "Region 1" account it will most probably not work.
@@Mailmartinviljoen Thx for the reply it pulls all the data from the portal Inverter information voltages. Is there a place where I can sent you the complete log
@@xkalib3r I thought My HA is running on HTTPS, but in actual fact its using straight HTTP, its actually hard coded to execute via HTTP. I will try and resolve this by giving an option to use HTTPS instead of HTTP. First have to figure out how I can add a self signed cert. Sorry for the confusion and the trouble.
@@Mailmartinviljoen no worries! Really appreciate you checking and taking feedback :) Will be traveling for a while but happy to test where and when possible
Having used this add-on for a while now, often the problem when you logs and add-on stops in this way, is not being able to connect to Home Assistant because of an incorrect IP or port. You cannot use localhost or any loopback address... you have to use the actual IP address of HA. If HA gets its IP via DHCP, and it changes, the config in the add-on needs updating. Best you run HA on a static IP if you are using this add-on. Second thing to check is your long-lived token was created and copied successfully into the add-on.
Hi when you start the add-on you can click on the log tab to see whats going on. The script is fairly simple so there shouldnt be any issues unless you entered the wrong credentials. After makimg this post i already started a v2 that supports multiple inverters so you can also try the new version github.com/martinville/solarsynkv2