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

Motion alerts stop working after NVR restarts #42

Open
longzheng opened this issue Nov 8, 2022 · 0 comments · May be fixed by #45
Open

Motion alerts stop working after NVR restarts #42

longzheng opened this issue Nov 8, 2022 · 0 comments · May be fixed by #45

Comments

@longzheng
Copy link
Contributor

I have yet to debug this myself but just making a quick note here in case anyone else has also experienced this.

I've configured my Dahua NVR to do a daily automatic restart and I've noticed after the restart I no longer see any motion alerts coming through this plugin.

I suspect there is a bug with the disconnect/reconnect behaviour that's preventing the plugin from reconnecting to the NVR after the restart is completed and obviously no longer receives any further motion events.

Glancing at the source code quickly I do see some reconnect behaviour in the error and end events https://github.com/kushagharahi/homebridge-dahua-alerts/blob/main/src/dahua.ts#L92-L100 but none for the close event https://github.com/kushagharahi/homebridge-dahua-alerts/blob/main/src/dahua.ts#L88

I'm not 100% sure yet which event my restart would be triggering but that will be the first thing I debug when I have some time soon.

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