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

Classes

class  YaleDoorbellBinarySensor
 
class  YaleDoorbellBinarySensorEntityDescription
 
class  YaleDoorBinarySensor
 

Functions

None async_setup_entry (HomeAssistant hass, YaleConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 SENSOR_TYPE_DOOR
 
tuple SENSOR_TYPES_VIDEO_DOORBELL
 
 TIME_TO_RECHECK_DETECTION
 

Detailed Description

Support for Yale binary sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.yale.binary_sensor.async_setup_entry ( HomeAssistant  hass,
YaleConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Yale binary sensors.

Definition at line 92 of file binary_sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.yale.binary_sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 36 of file binary_sensor.py.

◆ SENSOR_TYPE_DOOR

homeassistant.components.yale.binary_sensor.SENSOR_TYPE_DOOR
Initial value:
1 = BinarySensorEntityDescription(
2  key="open",
3  device_class=BinarySensorDeviceClass.DOOR,
4 )

Definition at line 51 of file binary_sensor.py.

◆ SENSOR_TYPES_VIDEO_DOORBELL

tuple homeassistant.components.yale.binary_sensor.SENSOR_TYPES_VIDEO_DOORBELL
Initial value:
1 = (
2  YaleDoorbellBinarySensorEntityDescription(
3  key="motion",
4  device_class=BinarySensorDeviceClass.MOTION,
5  value_fn=retrieve_doorbell_motion_activity,
6  is_time_based=True,
7  ),
8  YaleDoorbellBinarySensorEntityDescription(
9  key="image capture",
10  translation_key="image_capture",
11  value_fn=partial(
12  retrieve_time_based_activity, {ActivityType.DOORBELL_IMAGE_CAPTURE}
13  ),
14  is_time_based=True,
15  ),
16  YaleDoorbellBinarySensorEntityDescription(
17  key="online",
18  device_class=BinarySensorDeviceClass.CONNECTIVITY,
19  entity_category=EntityCategory.DIAGNOSTIC,
20  value_fn=retrieve_online_state,
21  is_time_based=False,
22  ),
23 )

Definition at line 56 of file binary_sensor.py.

◆ TIME_TO_RECHECK_DETECTION

homeassistant.components.yale.binary_sensor.TIME_TO_RECHECK_DETECTION
Initial value:
1 = timedelta(
2  seconds=ACTIVITY_UPDATE_INTERVAL.total_seconds() * 3
3 )

Definition at line 38 of file binary_sensor.py.