Dear All
I am trying to scrape data from my inverter. It has a very simple webpage in html/txt fromat.
Here below the full code, obtained with wget
VL1=238.2</br>IL1=0.3</br>PowerGrid=0.1</br>VS1=330</br>VS2=331</br>IS1=3.9</br>IS2=4.0</br>PowerPV=2.6</br>VBatt=50.6</br>IBatt=-23.3</br>PowerBatt=-1.2</br>PercentBattery=90</br>ACinvTemp=46.0</br>BatteryTemp=32.5</br>PowerHouse=1.0</br>InvFlag=1071</br>
It looks to be a simple task, but really I am not able to scrape the values, for example the PV power equal to 2.6 kW!
Actually I am using scrape or multiscrape.
I wonder that since there is no html / css structur, this is not so standard
this is my actual yaml code for multiscrape
- resource: http://192.168.1.8/raw_data
scan_interval: 20
sensor:
- unique_id: PVpower
name: PV Power
select: "br:nth-child(7)"
unit_of_measurement: "kW"
value_template: '{{ value_split("PowerPV=")[1] }}'
Can anybody help me?
Thank you for support
Marcello