|
| None | __init__ (self, HomeAssistant hass, ConfigEntry config_entry) |
| |
| None | async_check_date_and_time (self) |
| |
| def | async_get_capabilities (self) |
| |
| DeviceInfo | async_get_device_info (self) |
| |
| list[Profile] | async_get_profiles (self) |
| |
| str | async_get_stream_uri (self, Profile profile) |
| |
| None | async_manually_set_date_and_time (self) |
| |
| def | async_perform_ptz (self, Profile profile, distance, speed, move_mode, continuous_duration, preset, pan=None, tilt=None, zoom=None) |
| |
| None | async_run_aux_command (self, Profile profile, str cmd) |
| |
| None | async_set_imaging_settings (self, Profile profile, dict settings) |
| |
| None | async_setup (self) |
| |
| def | async_start_events (self) |
| |
| def | async_stop (self, event=None) |
| |
| str | host (self) |
| |
| str | name (self) |
| |
| str | password (self) |
| |
| int | port (self) |
| |
| str | username (self) |
| |
Manages an ONVIF device.
Definition at line 48 of file device.py.
◆ __init__()
Initialize the device.
Definition at line 54 of file device.py.
◆ _async_log_time_out_of_sync()
| None homeassistant.components.onvif.device.ONVIFDevice._async_log_time_out_of_sync |
( |
|
self, |
|
|
dt.datetime |
cam_date_utc, |
|
|
dt.datetime
|
system_date |
|
) |
| |
|
private |
Log a warning if the camera and system date/time are not synced.
Definition at line 305 of file device.py.
◆ _async_update_listener()
| None homeassistant.components.onvif.device.ONVIFDevice._async_update_listener |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
ConfigEntry
|
entry |
|
) |
| |
|
private |
Handle options update.
Definition at line 70 of file device.py.
◆ async_check_date_and_time()
| None homeassistant.components.onvif.device.ONVIFDevice.async_check_date_and_time |
( |
|
self | ) |
|
Warns if device and system date not synced.
Definition at line 229 of file device.py.
◆ async_get_capabilities()
| def homeassistant.components.onvif.device.ONVIFDevice.async_get_capabilities |
( |
|
self | ) |
|
Obtain information about the available services on the device.
Definition at line 364 of file device.py.
◆ async_get_device_info()
| DeviceInfo homeassistant.components.onvif.device.ONVIFDevice.async_get_device_info |
( |
|
self | ) |
|
Obtain information about this device.
Definition at line 320 of file device.py.
◆ async_get_profiles()
| list[Profile] homeassistant.components.onvif.device.ONVIFDevice.async_get_profiles |
( |
|
self | ) |
|
Obtain media profiles for this device.
Definition at line 405 of file device.py.
◆ async_get_stream_uri()
| str homeassistant.components.onvif.device.ONVIFDevice.async_get_stream_uri |
( |
|
self, |
|
|
Profile |
profile |
|
) |
| |
Get the stream URI for a specified profile.
Definition at line 471 of file device.py.
◆ async_manually_set_date_and_time()
| None homeassistant.components.onvif.device.ONVIFDevice.async_manually_set_date_and_time |
( |
|
self | ) |
|
Set Date and Time Manually using SetSystemDateAndTime command.
Definition at line 179 of file device.py.
◆ async_perform_ptz()
| def homeassistant.components.onvif.device.ONVIFDevice.async_perform_ptz |
( |
|
self, |
|
|
Profile |
profile, |
|
|
|
distance, |
|
|
|
speed, |
|
|
|
move_mode, |
|
|
|
continuous_duration, |
|
|
|
preset, |
|
|
|
pan = None, |
|
|
|
tilt = None, |
|
|
|
zoom = None |
|
) |
| |
Perform a PTZ action on the camera.
Definition at line 483 of file device.py.
◆ async_run_aux_command()
| None homeassistant.components.onvif.device.ONVIFDevice.async_run_aux_command |
( |
|
self, |
|
|
Profile |
profile, |
|
|
str |
cmd |
|
) |
| |
Execute a PTZ auxiliary command on the camera.
Definition at line 612 of file device.py.
◆ async_set_imaging_settings()
| None homeassistant.components.onvif.device.ONVIFDevice.async_set_imaging_settings |
( |
|
self, |
|
|
Profile |
profile, |
|
|
dict |
settings |
|
) |
| |
Set an imaging setting on the ONVIF imaging service.
Definition at line 639 of file device.py.
◆ async_setup()
| None homeassistant.components.onvif.device.ONVIFDevice.async_setup |
( |
|
self | ) |
|
Set up the device.
Definition at line 102 of file device.py.
◆ async_start_events()
| def homeassistant.components.onvif.device.ONVIFDevice.async_start_events |
( |
|
self | ) |
|
Start the event handler.
Definition at line 384 of file device.py.
◆ async_stop()
| def homeassistant.components.onvif.device.ONVIFDevice.async_stop |
( |
|
self, |
|
|
|
event = None |
|
) |
| |
◆ host()
| str homeassistant.components.onvif.device.ONVIFDevice.host |
( |
|
self | ) |
|
Return the host of this device.
Definition at line 83 of file device.py.
◆ name()
| str homeassistant.components.onvif.device.ONVIFDevice.name |
( |
|
self | ) |
|
Return the name of this device.
Definition at line 78 of file device.py.
◆ password()
| str homeassistant.components.onvif.device.ONVIFDevice.password |
( |
|
self | ) |
|
Return the password of this device.
Definition at line 98 of file device.py.
◆ port()
| int homeassistant.components.onvif.device.ONVIFDevice.port |
( |
|
self | ) |
|
Return the port of this device.
Definition at line 88 of file device.py.
◆ username()
| str homeassistant.components.onvif.device.ONVIFDevice.username |
( |
|
self | ) |
|
Return the username of this device.
Definition at line 93 of file device.py.
◆ _dt_diff_seconds
| homeassistant.components.onvif.device.ONVIFDevice._dt_diff_seconds |
|
private |
◆ _original_options
| homeassistant.components.onvif.device.ONVIFDevice._original_options |
|
private |
◆ capabilities
| homeassistant.components.onvif.device.ONVIFDevice.capabilities |
◆ device
| homeassistant.components.onvif.device.ONVIFDevice.device |
◆ events
| homeassistant.components.onvif.device.ONVIFDevice.events |
◆ info
| homeassistant.components.onvif.device.ONVIFDevice.info |
◆ max_resolution
| homeassistant.components.onvif.device.ONVIFDevice.max_resolution |
◆ onvif_capabilities
| homeassistant.components.onvif.device.ONVIFDevice.onvif_capabilities |
◆ profiles
| homeassistant.components.onvif.device.ONVIFDevice.profiles |
The documentation for this class was generated from the following file:
- core/homeassistant/components/onvif/device.py