Uptime in minutes

Hi there. Is there a way to get the uptime of HA in minutes? The minutes need to be a number (integer), no time format.

I searched and found a lot regarding this theme but I found no solution …

Create this:

Screenshot 2021-08-27 at 21-20-35 Developer Tools - Home Assistant

Then a template sensor that divides it by 60.

Hmm.
I already created a sensor:

sensor:
  - platform: uptime
    name: laufzeit

But for this sensor I get this value: 2021-08-27T11:44:27.505542+02:00

How did you create your sensor.uptime_sensor? This is what is my problem :frowning:

Ah, took a while to find but that actually comes from one of my ESPHome devices.

So you will have to build a template sensor by subtracting the uptime timestamp from the timestamp of now() and then divide the result by 60.

1 Like

Got you. that works. thanks :pray: