Homekit Integration, Zoneminder, Cameras

Hello,
I have been waiting for this feature for a long time now, actually so long I kinda forgot about it. I just updated my HA docker the other day and started browsing integrations again. I noticed HomeKit has been updated and added camera support!

My Zoneminder cameras show in HA perfectly, just as always. I enabled the HomeKit integration, and opened the Home app on my phone, scanned the qr code and the HASS Bridge was added along with all of my devices, except for the cameras…

I made sure that the HomeKit integration had cameras enabled:

There are no errors in my log file.

I rebuilt my config from scratch because it had been a long time since I updated. Here is what it looks like now:

# Configure a default setup of Home Assistant (frontend, api, etc)                                            
default_config:                                                                                               
                                                                                                              
# Text to speech                                                                                              
tts:                                                                                                          
  - platform: google_translate                                                                                
                                                                                                              
group: !include groups.yaml                                                                                   
automation: !include automations.yaml                                                                         
script: !include scripts.yaml                                                                                 
scene: !include scenes.yaml                                                                                   
                                                                                                              
zoneminder:                                                                                                   
  - host: 192.168.1.79                                                                                        
                                                                                                              
camera:                                                                                                       
  - platform: zoneminder                                                                                      
                                                                                                              
switch:                                                                                                       
 - platform: command_line                                                                                     
   switches:                                                                                                  
     maingaragedoor:                                                                                          
       command_on: "curl -X POST http://192.168.1.184:3000/garageDoorCommand/0"                               
       command_off: "curl -X POST http://192.168.1.184:3000/garageDoorCommand/0"                              
       friendly_name: Main Garage Door                                                                        
     talongaragedoor:                                                                                         
       command_on: "curl -X POST http://192.168.1.184:3000/garageDoorCommand/1"                               
       command_off: "curl -X POST http://192.168.1.184:3000/garageDoorCommand/1"                              
       friendly_name: Talon Garage Door                                                                       
                                                                                                              
sensor:                                                                                                       
  - platform: rest                                                                                            
    name: Garage Sensor                                                                                       
    json_attributes:                                                                                          
      - temperature                                                                                           
      - humidity                                                                                              
    resource: http://192.168.1.184:3000/getWeatherDetails                                                     
    value_template: '{{ value_json.temperature | float * 9/5 + 32}}'                                          
  - platform: template                                                                                        
    sensors:                                                                                                  
      garagetemperature:                                                                                      
        friendly_name: 'Garage Temperature'                                                                   
        unit_of_measurement: 'F'                                                                              
        value_template: '{{ states.sensor.garage_sensor.attributes["temperature"] | float * 9/5 + 32 }}'      
      garagehumidity:                                                                                         
        friendly_name: 'Garage Humidity'                                                                      
        unit_of_measurement: '%'                                                                              
        icon_template:                                                                                        
          mdi:water-percent                                                                                   
        value_template: '{{ states.sensor.garage_sensor.attributes["humidity"] }}'                            

Ok, I got home assistant to setup the cameras for homekit by creating another homekit integration and putting it into accessory mode.

The still frames work, but the “Camera has no stream source”. What does it take to get the homekit integration to setup a stream source for the cameras?

2021-06-24 14:48:43 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
2021-06-24 14:49:30 ERROR (MainThread) [homeassistant.components.homekit.type_cameras] Camera has no stream source
2021-06-24 14:49:30 ERROR (MainThread) [pyhap.camera] [076dac50-2449-4c3f-aa19-e80c6c9f9c7a] Failed to start/reconfigure stream, deleting session.
2021-06-24 14:49:58 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
2021-06-24 14:50:03 ERROR (MainThread) [homeassistant.components.homekit.type_cameras] Camera has no stream source
2021-06-24 14:50:03 ERROR (MainThread) [pyhap.camera] [f1eecefe-6c39-443c-b804-1e6fc399028d] Failed to start/reconfigure stream, deleting session.