I’m having a little bit of trouble with this. My configurations.yaml
looks like this:
- platform: rest
name: Thingspeak
json_attributes:
- field1
- field2
- field3
resource: https://api.thingspeak.com/channels/HIDDEN_CHANNEL_NUMBER/feeds/last.json?api_key=HIDDIN_CHANNEL_API_KEY
value_template: '{{ value_json.created_at }}'
- platform: template
sensors:
thingspeak_temperature15min:
friendly_name: 'Temperature(degC)'
value_template: '{{ state_attr("sensor.Thingspeak", "field1") | round(1)}}'
device_class: temperature
unit_of_measurement: 'degC'
- platform: statistics
name: "statistics_temperature15min"
entity_id: sensor.thingspeak_temperature15min
precision: 2
Now, the sensor.thingspeak_temperature15min
is working and visible in the entities card:
Great. Perfect. Buuuuutt, my statistics sensor remains elusive:
I cannot get it too appear or plot in the statistics card. I’ve done something wrong. Before you ask, I have already tried restarting the HA server (several times) and reloading the config file manually.
Frustratingly, the sensor.statistics_temperature15min
IS working when I view the entity itself. But the Graph Card still doesn’t work
Any ideas?