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

Classes

class  DormakabaDkeyBinarySensor
 
class  DormakabaDkeyBinarySensorDescription
 

Functions

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

Variables

tuple BINARY_SENSOR_DESCRIPTIONS
 

Detailed Description

Dormakaba dKey integration binary sensor platform.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.dormakaba_dkey.binary_sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the binary sensor platform for Dormakaba dKey.

Definition at line 49 of file binary_sensor.py.

Variable Documentation

◆ BINARY_SENSOR_DESCRIPTIONS

tuple homeassistant.components.dormakaba_dkey.binary_sensor.BINARY_SENSOR_DESCRIPTIONS
Initial value:
1 = (
2  DormakabaDkeyBinarySensorDescription(
3  key="door_position",
4  device_class=BinarySensorDeviceClass.DOOR,
5  is_on=lambda state: state.door_position == DoorPosition.OPEN,
6  ),
7  DormakabaDkeyBinarySensorDescription(
8  key="security_locked",
9  translation_key="deadbolt",
10  device_class=BinarySensorDeviceClass.LOCK,
11  is_on=lambda state: state.unlock_status
12  not in (UnlockStatus.SECURITY_LOCKED, UnlockStatus.UNLOCKED_SECURITY_LOCKED),
13  ),
14 )

Definition at line 33 of file binary_sensor.py.