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

Classes

class  ReolinkHddSensorEntity
 
class  ReolinkHostSensorEntity
 
class  ReolinkHostSensorEntityDescription
 
class  ReolinkSensorEntity
 
class  ReolinkSensorEntityDescription
 

Functions

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

Variables

tuple HDD_SENSORS
 
tuple HOST_SENSORS
 
int PARALLEL_UPDATES = 0
 
tuple SENSORS
 

Detailed Description

Component providing support for Reolink sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.reolink.sensor.async_setup_entry ( HomeAssistant  hass,
ReolinkConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up a Reolink IP Camera.

Definition at line 150 of file sensor.py.

Variable Documentation

◆ HDD_SENSORS

tuple homeassistant.components.reolink.sensor.HDD_SENSORS
Initial value:
1 = (
2  ReolinkSensorEntityDescription(
3  key="storage",
4  cmd_key="GetHddInfo",
5  native_unit_of_measurement=PERCENTAGE,
6  state_class=SensorStateClass.MEASUREMENT,
7  entity_category=EntityCategory.DIAGNOSTIC,
8  entity_registry_enabled_default=False,
9  value=lambda api, idx: api.hdd_storage(idx),
10  supported=lambda api, idx: api.supported(None, "hdd"),
11  ),
12 )

Definition at line 136 of file sensor.py.

◆ HOST_SENSORS

tuple homeassistant.components.reolink.sensor.HOST_SENSORS
Initial value:
1 = (
2  ReolinkHostSensorEntityDescription(
3  key="wifi_signal",
4  cmd_key="GetWifiSignal",
5  translation_key="wifi_signal",
6  state_class=SensorStateClass.MEASUREMENT,
7  entity_category=EntityCategory.DIAGNOSTIC,
8  entity_registry_enabled_default=False,
9  value=lambda api: api.wifi_signal,
10  supported=lambda api: api.supported(None, "wifi") and api.wifi_connection,
11  ),
12  ReolinkHostSensorEntityDescription(
13  key="cpu_usage",
14  cmd_key="GetPerformance",
15  translation_key="cpu_usage",
16  native_unit_of_measurement=PERCENTAGE,
17  state_class=SensorStateClass.MEASUREMENT,
18  entity_category=EntityCategory.DIAGNOSTIC,
19  entity_registry_enabled_default=False,
20  value=lambda api: api.cpu_usage,
21  supported=lambda api: api.supported(None, "performance"),
22  ),
23 )

Definition at line 112 of file sensor.py.

◆ PARALLEL_UPDATES

int homeassistant.components.reolink.sensor.PARALLEL_UPDATES = 0

Definition at line 32 of file sensor.py.

◆ SENSORS

tuple homeassistant.components.reolink.sensor.SENSORS

Definition at line 55 of file sensor.py.