Scan_Interval Not Working for Scrape?

I have a scrape sensor set to get the realtime power cost on oeb.ca. I can get the data to show up under the correct entity. But the information only gets scraped on system boot-up and scan_interval doesn’t seem to do anything. Am I doing something wrong?

  - platform: scrape
    resource: https://www.oeb.ca/rates-and-your-bill/electricity-rates
    name: Electricity Price
    select: "li.on-peakactive > span.value, li.off-peakactive > span.value, li.mid-peakactive > span.value"
    value_template: '{{ ((value.split(" ")[0])) }}'
    unit_of_measurement: "¢/kWh"
    scan_interval: 60

Nothing as far as I can see.

What makes you believe it’s not working? Have you looked at the history of the entity to see that it does not update?

I left it overnight and the entity still shows 6 hours ago.

But has the value changed on the webpage during this time?

1 Like