First of all, I apologize if this is user error... I've been working on this for over 4 hours and have poured over the documentation and forums (examples below) to try to figure out if I was making a mistake. I'm a semi-new to all this so totally possible I've missed something and I apologize in advance.
https://github.com/Colorado4Wheeler/Hom ... Quickstart
https://github.com/Colorado4Wheeler/Hom ... ra-Support
viewtopic.php?f=201&t=22522&p=177981#p177981
viewtopic.php?f=201&t=20828&p=166389&hilit=add+camera#p166389
All that being said, I think I've got everything set up correct and yet I cannot get the following to work. I'm trying to get a camera from my SecuritySpy setup into Indigo 7.3 and then into HomeKit via (the excellent) HomeKit Bridge plugin. I'm currently doing all this with separate test Indigo/SecuritySpy setups so no chance to hose my actual home setup (safety first!)
Here's a high-level overview: (see numbered attached screenshots for reference as well)
1. UniFi camera streams via RTSP to SecuritySpy (all good there)
2. Indigo 7.3 and SecuritySpy run on the same Mac server
3. Cynical SecuritySpy plugin installed and running in Indigo has a "server" and "camera" devices added in Indigo (believe I have the Cynical plugin setup correct as when I go to add a new "camera" device in Indigo it seems my existing SecuritySpy cameras so think I'm good there)
4. HomeKit Bridge plugin installed and running in Indigo with my "camera" device (added via the Cynical SecuritySpy plugin) added to be visible in HomeKit
5. All 3 devices in Indigo are enabled (see screenshot)
6. On my iPhone I am able to add the HomeKit Bridge via the Home App while using the HomeKit code provided by the plugin in Indigo
7. The bridge is added but notes that "Additional Setup Required" when it's added (seems strange but okay...)
8. The settings of the bridge in the Home app all look correct
9. I know cameras need to be added to the Home App individually so going back to add another Accessory I choose "Enter code..." and enter the HomeKit code provided by the plugin in Indigo again
10. Unfortunately no camera accessories are visible and the Home App just spins but never finds them
So I'm posting here in the HomeKit Bridge forum because I think my problem is somewhere with my bridge because it seems like my Security Spy camera is correctly in Indigo. With Debug enabled for Indigo logging I see the following HomeKit Bridge Error: (my SecuritySpy username, port and password redacted for obvious reasons)
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4539: HTTPConnectionPool(host='REDACTEDUSERNAME', port=XX): Max retries exceeded with url: REDACTEDPASSWORD@localhost:8000/++systemInfo (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x1118c0390>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))
CODE: data = requests.get(ssSystem).content# Pull XML data
Which seems to indicate that it’s something with the communication between Indigo and SecuritySpy however this seems unlikely (at least to me) as my camera’s name from SecuritySpy auto-populates when I add it as a “camera” device when using the Cynical plugin.
When Google searching this error it turns up this page from GitHub which seems to indicate it's a "race condition" (though I'm not sure what that is):
https://github.com/Colorado4Wheeler/Hom ... /issues/96
The comments there (which maybe/probably don’t apply) sound like maybe a restart of my Mac would solve the problem but alas that has no effect either.
So yeah... I'm in need of some help if anyone has any ideas...