I am trying to use Scrape to read a value from my website, but I am a bloddy beginner and have no clue how to read the value. Maybe someone could help me with this. Below I have a screenshot and I want to read the value “true” which is marked in the screenshot.
Don’t use the Scrape sensor for that.
sensor:
- platform: rest
resource: http://192.168.1.11:8181/digital_out.json
name: EMPS output 1
value_template: "{{ value_json['pin 1']['set'] }}"
You might have a problem with the true
not being in quotes, which is not strictly allowed in JSON.
1 Like
Thank you so much, that is exactly what I needed, everything is fine.
1 Like