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

Classes

class  ProtectCamera
 

Functions

list[ProtectDeviceEntity_async_camera_entities (HomeAssistant hass, UFPConfigEntry entry, ProtectData data, UFPCamera|None ufp_device=None)
 
None _create_rtsp_repair (HomeAssistant hass, UFPConfigEntry entry, ProtectData data, UFPCamera camera)
 
Generator[tuple[UFPCamera, CameraChannel, bool]] _get_camera_channels (HomeAssistant hass, UFPConfigEntry entry, ProtectData data, UFPCamera|None ufp_device=None)
 
None async_setup_entry (HomeAssistant hass, UFPConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _DISABLE_FEATURE = CameraEntityFeature(0)
 
 _ENABLE_FEATURE = CameraEntityFeature.STREAM
 
 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Support for Ubiquiti's UniFi Protect NVR.

Function Documentation

◆ _async_camera_entities()

list[ProtectDeviceEntity] homeassistant.components.unifiprotect.camera._async_camera_entities ( HomeAssistant  hass,
UFPConfigEntry  entry,
ProtectData  data,
UFPCamera | None   ufp_device = None 
)
private

Definition at line 100 of file camera.py.

◆ _create_rtsp_repair()

None homeassistant.components.unifiprotect.camera._create_rtsp_repair ( HomeAssistant  hass,
UFPConfigEntry  entry,
ProtectData  data,
UFPCamera   camera 
)
private

Definition at line 38 of file camera.py.

◆ _get_camera_channels()

Generator[tuple[UFPCamera, CameraChannel, bool]] homeassistant.components.unifiprotect.camera._get_camera_channels ( HomeAssistant  hass,
UFPConfigEntry  entry,
ProtectData  data,
UFPCamera | None   ufp_device = None 
)
private
Get all the camera channels.

Definition at line 63 of file camera.py.

◆ async_setup_entry()

None homeassistant.components.unifiprotect.camera.async_setup_entry ( HomeAssistant  hass,
UFPConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Discover cameras on a UniFi Protect NVR.

Definition at line 138 of file camera.py.

Variable Documentation

◆ _DISABLE_FEATURE

homeassistant.components.unifiprotect.camera._DISABLE_FEATURE = CameraEntityFeature(0)
private

Definition at line 159 of file camera.py.

◆ _ENABLE_FEATURE

homeassistant.components.unifiprotect.camera._ENABLE_FEATURE = CameraEntityFeature.STREAM
private

Definition at line 160 of file camera.py.

◆ _LOGGER

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

Definition at line 34 of file camera.py.