Solar PV intregration

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! :slight_smile:
I think I will not drill down the case, thanks all for help

regards
atryda

Did u get it in homeassistant?
How to grab data as I have same problem as yours.
Please guide

Yes, sure

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"
3 Likes

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 ?)

Yes, it works:
solis1

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 :wink:

Have you any data?

regards

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