Solar PV intregration

Hi all, thought this might be of interest:
Solis Inverter Modbus integration - Configuration - Home Assistant Community (home-assistant.io)

I have managed to make a direct modbus connection and can get all the normal stats. Just having issues with reading and writing to the read/write registries so I can control it for community energy projects.

1 Like

What can be done in order to get all data
Like current power, energy today, energy total, pv1, pv2 etc

one more thing to know.
does data shows after sunset? if not how to make it show last reading after sunset?
thanks

@kirpat You can duplicate the sensor, and get other fields, this is what I use:

sensor:
  - platform: rest
    resource: http://192.168.1.52/status.html
    authentication: basic
    username: admin
    password: XXXX
    unit_of_measurement: 'W'
    value_template: '{{ value | regex_findall_index("var webdata_now_p = \"(\d+)\"")}}'
    device_class: power
    name : Solis
  - platform: rest
    resource: http://192.168.1.52/status.html
    authentication: basic
    username: admin
    password: XXXX
    unit_of_measurement: 'kWh'
    value_template: '{{ value | regex_findall_index("var webdata_today_e = \"(.+)\"")}}'
    device_class: power
    name : Panels today
    scan_interval: 300

At night the inverter has no power and does not respond. You can take a look here, user @shawly has created a proxy that can provide default responses when the target rest server is offline:

So i’ve entered the following

and the log is not showing data in the logbook

My Firmware Current version:H4.01.51Y4.0.02W1.0.57(GL17-07-261-D)
and the Inverter model is: 36

Does anyone have any ideas please?
I’m currently relying on the old Ginlong site and a scrape.

You sholud scrape the page status.html
resource: http://192.168.1.122/status.html

sorry I don’t understand do you mean just change platform: rest to platform: Scrape and leave the rest?

You have such lines
resource: http://192.168.1.122/
But you should have this
resource: http://192.168.1.122/status.html

sorry I have tried this with the same result.

@scott400k
first try this,
look if data is grabbed from your device

sorry being dense here how do I “terminal console” in

You shoud have addon:
“Terminal & SSH”

i have purplerubik inverter and wifi stick.
if any body got software update for it.
installed version MW_08_A501_1.17
and at bottom of page webversion 1.0.19
thanks

image

Also if I manually take the login and ip path < http://admin:[email protected]/status.htm>into a browser I get:-

To mak sure, did you replace my IP adres http://192.168.1.8 with yours?
As I can see it shold be http://192.168.1.122?
And of course admin is your username and xxxxx your password.
But now I see it could be cause of bad quotation of punctuation
curl 'http://admin:[email protected]/status.html' | grep 'var webdata_now'
I didn’t notice that the editor replace this marks… :frowning:

And yes, in my browser I see only empty lines too

regards

Hey guys looking at a Solis 5G inverter with ethernet dongle and wondering if that works ok with Home Assistant, what has been people’s experience?

@sd_dracula hi there, I am using the Solis 5G but working on connecting to it using Modbus rather then HTTP/TCP. I can read all the normal stats but have not quite cracked being able to change settings with HA yet.

Yes I would be interested in changing settings for sure, i.e. the times when I want to charge battery from the grid, or even if it will let you save battery for when needed/based on HA automations.
Do post here if you manage to crack it :slight_smile:

Like scott400k I too got confused by the fact that my /status.html is also a page of lines. But status.html is in fact the same as the Status screen when you are logged into Admin portal (just iframed in). So if you can see the stats when you log in to your inverter you should be good.

How to get different values like
Current ampere
Current voltage
Which we can see in solarman app.
Please guide