I’m trying to retrieve the body of a webpage to scrape a single word, and then add x amount of characters that follow it to a sensor.
Using a regular scrape i ran into that entities can’t be longer then 255 chars, so i tried the rest platform option:
- platform: rest
name: "Food Waste Most Recent Collection"
resource: "http://maps.croydon.gov.uk/aya/pages/aya/aya.html?tab=home&task=bins&utm_source=interaction&utm_medium=find-it&utm_campaign=waste-recycling-collection-dates"
value_template: '{{ value_json["Food Waste"] }}'
json_attributes:
- "Food Waste"
method: GET
scan_interval: 65
Not knowing much about json, i probably did something in correct. I get this in my logs:
Rest result could not be parsed as JSON
Thank you for any pointers.