This is my first attempt at scraping. The code seem correct but it appears that home assistant is having issue with navigating to the URL(?).
This webpage on ERCOT seemed to me to be the easiest to parse the information im looking for. The coordinate data wont change, and then i want to grab the attribute “title”, thence everything after the colon.
- resource: https://www.ercot.com/content/cdr/contours/rtmLmp.html
scan_interval: 3600
sensor:
- unique_id: grid_price
name: Grid Price
select: ".497,366,6"
attribute: "title"
value_template: "{!{ (value.split(':')[1]) }!}"
unit_of_measurement: "$"
I do know ERCOT has an API. I did not see any specific code that would prohibit scraping but doesn’t mean its not happening.
Any feedback would be much apricated. Thanks for your help!