Curious to hear if anyone else has these installed and connected to Hubitat? I wrote a preliminary driver leveraging their public API to bring in the states of my battery, grid draw, house draw, and PV power to a Hubitat device, which has been quite operational so far.
Figured I'll be working more on it for my own uses, but should put a post out here to hear if there was broader use for these inverters and how
Im planning on linking this into a rule based switch to enable or disable EV charging with a contactor.
I would be very interested in what info you can pull into HE from the SolArk/SunSynk inverters. I am getting a 5Kw SunSynk inverter and would love to be able to see the SOC of the battery, the house load and the amount of PV being produced if this is possible,
@greglsh Its working and have it pulling all that data consistently - but my Driver code still needs work. Do you know your sunsynk inverter web interface/mobile app? the api I am using is PowerView, their PV Pro app, and the dongle is manufactured by e-linter. That dongle is needed to feed the data from the inverter to the PowerView cloud. Then you can query the data off the web api with this driver. Theres another dongle Sunsynk uses that isnt powerview, that would be a totally different webservice and API but apparently is still doable.
Unfortunately, due to energy infrastructure security needs, there is no local data transfer via network ports..
@greglsh The PowerView API (SolArk/ SunSynk) virtual device driver for Hubitat is now released on HPM Package manager. Here's a link to see what it looks like on desktop. Let me know if your inverter is using the PowerView service and if so, I would appreciate any feedback!
Hi @pentalingual
I don't think the SunSynk is using powerview, but I am going to see if I can hook this up. I currently run Solar Assistant which is fantastic as well.
For anyone who has a Linux server at their disposal and needs SolArk data from pv.inteless dotc0m (it's not quite live, but it's close enough for such tasks as EV charging control) should look at how I obtain this data using a PHP script:
Updating this thread as PowerView has been retired. The new SolArk Monitoring is hosted at MySolArk. I have updated my repository & driver to incorporate MySolArk API instead.
I was able to get the package installed, was able to set up the device and logs indicate it's getting data from mysolark.
I added the dashboard name to the device and I can see it in that dashboard.
I can set up a tile for the inverter but I can get the tile type in order to be able to actually see the data, I have tried every tile type and no info on the tile.
I know it must be simple but am missing something...
Hi there @AlarmProGuy sorry for the delay in responding
After picking the device, just use the "attribute" template; that allows you to then pick a custom attribute from your selected device and display the value on your hubitat dashboard tile. This is true for any custom device with random attributes for which a template doesn't exist and you just want to like display a text/number value. I overlap 2 tiles to make it look like one, and then I plug in some CSS for each to append the unit value. Here's my CSS; of course you have to identify your tile number mine here is 36
When i look at the tile and then pick the tile type of attribute i don't get the list of potential values, just HSM and Mode Status, see the image
I then looked at the live logs and its getting a 404 error, see the image
I think the problem is that the plant number in my case has a /2 at the end of it where you examples dont, i do have a pair of inverters so maybe this is why its different , see image>
This is fixed with the new release, sorry some of my information regarding the urls were out of date for the new MySolArk service - the /2 is not part of the plant id. Improved error handling for this part of the code, glad to be able to get it up and running for you!
@pentalingual , Firstly I wanted to thank you for the effort put into this!
I was using Solar Assistant and Home Assistant to feed Hubitat live time power and energy data ... but after adding CAN protocol (Pytes V5) batteries on Friday that isn't working anymore. I appear to have a conflict on the Sol-Ark side and I'm still trying to figure that out. In the meanwhile, I added your driver to Hubitat so some of my solar specific rules can function.
Did the Sol-Ark API documentation happen to have any Energy data? I'm not sure if they would call that etoday, E-today or similar but it would be great if the energy data (kWh total) was a supported function.
I found this, and it supported my API guesstimate, but that appears to be before the move from PowerView to MySol-Ark so it may be completely wrong?
Wow Hubitat changed their user interface in the past few days it seems, I haven't logged in on desktop since the refresh.
I'm afraid I'm not quite sure how to define the data you seek. I have the "Power" variable on my driver, which are the watts being drawn by the home/load presently.
I understand that you would like to have the accumulation of watt/hours for the 24 hour period beginning at midnight today. However, is this the total load (home) use, the total grid draw, the total solar production?
I did a couple of calculations and looking at the realtime query parameters, I'm pretty sure that "e-today" is just the total solar production for the day - which might explain why mine is at 0. There are other "e-today" parameters defined in other queries. I'm guessing that total solar generation (aka PV) is probably the most valuable number to a majority of users?
Thanks for the reply. Yes, the most recent update(s) really changed the UI. It was slightly tricky to configure a new Z-wave power strip yesterday (since things were unfamiliar) but I'm getting the hang of it.
My personal energy monitoring crisis is resolved. I was able to get Sol-Ark inverter data into Solar Assistant again with the batteries talking via CAN to the inverter. Then, Home Assistant forwards selective bits of the Solar Assistant data into Hubitat so the full circle is complete however some users may not need all of that.
You are correct. I was looking for daily PV energy production. I have a HAN device (Rainforest Eagle) that provides the total received/sent to the grid based on the utility meter and CT monitoring for the real nerdy stuff.
I still have your API installed and plan to keep it. If you think other users could benefit from total daily solar production I would certainly test it and provide feedback. I have a snow covered roof so it will be a day or two before I have any measurable energy numbers to work with.
This is my first foray into hubitat drivers but I am testing out some of these improvements locally and having some good results. I'll test it out more locally and get my generator online to verify the gen numbers. Then I'll have @pentalingual look over the code to see if it can be added to the repository.
I have an updated version in HPM if you would like to test it out and give me any feedback. Same name, author is StarkTemplar, newest version should be 0.4.8.
The only existing attribute name that changed was Power to Load. So you may need to update your dashboard if it references the Power attribute. There are also 2 attributes you can use for an already made dashboard with multiple fields - ComprehensiveTile and MonthlyTile. Add CSS on classes solarSmall and solarDate will help make the text smaller on some of the large fields.
Lastly, there is a presence attribute for the grid being available or down. I haven't tested this during an actual grid outage yet, but it should let you get an alert or do other automations when the grid goes down.
The roof of the Sol-Ark inverter building had snow cover from Jan 2nd through the 25th so my solar production is record breaking terrible this year. Despite my sad solar numbers the good news is I've been using this for about 10 days without any issues.
We had several power surges and one long outage since setting this up but I had my events capped at 11. For that reason I don't have data before the 26th. I increased that today to keep an eye on the presence.
This may be a good attribute for rules that fire after power flickers/outages. I use a Zooz ZAC38 Range Extender at the house for that function and the motivation to purchase it was for the power outage data trigger than the range extender function.
The Zooz device might be better at detecting a power outage especially if its brief. Your internet connection still needs to be up for solark to send the data to mysolark cloud. Then the hubitat solark driver has to retrieve this information and by default only does this every 15 minutes. Lots of steps that might not be working if the grid power is out. All depends on how your system is setup.
But I'm glad its working for you. It's newest version is 0.5.0 if you haven't updated in awhile. It has a few bug fixes and improvements but nothing major. Always open to more feedback if you think of anything.
Speak of the devil, I just had my first grid down alert from hubitat. But it was a false positive. I have all the watt values converted to kWh to make the displays all uniform. But my solar and loads were both so close together the grid value was close enough that it was rounding down to 0.
So I moved the grid down check to use the watt values so there can't be a rounding issue.
Is anyone else getting an error on their API requests? I have been since 3/7/2025. Looks like my requests are getting this response from solark's API. Not sure if this is a sign they are locking it down or something else?
We're sorry but mysolark doesn't work properly without JavaScript enabled. Please enable it to continue.