Tuya Text Sensor¶
The tuya
text sensor platform creates a sensor from a tuya component
and requires Tuya MCU to be configured.
You can create the text sensor as follows:
# Create a sensor
text_sensor:
- platform: "tuya"
name: "MyTextSensor"
sensor_datapoint: 18
Configuration variables:¶
id (Optional, ID): Manually specify the ID used for code generation.
name (Required, string): The name of the sensor.
sensor_datapoint (Required, int): The datapoint id number of the sensor.
All other options from Text Sensor.