esphome-docs/components/text_sensor/version.rst

36 lines
833 B
ReStructuredText
Raw Normal View History

Version Text Sensor
===================
2018-11-14 22:12:27 +01:00
.. seo::
:description: Instructions for setting up version text sensors.
:image: new-box.png
2018-11-14 22:12:27 +01:00
2019-02-16 23:25:23 +01:00
The ``version`` text sensor platform exposes the ESPHome version the firmware
was compiled against as a text sensor.
.. figure:: images/version-ui.png
:align: center
:width: 80.0%
.. code-block:: yaml
# Example configuration entry
text_sensor:
- platform: version
2019-02-16 23:25:23 +01:00
name: "ESPHome Version"
Configuration variables:
------------------------
- **name** (**Required**, string): The name of the text sensor.
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
2019-02-17 12:28:17 +01:00
- All other options from :ref:`Text Sensor <config-text_sensor>`.
See Also
--------
- :apiref:`text_sensor/version_text_sensor.h`
- :ghedit:`Edit`
.. disqus::