Uptime Sensor


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

name

(string)(Optional)Name to use in the frontend.

Default value: Uptime

unit_of_measurement

(string)(Optional)Units for uptime measurement in either days, hours, or minutes.

Default value: days

Example

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