I’m trying to use the multiscrape integration to scrape JSON and I’m getting nowhere. I set up something reasonably complicated and couldn’t get it to work, so I’ve dumbed my sensor down to the absolute most basic config and I still get ‘unknown’ for the sensor value. Debug log says: Unable to scrape data: JSON cannot be scraped. Please provide a value template to parse JSON response.
I have a value_template already so I don’t know what else to do. I’m assuming I’m missing something simple.
Still get the same error with either of those options. I’m starting to think there is a bug with the integration if the response is JSON. Even if I simply set value_template: 'OK' I get the same error.
Rest works just fine with this simplistic example:
The problem I have is that the JSON response is gigantic and I want to use a value_template to work through it, and none of the native HA Rest integrations support templates for attributes. The only option would be to store the whole response in an attribute, and then use a separate template sensor to work through it. Or create a bunch of Rest sensors that each store one value, and then create a template sensor that combines them all into one sensor with a bunch of attributes.