Uptime Sensor


The uptime sensor platform displays the time since the last Home Assistant restart.

To enable this sensor, add the following lines to your configuration.yaml:

# Example configuration.yaml entry
sensor:
  - platform: uptime

Configuration variables:

  • name (Optional): Name of the sensor. Defaults to Uptime.
  • unit_of_measurement (Optional): Units for uptime measurement in either days or hours. Defaults to days.