Closed metbril closed 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.
Keep
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.
Implemented in 594f5abd7250920193445b7bbb18c5fb509703fd
Clever way to determine startup time
https://github.com/dale3h/homeassistant-config/blob/b040f17bc66a47f3f884d8360ed225d7f3a3e8f3/packages/system.yaml#L168