I tried to scrape a part of a website. The part I want to have was bigger than 255 character so I ran into the 255 max length problem. Tried to using a REST sensor instead but I am not successfull. This is my sensor definition:
- platform: rest
name: vlg 180 ausfall
resource: https://www.vlg-gifhorn.de/CM/index.php/verkehrsstoerungen-ausfaelle-vlg/180
json_attributes_path: "$.html.body.div.div.div.main.div[1]"
scan_interval: 3600
value_template: 1
json_attributes:
- div[1]
What I really want to get is the main information in the site which is inside of
$.html.body.div.div.div.main.div[1].div[1]
What can I do to get this as an attribute?
This is the relevant part: