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

Classes

class  HomeKitBatteryLowSensor
 
class  HomeKitCarbonMonoxideSensor
 
class  HomeKitContactSensor
 
class  HomeKitLeakSensor
 
class  HomeKitMotionSensor
 
class  HomeKitOccupancySensor
 
class  HomeKitSmokeSensor
 

Functions

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

Variables

dictionary ENTITY_TYPES
 
dictionary REJECT_CHAR_BY_TYPE
 
dictionary REQUIRED_CHAR_BY_TYPE
 

Detailed Description

Support for Homekit motion sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.homekit_controller.binary_sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Homekit lighting.

Definition at line 156 of file binary_sensor.py.

Variable Documentation

◆ ENTITY_TYPES

dictionary homeassistant.components.homekit_controller.binary_sensor.ENTITY_TYPES
Initial value:
1 = {
2  ServicesTypes.MOTION_SENSOR: HomeKitMotionSensor,
3  ServicesTypes.CONTACT_SENSOR: HomeKitContactSensor,
4  ServicesTypes.SMOKE_SENSOR: HomeKitSmokeSensor,
5  ServicesTypes.CARBON_MONOXIDE_SENSOR: HomeKitCarbonMonoxideSensor,
6  ServicesTypes.OCCUPANCY_SENSOR: HomeKitOccupancySensor,
7  ServicesTypes.LEAK_SENSOR: HomeKitLeakSensor,
8  ServicesTypes.BATTERY_SERVICE: HomeKitBatteryLowSensor,
9 }

Definition at line 135 of file binary_sensor.py.

◆ REJECT_CHAR_BY_TYPE

dictionary homeassistant.components.homekit_controller.binary_sensor.REJECT_CHAR_BY_TYPE
Initial value:
1 = {
2  ServicesTypes.BATTERY_SERVICE: CharacteristicsTypes.BATTERY_LEVEL,
3 }

Definition at line 151 of file binary_sensor.py.

◆ REQUIRED_CHAR_BY_TYPE

dictionary homeassistant.components.homekit_controller.binary_sensor.REQUIRED_CHAR_BY_TYPE
Initial value:
1 = {
2  ServicesTypes.BATTERY_SERVICE: CharacteristicsTypes.STATUS_LO_BATT,
3 }

Definition at line 146 of file binary_sensor.py.