Hello,
I’m trying to edit the output of my Delios inverter for home assistant.
Unfortunately I don’t succeed. When I access the inverter’s website, my browser (Mozilla) displays the data like this:
VL1=226.7
IL1=2.3
PowerGrid=0.5
VS1=83
VS2=83
IS1=0.0
IS2=0.0
PowerPV=0.0
VBatt=48.5
IBatt=0.0
PowerBatt=0.0
PercentBattery=3
ACinvTemp=26.0
BatteryTemp=20.0
PowerHouse=0.5
InvFlag=1071
You can also view the data unformatted using the Mozilla utility:
unformatted:
VL1=226.7
IL1=2.3
PowerGrid=0.5
VS1=83
VS2=83
IS1=0.0
IS2=0.0
PowerPV =0.0
VBatt=48.5
IBatt=0.0
PowerBatt=0.0
PercentBattery=3
ACinvTemp=26.0
BatteryTemp=20.0
PowerHouse= 0.5
InvFlag=1071
I have tried various examples - adapted to my URL etc. (keyword scrape), but unfortunately I am unable to convert the output of the inverter in such a way that sensors can be created with these values.
In any case, the following example doesn’t work.
"# ----------------------- Read API
scrape:
"# Example configuration.yaml entry
- resource: http://192.168.44.27/raw_data.html
verify_ssl: false
sensor:- name: “Grid voltage”
select: ‘VL1’
value_template: ‘{{ value.split(“=”)[1] }}’
unit_of_measurement: ‘V’
state_class: total_increasing
unique_id: “33”
- name: “Grid voltage”
I found various examples on the Internet, e.g. using grep to swap text components, but that seemed a bit complicated to me.
Does anyone in the community have a good idea?
Thank you"
Frank Rudolf