The issue is I’m new to HA, (and JSON and APIs)! Go Gentle
I want to display the following data (value and date/time of reading) on my dashboard:
https://environment.data.gov.uk/flood-monitoring/id/measures/070365-rainfall-tipping_bucket_raingauge-t-15_min-mm
Ideally I want to collect and graph data over time but I’ll take just displaying the value for now, I have set the following up but it tells me that value is not numeric and I’m not sure what I have got wrong.
# EA Rainfall Sensor at Keld Head
sensor:
- platform: rest
resource: https://environment.data.gov.uk/flood-monitoring/id/measures/070365-rainfall-tipping_bucket_raingauge-t-15_min-mm
name: Keld Head Rainfall
#Check every 15 mins
scan_interval: 900
force_update: true
value_template: "{{ value_json['items'][0]['latestReading']['value'] }}"
unit_of_measurement: mm
Any pointers appreciated
Dave