AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.35k stars 161 forks source link

PTZ ONVIF ZOOM #183

Open gzichittella opened 2 years ago

gzichittella commented 2 years ago

Hi there, I'm successfully using your cool integration with with my Victure PC730 (v 3.17) ONVIF cams but unfortunately I can't set ONVIF ZOOM as you suggested in your wiki:

This is the configuration I set for my cam:

type: custom:webrtc-camera
entity: camera.cam_cancello_fixedprofilea01
ptz:
  service: onvif.ptz
  data_zoom_in:
    entity_id: camera.cam_cancello_fixedprofilea01
    zoom: ZOOM_IN
  data_zoom_out:
    entity_id: camera.cam_cancello_fixedprofilea01
    zoom: ZOOM_OUT

When I click on "plus" button I get this error: "onvif/ptz service call" NoneType object has no attribute value

Any idea?

Kind regards.

gzichittella commented 2 years ago

Any updates :( Any tips?

AlexxIT commented 2 years ago

Are you using the latest version of the component?

gzichittella commented 2 years ago

Hi Alex, I was running 2.1.1 . Now I updated to 2.2.0 and the configuration above is not working on Victure PC730 (firmware v. 3.17). It is still showing the same error message: "onvif/ptz service call" NoneType object has no attribute value

I tried the same code on a TP-Link Tapo C310. It is not showing any error message but it's not zooming either.

Could it be a problem with my ONVIF integration? I'm running "home assistant supvervised ver: core-2021.9.5"

MiAutomations commented 2 years ago

I'm facing a similar issue with the Zoom in the Imou/Dahua cameras when I press + Or - in zoom nothing happens ...