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

Classes

class  GoveeBluetoothBinarySensorEntity
 

Functions

None async_setup_entry (HomeAssistant hass, config_entries.ConfigEntry entry, AddEntitiesCallback async_add_entities)
 
PassiveBluetoothDataUpdate[bool|None] sensor_update_to_bluetooth_data_update (SensorUpdate sensor_update)
 

Variables

dictionary BINARY_SENSOR_DESCRIPTIONS
 

Detailed Description

Support for govee-ble binary sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.govee_ble.binary_sensor.async_setup_entry ( HomeAssistant  hass,
config_entries.ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the govee-ble BLE sensors.

Definition at line 72 of file binary_sensor.py.

◆ sensor_update_to_bluetooth_data_update()

PassiveBluetoothDataUpdate[bool | None] homeassistant.components.govee_ble.binary_sensor.sensor_update_to_bluetooth_data_update ( SensorUpdate  sensor_update)
Convert a sensor update to a bluetooth data update.

Definition at line 45 of file binary_sensor.py.

Variable Documentation

◆ BINARY_SENSOR_DESCRIPTIONS

dictionary homeassistant.components.govee_ble.binary_sensor.BINARY_SENSOR_DESCRIPTIONS
Initial value:
1 = {
2  GoveeBLEBinarySensorDeviceClass.WINDOW: BinarySensorEntityDescription(
3  key=GoveeBLEBinarySensorDeviceClass.WINDOW,
4  device_class=BinarySensorDeviceClass.WINDOW,
5  ),
6  GoveeBLEBinarySensorDeviceClass.MOTION: BinarySensorEntityDescription(
7  key=GoveeBLEBinarySensorDeviceClass.MOTION,
8  device_class=BinarySensorDeviceClass.MOTION,
9  ),
10  GoveeBLEBinarySensorDeviceClass.OCCUPANCY: BinarySensorEntityDescription(
11  key=GoveeBLEBinarySensorDeviceClass.OCCUPANCY,
12  device_class=BinarySensorDeviceClass.OCCUPANCY,
13  ),
14 }

Definition at line 29 of file binary_sensor.py.