dylandoamaral / uptime-card

Minimalistic uptime card for Home Assistant Lovelace UI
266 stars 11 forks source link

Uptime in hh:mm:ss format #88

Closed dylandoamaral closed 3 years ago

dylandoamaral commented 3 years ago

Discussed in https://github.com/dylandoamaral/uptime-card/discussions/87

Originally posted by **Ragingfire105** August 11, 2021 I am using this card to create a heatmap of sorts for watch time on the kids TV. I used the thresholds and aliases to get the visual behavior I would like. Now I would like to be able to show the up time of the sensor as time instead of a percentage. I tried playing with the templates to math out the time but, with no JavaScript experience I'm at a loss. ![image](https://user-images.githubusercontent.com/59106079/128968873-f6fefecd-a7cc-4e62-b31c-13bb6ce494d3.png)