Confirm, http://192.168.1.8/status.json?CMD=inv_query
I got:
ERROR:404 Not Found
And I think it’s the matter of firmware.
In my side there is no information about “Brand”, and “Last updated” is only “0”, “1” and nothing.
But…
It is also matter of my little experience …
In my browser there is no site status.html but the way of scraping the page is working…
So I define the sensors (like lknop proposed) and … it works!
I think I will not drill down the case, thanks all for help
I defined two sensors in config.yaml:
Replace xxxxx with your own password and change IP to yours.
But I know that there are a few version of this page, so I am not sure this will work for you
regards
- platform: rest
resource: http://192.168.1.8/status.html
authentication: basic
username: admin
password: admin
unit_of_measurement: 'W'
value_template: '{{ value | regex_findall_index("var webdata_now_p = \"(\d+)\"")}}'
device_class: power
name: "Solis current power"
- platform: rest
resource: http://192.168.1.8/status.html
authentication: basic
username: admin
password: admin
unit_of_measurement: 'kWh'
value_template: '{{ value | regex_findall_index("var webdata_today_e = \"(\S+)\"")}}'
device_class: power
name: "Solis energy today"
Dear, o u get results?
as i dont
and did you upgrade device?
invalid config for [sensor.rest]: invalid template (TemplateSyntaxError: unexpected char ‘“’ at 32) for dictionary value @ data[‘value_template’]. Got ‘‘{{ value | regex_findall_index(“var webdata_now_p = “(\d+)””)}}’’. (See ?, line ?)
Mine PV was instaled October 2020, so I didn’t upgrade any firmware.
I suppose it could be the matter of your enviroment.
What kind of instalatian have you?
Mine is HA OS on t630 terminal.
I have such parameters:
version
core-2021.3.2
installation_type
Home Assistant OS
dev
false
hassio
true
docker
true
virtualenv
false
python_version
3.8.7
os_name
Linux
os_version
5.4.99
arch
x86_64
timezone
Europe/Warsaw
What has happen if you on terminal console put such commend:
curl ‘http://admin:[email protected]/status.html’ | grep ‘var webdata_now’
Of course replace xxxxx with password
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…