mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-11 05:28:57 +00:00
755 B
755 B
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 how to integrate an uptime sensor into Home Assistant. | 2017-10-13 10:30 | true | false | true | true | Sensor | Local Pushing | home-assistant.png | 0.56 |
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
orhours
. Defaults todays
.