I’m trying to scrape the temp value from this website:
https://api.domotique-piscine.eu/api/install/45383/probe/water-temp?key=2a1c12bf3f45e5cc23b644af51fe1fa3&format=json
or the text version:
https://api.domotique-piscine.eu/api/install/45383/probe/water-temp?key=2a1c12bf3f45e5cc23b644af51fe1fa3&format=text
and put this temperature value in a sensor.
After a few day of fooling around with the scrape statement and not getting results I’m hoping somebody can set me back on track
Troon
(Troon)
2
Don’t use scrape for a data resource, use a RESTful sensor:
Because of the +, use:
value_template: "{{ value_json['value']|float(0) }}"
Thanks Troon,
This works perfect.
sensor:
1 Like