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