I have been struggling with trying to get the Scrape command to return the status from a device URL.
The URL information is very simple but it keeps returning “Unknown”.
The returned information is:
Hello from Espalexa!
Value of device 1 (masterleftblind): 0 (Dimmable light)
Free Heap: 38592
Uptime: 2356080308
Espalexa library v2.7.0 by Christian Schwinne 2021
The information I want is the number after (masterleftblind): which 0 indicates off and 1 is on.
The base code is:
sensor:
- platform: scrape
resource: http://IP address/espalexa
name: "Blind Status Test"
select: ??? not sure what this should be
The page is very basic HTML with no div or id.
I have tried different CSS selectors and when viewed it says #text for what is returned from the URL.
Maybe there is a better way to do this but it seems like this should work but I am missing something in the understanding.
Thanks