Scrape issues - UNKNOWN state returned

I’m having issues with a scrape sensor returning a state value of variable in a web page. I think I have the configuration.yaml file entered correctly.

scrape:

Screenshot 2024-04-15 17254as

keep getting “unknown” state returned. I can curl the URL from SHH so it’s contacting the page ok I think?

First check if the data-state attribute is there in the original HTML — use View Source in the browser rather than DevTools.

If it’s not, have a look through the resources listed under DevTools Network screen and see if any of those has the data you’re looking for.