Energy total updating only every 5 minutes

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:

  1. What the actual error is and how it makes the energy dashboard behave.

  2. 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

And here are the latest sensor logs:

Column 1 Column 2 Column 3 Column 4
sensor.gplugm_ei,9372.482,2025-01-16T11:34:01.447Z
sensor.gplugm_ei,9372.793,2025-01-16T11:39:01.479Z
sensor.gplugm_ei,9373.104,2025-01-16T11:44:01.468Z
sensor.gplugm_ei,unavailable,2025-01-16T11:47:50.387Z
sensor.gplugm_ei,9373.104,2025-01-16T11:47:51.178Z
sensor.gplugm_ei,9373.324,2025-01-16T11:47:52.266Z
sensor.gplugm_ei,unavailable,2025-01-16T11:48:11.674Z
sensor.gplugm_ei,9373.324,2025-01-16T11:48:12.468Z
sensor.gplugm_ei,9373.342,2025-01-16T11:48:13.606Z
sensor.gplugm_ei,9373.388,2025-01-16T11:49:01.441Z
sensor.gplugm_ei,unavailable,2025-01-16T11:51:42.609Z
sensor.gplugm_ei,9373.388,2025-01-16T11:51:42.664Z
sensor.gplugm_ei,unavailable,2025-01-16T11:56:21.789Z
sensor.gplugm_ei,9373.388,2025-01-16T11:56:21.852Z
sensor.gplugm_ei,unavailable,2025-01-16T11:59:15.199Z
sensor.gplugm_ei,9373.388,2025-01-16T11:59:22.630Z
sensor.gplugm_ei,9373.821,2025-01-16T12:04:35.857Z
sensor.gplugm_ei,9373.832,2025-01-16T12:09:29.516Z
sensor.gplugm_ei,9373.843,2025-01-16T12:14:29.545Z