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

Classes

class  ProtectProxyView
 
class  ThumbnailProxyView
 
class  VideoEventProxyView
 
class  VideoProxyView
 

Functions

web.Response _400 (Any message)
 
web.Response _403 (Any message)
 
web.Response _404 (Any message)
 
web.Response _client_error (Any message, HTTPStatus code)
 
None _validate_event (Event event)
 
str async_generate_event_video_url (Event event)
 
str async_generate_proxy_event_video_url (str nvr_id, str event_id)
 
str async_generate_thumbnail_url (str event_id, str nvr_id, int|None width=None, int|None height=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

UniFi Protect Integration views.

Function Documentation

◆ _400()

web.Response homeassistant.components.unifiprotect.views._400 ( Any  message)
private

Definition at line 88 of file views.py.

◆ _403()

web.Response homeassistant.components.unifiprotect.views._403 ( Any  message)
private

Definition at line 93 of file views.py.

◆ _404()

web.Response homeassistant.components.unifiprotect.views._404 ( Any  message)
private

Definition at line 98 of file views.py.

◆ _client_error()

web.Response homeassistant.components.unifiprotect.views._client_error ( Any  message,
HTTPStatus  code 
)
private

Definition at line 80 of file views.py.

◆ _validate_event()

None homeassistant.components.unifiprotect.views._validate_event ( Event  event)
private

Definition at line 103 of file views.py.

◆ async_generate_event_video_url()

str homeassistant.components.unifiprotect.views.async_generate_event_video_url ( Event  event)
Generate URL for event video.

Definition at line 48 of file views.py.

◆ async_generate_proxy_event_video_url()

str homeassistant.components.unifiprotect.views.async_generate_proxy_event_video_url ( str  nvr_id,
str  event_id 
)
Generate proxy URL for event video.

Definition at line 67 of file views.py.

◆ async_generate_thumbnail_url()

str homeassistant.components.unifiprotect.views.async_generate_thumbnail_url ( str  event_id,
str  nvr_id,
int | None   width = None,
int | None   height = None 
)
Generate URL for event thumbnail.

Definition at line 25 of file views.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 21 of file views.py.