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.
@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:
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
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…
@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
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.