Is the Scrape integration no longer working?

My two sensors are now only receiving unknown as is the basic example on the scrape page.


  - resource: https://www.home-assistant.io
    sensor:
      - name: "Current version"
        select: ".current-version h1"

and there’s an error in the log :

Index ‘0’ not found in sensor.current_version

If you load that URL and look at the HTML, you won’t find any h1 element within another element of class current-version, hence the unknown and the error.

Nothing wrong with the integration: the page layout has changed which is something it’s always susceptible to, and why scrape should only be used as a last resort.

The documentation should probably be updated, either to something that does work, or to make it clear that the examples are not guaranteed to return any results.

What are your “two sensors”?

outside what troon is saying, there’s no reason to even make that sensor because home assistant provides a rest endpoint for the current versions. Lastly there’s an attribute on the update entity that also has the current version.

Yeah I was trying to troubleshoot my current scrapers and used it to make sure it wasn’t an issue with my selectors,