Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.sensorpush.sensor Namespace Reference

Classes

class  SensorPushBluetoothSensorEntity
 

Functions

PassiveBluetoothEntityKey _device_key_to_bluetooth_entity_key (DeviceKey device_key)
 
None async_setup_entry (HomeAssistant hass, SensorPushConfigEntry entry, AddEntitiesCallback async_add_entities)
 
PassiveBluetoothDataUpdate sensor_update_to_bluetooth_data_update (SensorUpdate sensor_update)
 

Variables

dictionary SENSOR_DESCRIPTIONS
 

Detailed Description

Support for sensorpush ble sensors.

Function Documentation

◆ _device_key_to_bluetooth_entity_key()

PassiveBluetoothEntityKey homeassistant.components.sensorpush.sensor._device_key_to_bluetooth_entity_key ( DeviceKey  device_key)
private
Convert a device key to an entity key.

Definition at line 63 of file sensor.py.

◆ async_setup_entry()

None homeassistant.components.sensorpush.sensor.async_setup_entry ( HomeAssistant  hass,
SensorPushConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the SensorPush BLE sensors.

Definition at line 97 of file sensor.py.

◆ sensor_update_to_bluetooth_data_update()

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

Definition at line 70 of file sensor.py.

Variable Documentation

◆ SENSOR_DESCRIPTIONS

dictionary homeassistant.components.sensorpush.sensor.SENSOR_DESCRIPTIONS
Initial value:
1 = {
2  (DeviceClass.TEMPERATURE, Units.TEMP_CELSIUS): SensorEntityDescription(
3  key=f"{DeviceClass.TEMPERATURE}_{Units.TEMP_CELSIUS}",
4  device_class=SensorDeviceClass.TEMPERATURE,
5  native_unit_of_measurement=UnitOfTemperature.CELSIUS,
6  state_class=SensorStateClass.MEASUREMENT,
7  ),
8  (DeviceClass.HUMIDITY, Units.PERCENTAGE): SensorEntityDescription(
9  key=f"{DeviceClass.HUMIDITY}_{Units.PERCENTAGE}",
10  device_class=SensorDeviceClass.HUMIDITY,
11  native_unit_of_measurement=PERCENTAGE,
12  state_class=SensorStateClass.MEASUREMENT,
13  ),
14  (DeviceClass.PRESSURE, Units.PRESSURE_MBAR): SensorEntityDescription(
15  key=f"{DeviceClass.PRESSURE}_{Units.PRESSURE_MBAR}",
16  device_class=SensorDeviceClass.PRESSURE,
17  native_unit_of_measurement=UnitOfPressure.MBAR,
18  state_class=SensorStateClass.MEASUREMENT,
19  ),
20  (
21  DeviceClass.SIGNAL_STRENGTH,
22  Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
23  ): SensorEntityDescription(
24  key=f"{DeviceClass.SIGNAL_STRENGTH}_{Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT}",
25  device_class=SensorDeviceClass.SIGNAL_STRENGTH,
26  native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
27  state_class=SensorStateClass.MEASUREMENT,
28  entity_registry_enabled_default=False,
29  ),
30 }

Definition at line 31 of file sensor.py.