metbril / home-assistant-config

🏠 My Home Assistant configuration
MIT License
25 stars 2 forks source link

Ha startup time #31

Closed metbril closed 3 years ago

metbril commented 4 years ago

Clever way to determine startup time

https://github.com/dale3h/homeassistant-config/blob/b040f17bc66a47f3f884d8360ed225d7f3a3e8f3/packages/system.yaml#L168

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

metbril commented 3 years ago

Keep

metbril commented 3 years ago

This can be used to show the time when HA was last started. The basic idea is to have a dedicated automation that is forced ON at startup, triggers at startup and turns itself off. A templated sensor picks up the time the one time the automation triggers. Until the next start.

Make sure to set the device class of the sensor to uptime.

metbril commented 3 years ago

Implemented in 594f5abd7250920193445b7bbb18c5fb509703fd