WebRTC
WebRTC copied to clipboard
Add support for PTZ preset positions
Hi, it would be nice to besides the up/down/left/right/zoom in/zoom out also to have the possibility to select presets (up to 6). I'm using the PTZ service with the following data:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.mainprofile
preset: Preset1
speed: 1
distance: 0.5
move_mode: GotoPreset
Hi, I like this integration. PTZ presets would be the icing on the cake! Actually I'm using picture-elements card with the same parameters as above. is there any hope that they will be integrated? Thanks in advance.
PTZ or BUST! ;)
+1 for this, cherry on cake with 8 possible presets. Maybe a mini keyboard 3x3 with key 1 to 9
up for this
Totally agree, it would be the best have the possibility to use presets.
+1
Latest integration version support shortcuts
@AlexxIT please help with creating a shortcut for PTZ camera preset:
In my webrtc custom card I have this shortcut:
shortcuts:
- name: Home
icon: mdi:home
service: onvif.ptz
data:
preset: '2'
move_mode: GotoPreset
target:
entity_id: camera.axis_q6125_le_profile_1_h264
While pressing the designated icon I get:
Failed to call service onvif/ptz. must contain at least one of entity_id, device_id, area_id
When a separate service execution with this code from HA Developer Tools runs smoothly:
service: onvif.ptz
data:
preset: "2"
move_mode: GotoPreset
target:
entity_id: camera.axis_q6125_le_profile_1_h264
Tried to use without "target", receiving the same above error.
@AlexxIT please help with creating a shortcut for PTZ camera preset:
In my webrtc custom card I have this shortcut:
shortcuts: - name: Home icon: mdi:home service: onvif.ptz data: preset: '2' move_mode: GotoPreset target: entity_id: camera.axis_q6125_le_profile_1_h264
While pressing the designated icon I get:
Failed to call service onvif/ptz. must contain at least one of entity_id, device_id, area_id
When a separate service execution with this code from HA Developer Tools runs smoothly:
service: onvif.ptz data: preset: "2" move_mode: GotoPreset target: entity_id: camera.axis_q6125_le_profile_1_h264
Tried to use without "target", receiving the same above error.
shortcuts:
- name: driveway icon: mdi:numeric-2-circle service: onvif.ptz service_data: entity_id: camera.osiris_onvif_mainstream preset: 2 move_mode: GotoPreset