I use camera component with zoneminder.
When someone at home, the camera itself is physically off (smart switch stops providing its power) and I also turn off the ‘monitor’ in zoneminder using its API.
However, during this time, HA gets lots of errors:
2018-01-10 10:47:12 ERROR (MainThread) [homeassistant.components.camera.mjpeg] Error getting new camera image: RawResponseMessage(version=HttpVersion(major=1, minor=0), code=200, reason='OK', headers=<CIMultiDict('Server': 'ZoneMinder Video Server/1.30.4', 'Expires': 'Mon, 26 Jul 1997 05:00:00 GMT', 'Last-Modified': 'Wed, 10 Jan 2018 08:47:12 GMT', 'Cache-Control': 'no-store, no-cache, must-revalidate', 'Cache-Control': 'post-check=0, pre-check=0', 'Pragma': 'no-cache')>, raw_headers=((b'Server', b'ZoneMinder Video Server/1.30.4'), (b'Expires', b'Mon, 26 Jul 1997 05:00:00 GMT'), (b'Last-Modified', b'Wed, 10 Jan 2018 08:47:12 GMT'), (b'Cache-Control', b'no-store, no-cache, must-revalidate'), (b'Cache-Control', b'post-check=0, pre-check=0'), (b'Pragma', b'no-cache')), should_close=True, compression=None, upgrade=False, chunked=False)
The more annoying issue is when HA starts and the camera isn’t active, the camera won’t show on HA interface and even after I’ll turn in ON via zoneminder it won’t show on HA until I restart HA server.