Uptime


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

Configuration

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

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

Configuration Variables

namestring(Optional, default: Uptime)

Name to use in the frontend.

unit_of_measurementstring(Optional, default: days)

Units for uptime measurement in either days, hours or minutes.

Example

# Example with configuration variables
sensor:
  - platform: uptime
    name: Time Online
    unit_of_measurement: hours