Hello everyone. I am completely new to Home Assistant, but not new to home automation. I have been trying everything I can come up with to get multiple scrapes from a simple website monitoring lake information with some success. I am trying to scrape the values shown in the image below:
My code WORKS for the lake level, but I can not seem to get the selectors right for the other 3 values… I think it may be something wrong with my value_template but I am not sure. Any suggestions?
- resource: http://savehighrocklake.org/hrinfo1.asp
scan_interval: 1200
sensor:
- unique_id: hrl_level
name: Lake Level
select: "td.LakeLevel > font"
unit_of_measurement: "ft below full"
value_template: '{{ value }}'
- unique_id: hrl_temp
name: Lake Temp
select: "table.laketbl:nth-child(2) > tbody > tr:nth-child(2) > td"
unit_of_measurement: "F"
value_template: '{{ value.split("°")[0] }}'
- unique_id: hrl_outflow
name: Lake Outflow
select: "table.laketbl:nth-child(3) > tbody > tr:nth-child(2) > td > font"
unit_of_measurement: "cfs"
value_template: '{{ value.split("c")[0] }}'
- unique_id: hrl_inflow
name: Lake Inflow
select: "table.laketbl:nth-child(4) > tbody > tr:nth-child(2) > td > font"
unit_of_measurement: "cfs"
value_template: '{{ value.split("c")[0] }}'