How to get a value (temperature) from www of device?
I’ve looked on the “https://www.home-assistant.io/components/scrape/”, but still could not get it to work.
I.e. the page looks like below.
I want the “8.75” value from this page.
See bottom of this page.
I’ve tryied below code in “config”, but no result…
sensor:
- platform: scrape
resource: http://xxx.xxx.xx.xx
select: "Aktualna temperatura"
html>
<head>
<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=ISO-8859-2">
<script language="JavaScript" type="text/JavaScript">
<!--
if (parent.main) {
parent.location.href="/";
}
//-->
</script>
</head>
<body>
<table width=100%><tr><td align=right>
<table>
<tr><td align=center><big style="font-style: italic; font-size:40; font-weight: bold; color: rgb(51, 0, 153);">elproc LD100T</big></td></tr>
<tr><td align=center><a href="http://www.elproc.com.pl" target=_new>http://www.elproc.com.pl</a></td></tr>
</table>
</td></tr></table>
<form action="/" method="get">
<table width=100% cellpadding="0" cellspacing="0">
<tr><tr><td bgcolor=#a7a8e0><br><br><br><br></td><td bgcolor=#a7a8e0>
<table width=100%><tr><td valign=center>
<H1>STATUS URZĄDZEŃ</H1>
</td><td align=right>
<table>
<tr><td align=right>Użytkownik:</td><td><input type=text name=ul></td><td> </td></tr>
<tr><td align=right>Hasło:</td><td><input type=password name=pw></td><td></td></tr>
<tr><td></td><td><input type=SUBMIT value=" LOGOWANIE "></td><td></td></tr>
</table>
</td></tr></table>
</form>
</td></tr>
<tr><td> </td><td>
<br>
<h1>External_Temperature</h1><br>
<br>
</td></tr>
<tr><td align=right width=1% nowrap>Stan urządzenia : </td><td>Urządzenie jest włączone (ON)
</td></tr>
<tr><td nowrap>Aktualna temperatura <sup>o</sup>C : </td><td valign=bottom>8.75</td></tr>
</table>
<br>
<br>
</body>
</html>