I’m having trouble getting a scrape sensor to work. Can’t seem to get the selector right. I’m trying to get the current 2.5 PM value, but just get an unable to extract from HTML in the log. I used the developer tools in Chrome to get the selector. Any help would be appreciated. Thanks.
- platform: scrape
resource: http://www.valleyair.org/programs/raan/raan_index.htm?x=Turlock
name: RAAN_PM25
select: "#tblCurrentConditions > tbody > tr:nth-child(3) > td.tblCurrentConditionsTD3 > p"
value_template: '{{ value.split(" ")[0] }}'
# Request 15 minutes
scan_interval: 900