I have configured several Pi servers in my house to send their CPU temperature and other data to Home Assistant. I then added a statistics graph in Home Assistant dashboard to show the CPU temperatures over the last day. All good. But I want to add the CPU temperature of the Home Assistant Raspberry Pi. This is not available as a “Statistic”. The documentation states that is because the provider has not configured their sensor correctly and I should open a ticket with them, but I believe that the Home Assistant CPU temperature will be from Home Assistant
Is there something that I can do locally to track the temperature of the CPU on the Pi that is running Home Assistant, in a statistics graph on a dashboard in Home Assistant?
Thank you for your help. II went into Developer Tools > States, found the cpu_temperature, edited it to add the state_class and device_class, and saved that change.
It appears that HA does not like that, as it always reverted back within 60 seconds. Is there another way to set this that will make it stick?
I just looked at my configuration.yaml. I now remember that the cpu_temperature was added manually by me a few months ago. The snippet below is what I had added.
But adding the device_class and state_class as below results in a fail when testing if the config is OK for restart. I will see if I can find some logs.