Hi guys,
I am trying to integrate my MIBAO camera into HA. I had to load the “DEV” version in order to get it working at all (with other versions, all I got was “400 - Bad request” error), so at least I get a picture in the dashboard and also get the video stream. However, I cannot get PTZ to work - during boot, I see a warning in the logs:
"WARNING (MainThread) [homeassistant.components.onvif.camera] PTZ is not available on this camera"
The relevant part of the config is:
configuration.yaml:
camera: platform: onvif host: <cam ip> port: 80 # (yeah, non-standard) username: <camuser> password: <campass> name: camname
scripts.yaml:
ptz_tilt_up: sequence: - service: camera.onvif_ptz data: entity_id: 'camera.camname' tilt: 'UP' ptz_tilt_down: sequence: - service: camera.onvif_ptz data: entity_id: 'camera.camname' tilt: 'DOWN' ptz_pan_left: sequence: - service: camera.onvif_ptz data: entity_id: 'camera.camname' pan: 'LEFT' ptz_pan_right: sequence: - service: camera.onvif_ptz data: entity_id: 'camera.camname' pan: 'RIGHT'
Still, the logs say:
INFO (Thread-8) [homeassistant.loader] Loaded onvif from homeassistant.components.onvif INFO (MainThread) [homeassistant.components.camera] Setting up camera.onvif DEBUG (MainThread) [homeassistant.components.onvif.camera] Setting up the ONVIF camera platform DEBUG (MainThread) [homeassistant.components.onvif.camera] Constructing the ONVIFHassCamera DEBUG (MainThread) [homeassistant.components.onvif.camera] Importing dependencies DEBUG (MainThread) [homeassistant.components.onvif.camera] Setting up the ONVIF camera component DEBUG (MainThread) [homeassistant.components.onvif.camera] Setting up the ONVIF camera device @ '<correct_ip_and_port>' DEBUG (MainThread) [homeassistant.components.onvif.camera] Updating service addresses DEBUG (MainThread) [homeassistant.components.onvif.camera] Setting up the ONVIF device management service DEBUG (MainThread) [homeassistant.components.onvif.camera] Retrieving current camera date/time DEBUG (MainThread) [homeassistant.components.onvif.camera] Camera date/time: 2019-05-08 10:25:18+00:00 DEBUG (MainThread) [homeassistant.components.onvif.camera] System date/time: 2019-05-08 10:25:18.280057+00:00 DEBUG (MainThread) [homeassistant.components.onvif.camera] Obtaining input uri DEBUG (MainThread) [homeassistant.components.onvif.camera] Connecting with ONVIF Camera: <ip> on port <port> DEBUG (MainThread) [homeassistant.components.onvif.camera] Retrieving profiles DEBUG (MainThread) [homeassistant.components.onvif.camera] Retrieved '2' profiles DEBUG (MainThread) [homeassistant.components.onvif.camera] Using profile index '0' DEBUG (MainThread) [homeassistant.components.onvif.camera] Retrieving stream uri DEBUG (MainThread) [homeassistant.components.onvif.camera] ONVIF Camera Using the following URL for camname: rtsp://<user>:<password>@<ip>:554/live/ch0 DEBUG (MainThread) [homeassistant.components.onvif.camera] Setting up the ONVIF PTZ service WARNING (MainThread) [homeassistant.components.onvif.camera] PTZ is not available on this camera DEBUG (MainThread) [homeassistant.components.onvif.camera] Camera 'camname' added to hass
Is there anything I can do about it? Onvif Device Manager can do PTZ action on this camera…