Tuya Binary Sensor
The tuya binary sensor platform creates a binary sensor from a
tuya component and requires Tuya to be configured.
You can create the binary sensor as follows:
# Create a binary sensorbinary_sensor: - platform: "tuya" name: "MyBinarySensor" sensor_datapoint: 1Configuration variables
Section titled “Configuration variables”- sensor_datapoint (Required, int): The datapoint id number of the binary sensor.
- All other options from Binary Sensor.