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

Classes

class  LD2410BLESensor
 

Functions

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

Variables

 DETECTION_DISTANCE_DESCRIPTION
 
 MAX_MOTION_GATES_DESCRIPTION
 
 MAX_STATIC_GATES_DESCRIPTION
 
list MOTION_ENERGY_GATES
 
 MOVING_TARGET_DISTANCE_DESCRIPTION
 
 MOVING_TARGET_ENERGY_DESCRIPTION
 
list SENSOR_DESCRIPTIONS
 
list STATIC_ENERGY_GATES
 
 STATIC_TARGET_DISTANCE_DESCRIPTION
 
 STATIC_TARGET_ENERGY_DESCRIPTION
 

Detailed Description

LD2410 BLE integration sensor platform.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.ld2410_ble.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the platform for LD2410BLE.

Definition at line 122 of file sensor.py.

Variable Documentation

◆ DETECTION_DISTANCE_DESCRIPTION

homeassistant.components.ld2410_ble.sensor.DETECTION_DISTANCE_DESCRIPTION
Initial value:
1 = SensorEntityDescription(
2  key="detection_distance",
3  translation_key="detection_distance",
4  device_class=SensorDeviceClass.DISTANCE,
5  entity_registry_enabled_default=False,
6  entity_registry_visible_default=True,
7  native_unit_of_measurement=UnitOfLength.CENTIMETERS,
8  state_class=SensorStateClass.MEASUREMENT,
9 )

Definition at line 41 of file sensor.py.

◆ MAX_MOTION_GATES_DESCRIPTION

homeassistant.components.ld2410_ble.sensor.MAX_MOTION_GATES_DESCRIPTION
Initial value:
1 = SensorEntityDescription(
2  key="max_motion_gates",
3  translation_key="max_motion_gates",
4  entity_category=EntityCategory.DIAGNOSTIC,
5  entity_registry_enabled_default=False,
6  native_unit_of_measurement="Gates",
7 )

Definition at line 71 of file sensor.py.

◆ MAX_STATIC_GATES_DESCRIPTION

homeassistant.components.ld2410_ble.sensor.MAX_STATIC_GATES_DESCRIPTION
Initial value:
1 = SensorEntityDescription(
2  key="max_static_gates",
3  translation_key="max_static_gates",
4  entity_category=EntityCategory.DIAGNOSTIC,
5  entity_registry_enabled_default=False,
6  native_unit_of_measurement="Gates",
7 )

Definition at line 79 of file sensor.py.

◆ MOTION_ENERGY_GATES

list homeassistant.components.ld2410_ble.sensor.MOTION_ENERGY_GATES
Initial value:
1 = [
2  SensorEntityDescription(
3  key=f"motion_energy_gate_{i}",
4  translation_key=f"motion_energy_gate_{i}",
5  entity_category=EntityCategory.DIAGNOSTIC,
6  entity_registry_enabled_default=False,
7  native_unit_of_measurement="Target Energy",
8  )
9  for i in range(9)
10 ]

Definition at line 87 of file sensor.py.

◆ MOVING_TARGET_DISTANCE_DESCRIPTION

homeassistant.components.ld2410_ble.sensor.MOVING_TARGET_DISTANCE_DESCRIPTION
Initial value:
1 = SensorEntityDescription(
2  key="moving_target_distance",
3  translation_key="moving_target_distance",
4  device_class=SensorDeviceClass.DISTANCE,
5  entity_registry_enabled_default=False,
6  entity_registry_visible_default=True,
7  native_unit_of_measurement=UnitOfLength.CENTIMETERS,
8  state_class=SensorStateClass.MEASUREMENT,
9 )

Definition at line 21 of file sensor.py.

◆ MOVING_TARGET_ENERGY_DESCRIPTION

homeassistant.components.ld2410_ble.sensor.MOVING_TARGET_ENERGY_DESCRIPTION
Initial value:
1 = SensorEntityDescription(
2  key="moving_target_energy",
3  translation_key="moving_target_energy",
4  device_class=None,
5  entity_registry_enabled_default=False,
6  entity_registry_visible_default=True,
7  native_unit_of_measurement="Target Energy",
8  state_class=SensorStateClass.MEASUREMENT,
9 )

Definition at line 51 of file sensor.py.

◆ SENSOR_DESCRIPTIONS

list homeassistant.components.ld2410_ble.sensor.SENSOR_DESCRIPTIONS
Initial value:
1 = [
2  MOVING_TARGET_DISTANCE_DESCRIPTION,
3  STATIC_TARGET_DISTANCE_DESCRIPTION,
4  MOVING_TARGET_ENERGY_DESCRIPTION,
5  STATIC_TARGET_ENERGY_DESCRIPTION,
6  DETECTION_DISTANCE_DESCRIPTION,
7  MAX_MOTION_GATES_DESCRIPTION,
8  MAX_STATIC_GATES_DESCRIPTION,
9  *MOTION_ENERGY_GATES,
10  *STATIC_ENERGY_GATES,
11 ]

Definition at line 109 of file sensor.py.

◆ STATIC_ENERGY_GATES

list homeassistant.components.ld2410_ble.sensor.STATIC_ENERGY_GATES
Initial value:
1 = [
2  SensorEntityDescription(
3  key=f"static_energy_gate_{i}",
4  translation_key=f"static_energy_gate_{i}",
5  entity_category=EntityCategory.DIAGNOSTIC,
6  entity_registry_enabled_default=False,
7  native_unit_of_measurement="Target Energy",
8  )
9  for i in range(9)
10 ]

Definition at line 98 of file sensor.py.

◆ STATIC_TARGET_DISTANCE_DESCRIPTION

homeassistant.components.ld2410_ble.sensor.STATIC_TARGET_DISTANCE_DESCRIPTION
Initial value:
1 = SensorEntityDescription(
2  key="static_target_distance",
3  translation_key="static_target_distance",
4  device_class=SensorDeviceClass.DISTANCE,
5  entity_registry_enabled_default=False,
6  entity_registry_visible_default=True,
7  native_unit_of_measurement=UnitOfLength.CENTIMETERS,
8  state_class=SensorStateClass.MEASUREMENT,
9 )

Definition at line 31 of file sensor.py.

◆ STATIC_TARGET_ENERGY_DESCRIPTION

homeassistant.components.ld2410_ble.sensor.STATIC_TARGET_ENERGY_DESCRIPTION
Initial value:
1 = SensorEntityDescription(
2  key="static_target_energy",
3  translation_key="static_target_energy",
4  device_class=None,
5  entity_registry_enabled_default=False,
6  entity_registry_visible_default=True,
7  native_unit_of_measurement="Target Energy",
8  state_class=SensorStateClass.MEASUREMENT,
9 )

Definition at line 61 of file sensor.py.