Sensor.ha_runtime_in_minutes gives date instead of minutes

ha_runtine_in_minutes doesn’t return minutes, but rather the last boot time:
image

I’m trying to create an automation and when adding this code:

   - condition: numeric_state
     entity_id: sensor.ha_runtime_in_minutes
     above: 1

It does not work.

I retrieved the “sensor.ha_runtime_in_minutes” value, and it gives this: “2021-02-26T15:23:53.909416+01:00” instead of minutes, which correspond with the last boot date.

I’m running core-2021.2.3

Any help?

The sensor has been changed a few releases ago, to be the boot date instead of the minutes. This way the sensor only needs to update once on reboot and not every minute.

See this topic here

1 Like