esphome-docs/esphomeyaml/components/sensor/uptime.rst

34 lines
1020 B
ReStructuredText
Raw Normal View History

Uptime Sensor
=============
2018-11-14 22:12:27 +01:00
.. seo::
:description: Instructions for setting up a sensor that tracks the uptime of the ESP.
:image: timer.svg
The ``uptime`` sensor allows you to track the time the ESP has stayed up for in seconds.
Time rollovers are automatically handled.
.. code:: yaml
# Example configuration entry
sensor:
- platform: uptime
name: Uptime Sensor
Configuration variables:
------------------------
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``15s``.
See :ref:`sensor-default_filter`.
- **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas.
- All other options from :ref:`Sensor <config-sensor>` and :ref:`MQTT Component <config-mqtt-component>`.
2018-08-24 22:44:01 +02:00
See Also
--------
- :ref:`sensor-filters`
- :doc:`API Reference </api/sensor/uptime>`
- `Edit this page on GitHub <https://github.com/OttoWinter/esphomedocs/blob/current/esphomeyaml/components/sensor/uptime.rst>`__
2018-10-12 16:33:22 +02:00
.. disqus::