Sensor Scrape - need help with attribute

Hey aeveryone!

I’m completely stuck with the following… want to scrape the data-value Temperatur = from the following code:

<!DOCTYPE HTML>
<html>
<head><META HTTP-EQUIV="refresh" CONTENT="15"></head>
<body><h1>ESP8266 DHT22 Web Server</h1>
<table border="2" width="456" cellpadding="10"><tbody><tr><td>
<h3>Standort = 
Schlafzimmer
<h3>IP Adresse = 
192.168.178.160
<h3> Signalst&aumlrke (RSSI) = 
-66
dBm
<h3> WLAN Kanal = 
13
</h3><h3>Uptime = 
176317
sec</h3><h3>Letzter ThingSpeak Status Code = 
200
<h3>N&aumlchster ThingSpeak Upload in  
228
 sec
<h3>Temperatur = 
20.98
&deg;C</h3><h3>Luftfeuchte = 
72.14
%</h3>
</h3></td></tr></tbody></table></body></html>

The Sensor State always returns unknown.
I’ve been trying for 6 hours…
I checked the docs, looked at the css selector stuff, … googled some things… no solution so far. So I’m hoping that this community can find a solution.

- platform: scrape
    resource: http://192.168.178.160
    name: TestDHT22
    select: ".Temperatur"

Thanks!

The selector should be h3. Looks like that you could go through the data with nth-of-type(x).

The html looks incorrect.
It has more opening h3 tags than closing.
It also seems they are nesting in each other.

Is this a local webpage? Your resource is local IP.

I see now it’s a 8266.
Can’t this publish the value directly to HA? Is it ESPHome?

I find an Solution: I have update the html code so i can use div class.
Thanks for all.