mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-12 20:10:50 +01:00
[uptime] Add sensor types (#4014)
* Add uptime sensor types * Oops * Update update_interval copy
This commit is contained in:
parent
0dbe9a9386
commit
fc5d338521
@ -13,17 +13,21 @@ Time rollovers are automatically handled.
|
||||
# Example configuration entry
|
||||
sensor:
|
||||
- platform: uptime
|
||||
type: seconds
|
||||
name: Uptime Sensor
|
||||
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **type** (*Optional*): Either:
|
||||
|
||||
- ``seconds`` (*default*): A simple counter.
|
||||
- ``timestamp``: presents the time ESPHome last booted up. Requires a :doc:`/components/time/index`.
|
||||
|
||||
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``.
|
||||
|
||||
- **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas.
|
||||
Valid only with ``type: seconds``.
|
||||
- All other options from :ref:`Sensor <config-sensor>`.
|
||||
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user