Every couple of days, I get the error that a sensor (temperatura_casa
) no longer has a state class.
The sensor is a group with the average of 10 temperature sensors.
I can I correct the problem?
Every couple of days, I get the error that a sensor (temperatura_casa
) no longer has a state class.
The sensor is a group with the average of 10 temperature sensors.
I can I correct the problem?
What is that sensor? Which integration is providing it?
(EDIT: apologies, I misread it as “in a group…”)
Do all the source sensors have state_class: measurement
?
Most likely not. How can I check? Anyway, I do not need statistics for this sensor, it would be enough to get rid of the recurring error message.
Check all the sensor’s attributes in Developer Tools-> States.
It’s a helper → group with the average of several sensors (Shelly, Sonoff, Canary, Netatmo, …)
Probably the only way to prevent this from happening is for all the source sensors to have the same state class or all to have no state class.
What could be happening is the one or two sensors with the state class are becoming unavailable. You still get the average from the remaining sensors but the state class goes missing. That’s my guess.
You can fix the issue when it occurs by visiting Developer Tools → Statistics and clicking on the Fix Issue button for the group sensor.
Thanks, I just corrected all the sensors with problems. Let’s see if it happens again and then check which
I removed all the sensors from the group and began adding them one by one.
As soon as I add a Sonoff Zigbee sensor the problem appears.
The sensor itself does not have any problem: in the statistics tab there are no problems displayed. But the group shows the error.
The sensor is a SNZB-02P from eWeLink.
Any idea on how to solve the problem (since I have 8 similar sensors, ignoring them does not seem an option…)