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

name string (Optional, default: Uptime)

Name to use in the frontend.

Example

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