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 …
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:
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
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.
Got you. that works. thanks