Franck Nijhof 1833c32a2c Cleans up front matter (#9835)
* Sets front matter defaults

* Removes default front matter from section templates/pages

* Removes default front matter from addon pages

* Removes default front matter from integration pages

* Removes default front matter from posts

* Removes default front matter from docs pages

* Removes default front matter from other pages

* Fixes blog category pages
2019-07-11 14:35:08 -07:00

984 B

title, description, ha_category, ha_iot_class, logo, ha_release, ha_qa_scale, redirect_from
title description ha_category ha_iot_class logo ha_release ha_qa_scale redirect_from
Uptime Sensor Instructions on how to integrate an uptime sensor into Home Assistant.
Utility
Local Push home-assistant.png 0.56 internal
/components/sensor.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 %} 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 %}

Example

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