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

none of the sensors from NVR DHI-NVR5216-16P-I work #255

Open
chali272 opened this issue Jan 5, 2023 · 2 comments
Open

none of the sensors from NVR DHI-NVR5216-16P-I work #255

chali272 opened this issue Jan 5, 2023 · 2 comments

Comments

@chali272
Copy link

chali272 commented Jan 5, 2023

Non of my sensors work from my NVR Device Model | DHI-NVR5216-16P-I
it doesn't matter what camera im using (have many modells) the funny thing is that the switches work for exempel turning on motion detection and so on. and video work, im getting 3 streams from all dahua and imou cameras and 2 from hike cameras.

@buzzzzer
Copy link

buzzzzer commented Jan 18, 2023

DHI-NVR5216-4KS2 the same issue.
binary_sensor.*_motion_alarm does not work
3 streams and all motion-enable switches works
ddms alarm work too

@chali272
Copy link
Author

DHI-NVR5216-4KS2 the same issue. binary_sensor.*_motion_alarm does not work 3 streams and all motion-enable switches works ddms alarm work too

you only need to modify init file in ha, Ha thinks the nvr is a doorbell. go to file editor-/config/custom_components/dahua and open init.py.
modify nr: 522-526 to look like this:

def is_doorbell(self) -> bool:
    """ Returns true if this is a doorbell (VTO) """
    m = self.model.upper()
    """return m.startswith("VTO") or self.is_amcrest_doorbell()"""
    return m.startswith("VTO") or self.is_amcrest_doorbell()

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

2 participants