mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-21 10:26:50 +00:00
784 B
784 B
title, description, ha_category, ha_iot_class, ha_release, ha_quality_scale, ha_domain, ha_platforms
title | description | ha_category | ha_iot_class | ha_release | ha_quality_scale | ha_domain | ha_platforms | |||
---|---|---|---|---|---|---|---|---|---|---|
Uptime | Instructions on how to integrate an uptime sensor into Home Assistant. |
|
Local Push | 0.56 | internal | uptime |
|
The uptime
sensor stores the timestamp (date and time) when Home Assistant was last started.
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 {% endconfiguration %}
Example
# Example with configuration variables
sensor:
- platform: uptime
name: Time Online