UBNT NVR integration

I started with HASsio a few days ago ( wanted to move from domoticz to HASssio).
So i also want to integrate the UBNT UVC option.
The config i added in the config.yaml:

# UBNT camera
camera:
  - platform: uvc
    nvr: 192.168.1.xx
    port: 7443
    key: xxxxxxAPIxxxx
    password: xxxCamerapwdxx

But the cam’s ( 2 in total for now) won’t show up, and HAS is telling me:

Platform uvc not ready yet. Retrying in 180 seconds.

12:25 helpers/entity_platform.py (WARNING) - message first occured at 12:12 and shows up 5 times

NVR refuses to talk to me: Error connecting to camera: P

12:25 components/uvc/camera.py (ERROR) - message first occured at 12:12 and shows up 5 times

Home assistant version : 0.97.2
UBNT NVR version : 3.10.6

Could somebody help me to solve this ?

Anybody ? :wink:

please :blush:

i tried everything within my knowledge , but stil

2019-08-21 15:31:44 ERROR (SyncWorker_7) [homeassistant.components.uvc.camera] NVR refuses to talk to me: Error connecting to camera: P
2019-08-21 15:31:44 WARNING (MainThread) [homeassistant.components.camera] Platform uvc not ready yet. Retrying in 60 seconds.

configuration.yaml:

# UBNT camera
camera:
  - platform: uvc
    nvr: 192.168.1.x
    port: 7443
    password: "secret"
    key: "api secret"

Don’t have these cams and can’t really help with that, but just looking at your example makes me question why you have two single quotes then api secret and then a double quote.
Is this really how you have it in your config?

Thnx for you reply @danbutter , the ’ are just in the post ( because i deleted the original secrets like password and api key , and not in the config itself.
To be clear , i will edit the post

Just to be complete clear, the confoig.yaml is like

camera:
  - platform: uvc
    nvr: IP_ADDRESS
    port: 7443
    password: CAMERA_PWD
    key: API_KEY

nobody else who can help me with this ?
Or maybe can give me some guidance

still didn’t have a solution for this, could somebody please help or assist me ?:innocent:

Disclaimer: I’m a Unifi Protect user so have no knowledge of this component.

Are you connecting with an administrator level Unifi user account?
Do the Unifi Video logs record the access attempt?

PRESTO , got it working.After i deleted the custom port everything is working fine !!

Platform uvc not ready yet. Retrying in 60 seconds.

7:18 PM helpers/entity_platform.py (WARNING)

NVR refuses to talk to me: Failed to contact NVR

7:18 PM components/uvc/camera.py (ERROR) - message first occurred at 7:17 PM and shows up 2 times

What’s you’re config ?

Solved - looked at the python for this. The instructions are WRONG.
the default port is 7443
SSL is on by default
so, all that’s needed is IP address, password and key.

Now have a camera entity, but no video output.

type: picture-entity
entity: camera.uvc_g3_flex
aspect_ratio: 50%
camera_image: camera.uvc_g3_flex
camera_view: live

Solved
the password is the camera’s password (set from within NVR as a default for all cameras) it is not the NVR software password.
Now all working.

Hmm I’m still getting nothing showing and the same errors in the logs as you guys.

Config:

camera:
  - platform: uvc
    nvr: http://192.168.1.xxx
    key: xxAPIKeyxx
    password: xxCameraPasswordxx
    ssl: false

Any ideas?

What’s the port number ?

7443 - I have tried both declaring it and not!

Ok , maybe the rights from the user (API) aren’t correct. They must be admin