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

Classes

class  QingpingBluetoothSensorEntity
 

Functions

None async_setup_entry (HomeAssistant hass, QingpingConfigEntry entry, AddEntitiesCallback async_add_entities)
 
PassiveBluetoothDataUpdate sensor_update_to_bluetooth_data_update (SensorUpdate sensor_update)
 

Variables

dictionary BINARY_SENSOR_DESCRIPTIONS
 

Detailed Description

Support for Qingping binary sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.qingping.binary_sensor.async_setup_entry ( HomeAssistant  hass,
QingpingConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Qingping BLE sensors.

Definition at line 74 of file binary_sensor.py.

◆ sensor_update_to_bluetooth_data_update()

PassiveBluetoothDataUpdate homeassistant.components.qingping.binary_sensor.sensor_update_to_bluetooth_data_update ( SensorUpdate  sensor_update)
Convert a sensor update to a bluetooth data update.

Definition at line 47 of file binary_sensor.py.

Variable Documentation

◆ BINARY_SENSOR_DESCRIPTIONS

dictionary homeassistant.components.qingping.binary_sensor.BINARY_SENSOR_DESCRIPTIONS
Initial value:
1 = {
2  QingpingBinarySensorDeviceClass.MOTION: BinarySensorEntityDescription(
3  key=QingpingBinarySensorDeviceClass.MOTION,
4  device_class=BinarySensorDeviceClass.MOTION,
5  ),
6  QingpingBinarySensorDeviceClass.LIGHT: BinarySensorEntityDescription(
7  key=QingpingBinarySensorDeviceClass.LIGHT,
8  device_class=BinarySensorDeviceClass.LIGHT,
9  ),
10  QingpingBinarySensorDeviceClass.DOOR: BinarySensorEntityDescription(
11  key=QingpingBinarySensorDeviceClass.DOOR,
12  device_class=BinarySensorDeviceClass.DOOR,
13  ),
14  QingpingBinarySensorDeviceClass.PROBLEM: BinarySensorEntityDescription(
15  key=QingpingBinarySensorDeviceClass.PROBLEM,
16  device_class=BinarySensorDeviceClass.PROBLEM,
17  ),
18 }

Definition at line 27 of file binary_sensor.py.