[uptime] Add sensor types (#4014)

* Add uptime sensor types

* Oops

* Update update_interval copy
This commit is contained in:
Keith Burzinski 2024-07-01 21:29:55 -05:00 committed by GitHub
parent 0dbe9a9386
commit fc5d338521
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
--------