Hello!
Today I had success ti integrate a Onvif camera into Home Assistant.
It is this camera: https://extrastar-led.de/elektronik-fuer-haushalt/81-960p-hd-wi-fi-ueberwachungskamera-ip-kamera-8432011627501.html
handled by Yoosee-App.
The configuration i used is the following:
configuration.yaml
- platform: onvif
host: IP-address
port: 5000
username: admin
password: Strong password
extra_arguments: -rtsp_flags none -rtsp_transport udp -q:v 2
name: Rundum
It is also possible to us it as an ffmpeg camer with this configuration.yaml entry:
- platform: ffmpeg
input: -rtsp_transport udp -i rtsp://admin:Stron password@IP-address:554/onvif1
extra_arguments: -q:v 2
name: Rundum
I used the following in scripts.yaml:
ptz_tilt_up:
sequence:
- service: camera.onvif_ptz
data:
entity_id: 'camera.Rundum'
tilt: 'UP'
ptz_tilt_down:
sequence:
- service: camera.onvif_ptz
data:
entity_id: 'camera.Rundum'
tilt: 'DOWN'
ptz_pan_left:
sequence:
- service: camera.onvif_ptz
data:
entity_id: 'camera.Rundum'
pan: 'LEFT'
ptz_pan_right:
sequence:
- service: camera.onvif_ptz
data:
entity_id: 'camera.Rundum'
pan: 'RIGHT'
But in the log I only find:
2020-02-19 16:58:51 WARNING (MainThread) [homeassistant.components.onvif.camera] PTZ actions are not supported on camera 'Rundum'
Does someone know how I can use the pan and tilt functions of this camera? Is there any trick to use them?