Elapsed time formating
Posted: Sun Mar 28, 2021 4:20 pm
I'm using uptime and offline_seconds to show on a controll page, but showing seconds for this is not the best, so I convert it to days, hours, minutes. Currently I'm accomplishing this by using triggers and variables. I convert the seconds for each state for each device to readable format and place it in a variable which then I show on a controll page. This is a bit cumbersome as I have to create a variable and trigger for every device.sate combo I wan to use.
Anybody has a better idea how to show elapsed time?
Anybody has a better idea how to show elapsed time?