Help for Scrape Sensor


i’m struggling with a scrape sensor integration. Want to get my pool values into HomeAssistant.
For the temperature for example i’m talking about the “27.9” number in the example below.

with my current yaml.setting i get no results:

  • platform: scrape
    name: Pool Temperatur
    select: “tr:nth-child(1) td:nth-of-type(2)”
    value_template: ‘{{ states.sensor.pool_temperatur.state.split(" “)[0] | replace (”.", “,”) | float }}’
    unit_of_measurement: “°C”

also tried: select: “table:nth-child(1) tr:nth-child(13) td:nth-of-type(2) tr:nth-child(1) td:nth-of-type(2)”
and: select: “body > table > tbody > tr:nth-child(13) > td.line-content > span:nth-child(4)”

Local Website:

Pool status

Pool status

Node UUID: 05E12D373439465343071B3E

Temperature 27.9 °C
pH 7.19
ORP 5.06 mV
Chlorine concentration not available
Conductivity not available


Looking forward for some help. Thx.

I don’t remember where I found this but hope it helps:

Small scraping guide:

Load the page in Chrome

Right-click the value you want to scrape

Choose ‘Inspect’

Right-click on the selected line in the html

Copy → Copy Selector

This is the value you should paste in the ‘select’ field of the sensor.

Note that sometimes Chrome adds add a ‘tbody’ element tables in the html which might not be in the original site’s html and therefore not retrieved by multiscrape. In this case, you need to remove those from the select field.

E.g.: table > tbody > tr:nth-child(7) > td:nth-child(2) > font > b

  table > tr:nth-child(7) > td:nth-child(2) > font > b
1 Like

If the snippet you sent is complete then I read the 3rd tr and 2nd td

Thx for the answers. i managed to find the solution.

“body > table > tr:nth-child(1) > td:nth-child(2)”