Advertisement
MKANET

Home Assistant - Onvif Camera PTZ config

Feb 28th, 2024 (edited)
1,139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.71 KB | None | 0 0
  1.  - type: picture-glance
  2.     title: Back Yard
  3.     aspect_ratio: 16x9
  4.     camera_image: camera.back_yard_camera_profile_000
  5.     camera_view: live
  6.     entities:
  7.       - entity: camera.back_yard_camera_profile_000
  8.         tap_action:
  9.           action: call-service
  10.           service: onvif.ptz
  11.           service_data:
  12.             entity_id: camera.back_yard_camera_profile_000
  13.             tilt: UP
  14.             speed: 0.5
  15.             distance: 1
  16.             move_mode: ContinuousMove
  17.         name: UP
  18.         show_state: false
  19.         icon: mdi:arrow-up
  20.         show_icon: true
  21.       - entity: camera.back_yard_camera_profile_000
  22.         tap_action:
  23.           action: call-service
  24.           service: onvif.ptz
  25.           service_data:
  26.             entity_id: camera.back_yard_camera_profile_000
  27.             tilt: DOWN
  28.             speed: 0.5
  29.             distance: 1
  30.             move_mode: ContinuousMove
  31.         name: DOWN
  32.         show_state: false
  33.         icon: mdi:arrow-down
  34.         show_icon: true
  35.       - entity: camera.back_yard_camera_profile_000
  36.         tap_action:
  37.           action: call-service
  38.           service: onvif.ptz
  39.           service_data:
  40.             entity_id: camera.back_yard_camera_profile_000
  41.             pan: LEFT
  42.             speed: 0.5
  43.             distance: 1
  44.             move_mode: ContinuousMove
  45.         name: LEFT
  46.         show_state: false
  47.         icon: mdi:arrow-left
  48.         show_icon: true
  49.       - entity: camera.back_yard_camera_profile_000
  50.         tap_action:
  51.           action: call-service
  52.           service: onvif.ptz
  53.           service_data:
  54.             entity_id: camera.back_yard_camera_profile_000
  55.             pan: RIGHT
  56.             speed: 0.5
  57.             distance: 1
  58.             move_mode: ContinuousMove
  59.         name: RIGHT
  60.         show_state: false
  61.         icon: mdi:arrow-right
  62.         show_icon: true
  63.       - entity: camera.back_yard_camera_profile_000
  64.         tap_action:
  65.           action: call-service
  66.           service: onvif.ptz
  67.           service_data:
  68.             entity_id: camera.back_yard_camera_profile_000
  69.             preset: Position1
  70.             speed: 0.5
  71.             distance: 0.5
  72.             move_mode: GotoPreset
  73.         name: 1
  74.         show_state: false
  75.         icon: mdi:numeric-1-box
  76.         show_icon: true
  77.       - entity: camera.back_yard_camera_profile_000
  78.         tap_action:
  79.           action: call-service
  80.           service: onvif.ptz
  81.           service_data:
  82.             entity_id: camera.back_yard_camera_profile_000
  83.             preset: Position2
  84.             speed: 0.5
  85.             distance: 0.5
  86.             move_mode: GotoPreset
  87.         name: 2
  88.         show_state: false
  89.         icon: mdi:numeric-2-box
  90.         show_icon: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement