WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

Add support for PTZ preset positions

Open carloslebreiro opened this issue 3 years ago • 6 comments

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

carloslebreiro avatar May 12 '21 14:05 carloslebreiro

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.

mgiako avatar Jun 08 '21 22:06 mgiako

PTZ or BUST! ;)

sajikur avatar Jun 09 '21 08:06 sajikur

+1 for this, cherry on cake with 8 possible presets. Maybe a mini keyboard 3x3 with key 1 to 9

wonderiuy avatar Jun 10 '21 06:06 wonderiuy

up for this

hellcry37 avatar Jun 11 '21 11:06 hellcry37

Totally agree, it would be the best have the possibility to use presets.

ecasp-hassio avatar Jul 08 '21 17:07 ecasp-hassio

+1

wowgamr avatar Sep 23 '21 19:09 wowgamr

Latest integration version support shortcuts

AlexxIT avatar Jan 02 '23 13:01 AlexxIT

@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.

SuperMaximus1984 avatar Jan 19 '24 19:01 SuperMaximus1984

@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

twistoflemon avatar Jan 23 '24 21:01 twistoflemon