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,hours, orminutes. Defaults todays.
# Example with configuration variables
sensor:
- platform: uptime
name: Time Online
unit_of_measurement: hours