Closed mrand closed 3 years ago
Thanks a lot for your report. It looks like some connection problems with the camera. Could this be the main cause? For streaming, I actually use some code many other components also use.
Yes, there may very well be a connection problem - but I went ahead and opened the issues in the hopes that the handling of those could be made more robust (since, after all, connection problems could occur for any number of reasons).
If I change the error to info or debug, the log will stay clean. The camera will reconnect by itself every minute, so when the camera is well connected the problem will be solved by the integration. I have a camera reboot scheduled in the Reolink web interface, and every day again the integration is working.
This issue should be in the Reolink_dev repository, since this is the repository for the Reolink Python package.
Describe the bug Looks like there is an unhandled exception, at a minimum.
More generally, the integration only displays a live feed for a few minutes for me, before the image goes away and I start getting error messages in the log.
To Reproduce Manually installed HA integration from the files in the HA pull request. I'm using 5 GHz wifi to the 511W, so there might be small periods of times where it drops out, although I ran with vlc last night for quite a while and it seemed perfectly fine before adding the reolink integration.
configuration.yaml config for this:
Expected behavior No tracebacks generated
Environment: Please provide useful information about your environment, like:
Additional context
Looking a the traceback closer, I'm not sure if the proper way to handle this is to filter out exceptional values so that the stream component doesn't see them, or if it's actually a problem with the stream component (in which case, if you can figure out how to fix it, I'm sure core would appreciate a PR).