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

Classes

class  BaseProtectSensor
 
class  ProtectDeviceSensor
 
class  ProtectEventSensor
 
class  ProtectLicensePlateEventSensor
 
class  ProtectNVRSensor
 
class  ProtectSensorEntityDescription
 
class  ProtectSensorEventEntityDescription
 

Functions

list[ProtectDeviceEntity_async_event_entities (ProtectData data, Camera|None ufp_device=None)
 
list[BaseProtectEntity_async_nvr_entities (ProtectData data)
 
str _get_alarm_sound (Sensor obj)
 
float|None _get_nvr_memory (NVR obj)
 
int _get_nvr_recording_capacity (NVR obj)
 
datetime|None _get_uptime (ProtectDeviceModel obj)
 
None async_setup_entry (HomeAssistant hass, UFPConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string OBJECT_TYPE_NONE = "none"
 

Detailed Description

Component providing sensors for UniFi Protect.

Function Documentation

◆ _async_event_entities()

list[ProtectDeviceEntity] homeassistant.components.unifiprotect.sensor._async_event_entities ( ProtectData  data,
Camera | None   ufp_device = None 
)
private

Definition at line 675 of file sensor.py.

◆ _async_nvr_entities()

list[BaseProtectEntity] homeassistant.components.unifiprotect.sensor._async_nvr_entities ( ProtectData  data)
private

Definition at line 708 of file sensor.py.

◆ _get_alarm_sound()

str homeassistant.components.unifiprotect.sensor._get_alarm_sound ( Sensor  obj)
private

Definition at line 114 of file sensor.py.

◆ _get_nvr_memory()

float | None homeassistant.components.unifiprotect.sensor._get_nvr_memory ( NVR  obj)
private

Definition at line 107 of file sensor.py.

◆ _get_nvr_recording_capacity()

int homeassistant.components.unifiprotect.sensor._get_nvr_recording_capacity ( NVR  obj)
private

Definition at line 100 of file sensor.py.

◆ _get_uptime()

datetime | None homeassistant.components.unifiprotect.sensor._get_uptime ( ProtectDeviceModel  obj)
private

Definition at line 91 of file sensor.py.

◆ async_setup_entry()

None homeassistant.components.unifiprotect.sensor.async_setup_entry ( HomeAssistant  hass,
UFPConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up sensors for UniFi Protect integration.

Definition at line 640 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.unifiprotect.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 57 of file sensor.py.

◆ OBJECT_TYPE_NONE

string homeassistant.components.unifiprotect.sensor.OBJECT_TYPE_NONE = "none"

Definition at line 58 of file sensor.py.