good day, i’ve been trying for several days now, i have managed to get the scraper to get other text for me but unable to get the text in the highlighted sections , can some please give me a little guidance
The difficulty here is that the select
should be quite easy ("p#p37"
, assuming the id
is unique like it should be) but the text returned is in excess of the 255-character limit for an entity state.
hi Troon thankyou, i have tried that, but only revive state ‘unknown’ but as you say could be over the character limit how would i break the text down into multiple entity states ? reducing the character limit. each section of text is between 230-255 characters.
Use:
value_template: "{{ value[:250] }}"
to return the first 250 chars. Then you can duplicate the sensor for the next chunk with:
value_template: "{{ value[250:500] }}"
thankyou so much, it works ive been doing my head in. i have one last question for you, tbh i haven’t looked into this step yet untill i knew i could get the text,
each day the id changes by 3 ie , p37 , p40, p43 , would you have an idea to have the script update its self to the next id ?
i apricate your help so far, hope you dont mind me asking