Skip to content

[Wiki] PTZ Config Examples for ONVIF need update #929

@iKaew

Description

@iKaew

The example of PTZ control for ONVIF does not work with current version. The service seems required speed value.

To get example work, it may need to update to following data

ONVIF

Integration

type: 'custom:webrtc-camera'
entity: ...
ptz:
  service: onvif.ptz
  data_left:
    entity_id: ...
    pan: LEFT
    speed: 1
  data_right:
    entity_id: ...
    pan: RIGHT
    speed: 1
  data_up:
    entity_id: ...
    tilt: UP
    speed: 1
  data_down:
    entity_id: ...
    tilt: DOWN
    speed: 1
  data_zoom_in: # optional, for zoom increase
    entity_id: ...
    zoom: ZOOM_IN
    speed: 1
  data_zoom_out: # optional, for zoom decrease
    entity_id: ...
    zoom: ZOOM_OUT
    speed: 1

And may better to put the example of Home preset as well

  data_home:
    entity_id: ...
    preset: "1"
    move_mode: GotoPreset

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions