Hi there!
I have an issue with one of my energy total sensors coming from a Tasmota device attached to the utility meter.
It is not updating every second. It is sometimes not updating for minutes, which causes the Energy dashboard to create an error (unexpected state).
Funnily, the other sensor coming from that Tasmota device (power) are updating every second. When I check the sensors on the Tasmota device, all of them are updating every second. So somewhere in Tasmota, MQQT and Homeassistant, the energy sensor is not updating. I have no idea where the issue could be?
Energy sensors do not need to update every second to to be valid. This would be a needless load on the system and network.
What you are looking at in the pop-up card is five minute statistics. If you click on the “Show more” link in that card it will take you to the History panel with actual state update rates.
Something else is causing your energy dashboard error. To debug this post the following:
What the actual error is and how it makes the energy dashboard behave.
The energy sensor history graph (not the 5 minute data in the pop-up).
Thank you for your reply. Yesterday, I was able to choose the sensor gplugm_ei for my Energy dashboard. Then the Energy dashboard was working for an hour. After that it showed the error, that the sensor showed an “unexpected state”.
Since then, I cannot even choose the sensor for my energy dashboard. It doesn’t show up in the dropdown. I deleted all the error messages and reloaded the config.
My sensors are configured like this:
homeassistant:
customize:
sensor.gplugm_ei:
unit_of_measurement: "kWh"
device_class: energy
state_class: total increasing
sensor.gplugm_pi:
unit_of_measurement: "kW"
device_class: energy
state_class: measurement
sensor.gplugm_ei1:
unit_of_measurement: "kWh"
device_class: energy
state_class: total increasing
sensor.gplugm_ei2:
unit_of_measurement: "kWh"
device_class: energy
state_class: total increasing