Scrape: what I am doing wrong

Open the Docs.
Take the simplest example:

scrape:
  - resource: https://www.home-assistant.io
    sensor:
      - name: Release
        select: ".current-version h1"
        value_template: '{{ value.split(":")[1] }}'

I bet it is not working since same code was there long time ago & the HA site was updated.
And yes, the sensor is “unknown” after HA reboot (needed to create the sensor).

Let’s check what is the current DOM path:

Let’s try with “.site-title .release-date”.
For this time let’s create sensor in UI:

Same “unknown error”. No messages in Log.
(tried with/without “Verify SSL certificate”)

I tried to use the stock Scrape integration 1-2 years ago, it usually gave erratic results even for a static text. No idea, may be depends on a site.

My bad.

  1. The correct path is “.release-date” instead of “.site-title .release-date” (thanks to joostlek).
  2. The path should be defined on a next page as “select”, not as a “header” (thanks to gjohansson-ST).

Here are valid configs:
yaml:

scrape:
  - resource: https://www.home-assistant.io
    sensor:
      - name: "Current version"
        select: ".release-date"

UI: