Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tuya.binary_sensor Namespace Reference

Classes

class  TuyaBinarySensorEntity
 
class  TuyaBinarySensorEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, TuyaConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 TAMPER_BINARY_SENSOR
 

Detailed Description

Support for Tuya binary sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.tuya.binary_sensor.async_setup_entry ( HomeAssistant  hass,
TuyaConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up Tuya binary sensor dynamically through Tuya discovery.

Definition at line 343 of file binary_sensor.py.

Variable Documentation

◆ TAMPER_BINARY_SENSOR

homeassistant.components.tuya.binary_sensor.TAMPER_BINARY_SENSOR
Initial value:
1 = TuyaBinarySensorEntityDescription(
2  key=DPCode.TEMPER_ALARM,
3  name="Tamper",
4  device_class=BinarySensorDeviceClass.TAMPER,
5  entity_category=EntityCategory.DIAGNOSTIC,
6 )

Definition at line 36 of file binary_sensor.py.