home-assistant.io/source/_components/sensor.uptime.markdown
Fabian Affolter 95546aa3fc
Move to Network category (#6181)
* Move to Network category

* Update category and other fixes
2018-09-03 10:48:27 +02:00

1.0 KiB

layout, title, description, date, sidebar, comments, sharing, footer, ha_category, ha_iot_class, logo, ha_release
layout title description date sidebar comments sharing footer ha_category ha_iot_class logo ha_release
page Uptime Sensor Instructions on how to integrate an uptime sensor into Home Assistant. 2017-10-13 10:30 true false true true Utility Local Pushing home-assistant.png 0.56

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

{% linkable_title Configuration %}

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

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

{% configuration %} name: description: Name to use in the frontend. required: false type: string default: Uptime unit_of_measurement: description: "Units for uptime measurement in either days, hours, or minutes." required: false type: string default: days {% endconfiguration %}

{% linkable_title Example %}

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