esphome-docs/components/text_sensor/tuya.rst
2024-08-13 21:38:05 -05:00

34 lines
802 B
ReStructuredText

Tuya Text Sensor
================
.. seo::
:description: Instructions for setting up a Tuya device sensor.
:image: tuya.png
The ``tuya`` text sensor platform creates a sensor from a tuya component
and requires :doc:`/components/tuya` to be configured.
You can create the text sensor as follows:
.. code-block:: yaml
# Create a sensor
text_sensor:
- platform: "tuya"
name: "MyTextSensor"
sensor_datapoint: 18
Configuration variables:
------------------------
- **sensor_datapoint** (**Required**, int): The datapoint id number of the sensor.
- All other options from :ref:`Text Sensor <config-text_sensor>`.
See Also
--------
- :doc:`/components/tuya`
- :doc:`/components/text_sensor/index`
- :apiref:`tuya/text_sensor/tuya_text_sensor.h`
- :ghedit:`Edit`