Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support adding multiple cameras at once #186

Open
si458 opened this issue Apr 13, 2022 · 5 comments
Open

support adding multiple cameras at once #186

si458 opened this issue Apr 13, 2022 · 5 comments

Comments

@si458
Copy link
Contributor

si458 commented Apr 13, 2022

Is your feature request related to a problem? Please describe.
currently to add all 16 cameras from my DVR to HA , I have to add the integration 16 times!?

Describe the solution you'd like
support adding multiple cameras at first integration
(maybe set camera number to say -1 to let it autodetect how many cameras you have then loop and add them all)

Describe alternatives you've considered
the isnt any really?

Additional context
Add any other context or screenshots about the feature request here.

@earto
Copy link

earto commented Apr 20, 2022

Hi. Firstly, thankyou for the great integration.

I agree with this issue. Added an NVR and was surprised that it didn't create entities for all channels. Previously I used the ONVIF integration which imported the main, sub1, sub2, motion detection etc. for all channels/cameras.

What does "NVR's are the 0 based index" mean (see below)? Can you enter a range like "0-3"?

image

@si458
Copy link
Contributor Author

si458 commented Apr 20, 2022

Hi. Firstly, thankyou for the great integration.

I agree with this issue. Added an NVR and was surprised that it didn't create entities for all channels. Previously I used the ONVIF integration which imported the main, sub1, sub2, motion detection etc. for all channels/cameras.

What does "NVR's are the 0 based index" mean (see below)? Can you enter a range like "0-3"?

image

"NVR's are the 0 based index" basically means the channel numbers start from 0
E.g. channel 1 = 0, channel 2 = 1, channel 3 = 2, etc...

@earto
Copy link

earto commented Apr 20, 2022

Thanks @si458.

I added the same integration multiple times, once for each channel.

Not sure if its due to having multiple integrations but live stream appears much slower compared to the ONVIF integration. Both integrations use the same RTSP and sub-channel 1 which is limited to 5fps and 512Kb/s. The only other difference is that ONVIF RTSP was configured for UDP.

For now, I've reverted to using ONVIF until this supports multiple channels or I can overcome this issue.

Regards, Elton.

@si458
Copy link
Contributor Author

si458 commented Apr 20, 2022

@earto i noticed the sluggshness too and couldnt identify it
but i use this integration because of the tripwire events from our bnc cameras the unit gives off

@ChristBKK
Copy link

ChristBKK commented Apr 27, 2024

I really thank you for this @si458 and @earto even 2 years later this saved me from searching how I add my 8 channels didn't know I have to add the Device 8 times...

For anyone struggling to get only 1 live stream going (1 camera) you need to add each of your channel as a own device under integrations -> dahua -> devices , start with 0 and then 1 , 2, 3, 4, 5, etc

The Readme/Instructions in this Github never mention this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants