moritzmhmk / homebridge-camera-rpi

raspberry pi camera plugin for homebridge
MIT License
159 stars 29 forks source link

Random no stream hang up with picameras #22

Closed tokamac closed 6 years ago

tokamac commented 6 years ago

Sometimes picamera does not properly hang up after closing the video stream and stays on (red LED still on). As only one single stream can be accessed at a time (what a limitation!) this prevents the picamera from being used again. When it happens, the only solution is to reboot the rpi, sometimes even to power-cycle it (disconnecting and reconnecting the plug from the electrical outlet).

This is not a problem caused by homebridge-camera-pi itself, as this issue occurs randomly for any picamera on any system. But if you could implement some automatic hang-up of the stream after a given amount of time (a quantity preferably customizable by the user) it would prevent this problem I think.

moritzmhmk commented 6 years ago

Can you provide more information on this? I did not experience this with my setup - but I powercycle my devices daily...