Tuya Binary Sensor

The 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

Configuration variables:

  • sensor_datapoint (Required, int): The datapoint id number of the binary sensor.

  • All other options from Binary Sensor.

See Also