I was a little lost as to where to post this, but since it looks like the issue is isolated to hassio rather than Home Assistant, HomeKit or MotionEye it looks like this is the best place to start.
I have a webcam configured in the motioneye add on that shows correctly in Home Assistant using the following snippet from my configuration.yaml:
I can use the HomeKit integration to get this camera to show in my Home apps, and it shows a single frame as the preview. I donāt have native h264 stream support enabled for this camera. However when I open it from the Home app, it loads indefinitely, and I get the following errors in my home assistant logs:
2021-01-28 12:16:58 ERROR (MainThread) [homeassistant.components.homekit.type_cameras] Camera has no stream source
2021-01-28 12:16:58 ERROR (MainThread) [pyhap.camera] [dd6a0653-89a8-4447-b51f-ad2135c5f189] Failed to start/reconfigure stream, deleting session.
2021-01-28 12:17:17 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyhap/camera.py", line 600, in _stop_stream
stream_idx = session_info['stream_idx']
TypeError: 'NoneType' object is not subscriptable
Does anyone know how I can fix this? Iām not sure if itās an outdated library in the version of hassio Iām running, or how to confirm this / update it. Iām running Home Assistant OS 5.10 in a VM hosted from an Unraid server, the webcam is passed through but Iāve had no other troubles with my configuration. This issue persists on a fresh install of Hassio too, which I found out hard way after overloading my UPS and ending up with a corrupt virtual disk
If this is in the wrong place, please let me know, otherwise Iād appreciate any help I can get
Iāve got the exact same issue. I have several camera streams working in HA. The Picture Entity card in Lovelace works just fine. Whether I use the RTSP stream direlty, or the MJPEG feed from MotionEye, attempting to view the camera streams in Home.app (vie the HomeKit integration bridge) fails with the same errors in the Core log:
2021-03-24 06:30:52 ERROR (MainThread) [homeassistant.components.homekit.type_cameras] Camera has no stream source
2021-03-24 06:30:52 ERROR (MainThread) [pyhap.camera] [e6c19267-5f25-4ee4-a032-300720480f21] Failed to start/reconfigure stream, deleting session.
2021-03-24 06:31:22 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyhap/camera.py", line 599, in _stop_stream
stream_idx = session_info['stream_idx']
TypeError: 'NoneType' object is not subscriptable
Wow, I forgot about this. I gave up trying to get it working a few days after my post. Hopefully, someone has an answer for us because Iād love to have the feature working.
I have the same problem with the eufy-security add-on. I can get streams within HA, but once I use the Home.app I get the same error back in HA of āstream source not foundā.
the file custom/homekit/bridges.yaml defines a bridge for the defined camera.eingang entity, and also sets some homebridge camera specific settings, like the stream source (again) and the doorbell entity.