Skip to content

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 sensor
binary_sensor:
- platform: "tuya"
name: "MyBinarySensor"
sensor_datapoint: 1
  • sensor_datapoint (Required, int): The datapoint id number of the binary sensor.
  • All other options from Binary Sensor.