I have seen a few posts on this but even with offered solutions I can’t get my head around what’s missing.
I want to use the Statistics Graph Card but I always end with “No statistics found” instead of a chart.
Thanks Tom. I’ve made the change and nothing is changing for now. I’ll wait a couple of hours in case that’s what it takes for the data to be stored for long term statistics to show up.
Do I actually need the botton 2 commented out lines to be commented or not ?
Thanks. I’m still not getting anything.
Are you using an MQTT sensor or other?
Is there a limitation in the number of long term stats sensors?
I have it working well with my current consumption sensor, but for some reason I can’t see to be able to add any MQTT sensors to the statistics chart.
I’ve also tried to create a template sensor to basically clone the MQTT one to no avail
That one was an ESPHome sensor. I just tried an mqtt sensor (from zigbee2mqtt) it worked too.
Here are its attributes:
state_class: measurement
battery: 91
contact: true
linkquality: 39
temperature: 9
voltage: 2985
unit_of_measurement: °C
friendly_name: Lane Gate temperature
device_class: temperature
Not that I know of.
Try adding a friendly_name attribute. It’s the only thing I can see that is different.
this is not supported for a Template sensor nor for an MQTT sensor: Invalid config for [sensor.mqtt]: [friendly_name] is an invalid option for [sensor.mqtt]
So I’m at loss now now as I can’t understand why it’s not working.
I might try and rewrite everything again in case there’s another wonky formatting issue somewhere, I’m thinking dos2unix style issues, would not be the first time. At least you’ve confirmed it should work …
Hi there,
I seem to have the same issue, i am using mqtt to register some sensors running on esp32 devices.
I added state_class and set to “measurement” which made my sensors appear in the new card, but i also never get anything else than no statistics found.
This is the config that i can see for e.g one of my temp sensors: