Possibility to make SecuritySpy HomeKit compatible?

2

Comments

  • kaps
    edited September 2020
    Cool Ben. Im not sure if this is what you're referring to but there's a number of apps in the App Store that run a homekit server for unsupported homekit accessories eg. https://apps.apple.com/us/app/tpl-bridge/id1441858267?mt=12

    is this what you mean re Apple's acceptance under their rules ?
    Either way, I am assuming that you won't be able to add HSV
  • This is fantastic news I have my fingers crossed you can get some clarification on this being allowed. Personally I think it is such a huge "add on" to SS that buying the app from the Mac App Store would not even bother me.
  • Good point about existing HomeKit apps on the app store. However the ones that I can see there involve the macOS app simulating a HomeKit accessory and making it available to the Home app. As far as I can tell there is nothing that operates in the reverse: making HomeKit devices available for control from other macOS apps, which is what would be needed for SecuritySpy.

    As for HSV (HomeKit Secure Video), I don't think this will be possible to integrate with SecuritySpy unfortunately. As far as I can tell, this is for allowing cameras to record directly to iCloud, for viewing and playback in Apple's Home app only.
  • Up until 10.15 no macOS apps were given access to homekit whereas on iOS there are third party apps that control homekit devices. This is supposed to have changed in 11.0 where third party apps can access homekit. I have been waiting for eg. Home + by Matt which is a fantastic iOS app
  • Good news everyone: we have just released SecuritySpy 5.3, which includes HomeKit integration. You can read about this via the user manual here: SecuritySpy HomeKit Integration. Please provide feedback when you all have had a chance to test this. It does require macOS 11 Big Sur, but I'm afraid there is no way around this.
  • dmg15
    edited November 2020
    Would it be possible to have Security Spy mimic a seperate Homekit compatible IP camera for each camera feed? So when web server is enabled, you can go to the iOS home app and add an new accessory/device that home thinks is a physical camera but its actually a feed from ss?

    The goal is to be able to show a feed on an AppleTV using picture in picture, so you can check the front door camera without interrupting the movie.

    Maybe adding PIP support to the tvos app is a simpler solution? However, I’m yet to discover any 3rd party app with PIP capability so maybe it isn’t simple at all.
  • @dmg15 - no, unfortunately this functionality is not possible. The current HomeKit integration is about Triggers and Actions: starting recording based on HomeKit events (e.g. "if switch X turns on, start recording in camera Y"), or setting the state of HomeKit accessories based on camera events (e.g. "if motion is detected in camera Y, turn on light Z").
  • Thanks a lot Ben. Will test it out. Glad you said it requires Big Sur and not M1 ;)
  • The only way to get live feeds of non Apple HomeKit certified cameras into HomeKit is by using HomeBridge.

    There are multiple plug-ins available that can take live feeds directly from cameras and have them appear as native HomeKit camera feeds for live viewing/thumbnails, and even Doorbell simulation.

    Typically, a Raspberry Pi is used and the heavy-lifting is done by ffmpeg plug-ins that transcode into a stream that HomeKit accepts.

    I haven't used this myself; but as there is a decent HomeBridge setup for Ubiquiti Unifi cameras (which I use), it's on my list to try one of these days.

    Note that this only provides basic/regular HomeKit camera support. At this time, and maybe forever, no third party has any bridge or emulation that brings a non-HomeKit camera into HomeKit Secure Video (HSV).

    Most IP cameras will allow multiple clients pulling live video, so you should be able to have both SecuritySpy and HomeBridge pulling the video from a camera simultaneously. SS would provide the recording and advanced features, while HomeBridge lets HomeKit have live viewing and basic features within the Apple Home App (or 3rd party apps like HomeCam).
  • Ben, I'm unable to upgrade the machine running SS to MacOS 11 for now, so I can't see the answer for myself yet... My hope for Homekit integration was to be able to control actions and notifications. So for example, a camera faces our shop door outside, and another inside. If the door has been opened via Homekit, than turn off notifications from both cameras. So basically only notify and do actions when the door is closed, making it sort of an alarm system. When the door is open there would be multiple people in/out making the notifications and actions annoying.

    Another use that I think would be pretty standard is to alert or run actions on any indoor camera only if the Homekit alarm system has been set to away mode.
  • doodah
    edited November 2020
    I updated my Mac mini and installed HomeHelper. Working very well. Thanks Ben! Nice update to SS. Nice implementation to hook SS up to HomeKit.
  • Ben
    Ben
    edited November 2020
    @doodah - great to hear that, thanks for reporting back!

    @calvarez - what you describe is exactly what SecuritySpy's new HomeKit features can do. I hope you will be able to update to Big Sur in the near future to take advantage of the new features.

    And @Spiv's info is all correct. There is no official way for us to make SecuritySpy's cameras available to HomeKit - the only sanctioned HomeKit accessories allowed by Apple are hardware devices from manufacturers who have been through a strict certification process. Most IP cameras can indeed provide multiple streams, so you can have one going to SecuritySpy and another to HomeBridge.
  • Great! SS runs on a Hackintosh, so upgrades are scary. I will be getting a Mini M1 but have to wait for a custom order to get 16GB.

    For those considering Homebridge, I've been using it for many years and many iterations. I'm a Linux/VoIP admin by trade though, so that helps, but honestly HB has become so much easier to install and use lately. And there is a HOOBS package where it's pretty much all done for you. Good as far as easy, but possibly bad because it's kind of a black box and some people who have issues then have a seemingly difficult time with it.

    I have a Pi4 2GB running on PoE in the network closet. It is bridging a bunch of accessories as well as 7 cameras. The CPU runs at only 3-5% while idle and under 10% when streaming a 4k camera. So it's super efficient. It's also our ad-blocking DNS server and does a few other things like managing the Ubiquiti network devices. So much power for so little money. It has been 100% reliable and stable for years.

    So for the cost I'd tell people to go for it, give it a try.
  • Ben,

    Just upgraded to Big Sur and also downloaded the "HomeHelper" app to try and setup some triggers for HomeKit.

    One problem (and a small typo bug):

    The list of HomeKit devices is only a small subset of my total devices. I saw that 1.0.1 was supposed to make for a scrollable list (and this is the version I have) - but it's not working for me. Just shows the number of devices (in some 'random' order too) that fit in the dialog with no option to scroll to see more. As luck would have it the devices I need are NOT in the list I can see.

    Also, just FYI there is a small typo bug. In the explanatory text it says "No tiggers are configured - click here to add one". Should be triggers not tiggers :-)

    I know you'll get these little niggling issues sorted out quickly enough. Definitely appreciate the features and looking forward to trying it once I can select the devices I need.

    -Cameron
  • Hi @CameronB thanks for your feedback. We'll get that annoying spelling error fixed!

    As for the list of accessories, this is grouped by room, and is definitely now scrollable, so if the list is too big to fit on the screen then you should be able to scroll up/down. However note that HomeHelper only currently supports certain types of accessories, as follows:

    - Anything with a power state (e.g. power output, switch)
    - Anything with an input/contact state (e.g. a sensor)
    - Occupancy detectors
    - Security systems
    - Anything with a brightness (e.g. lightbulb).

    What are the types of accessories that you can't see in HomeHelper's list?

    Does the list actually go to the bottom of your screen (i.e. it looks like it's cut off)?
  • Ben,

    I see a total of 16 items. There is no scroll bar and neither the mouse nor the arrow keyboard keys 'scroll'. So either it isn't scrolling...or...it is missing some items that should be there.

    Thanks for letting me know that not every HomeKit device is supported. So that explains why things like the garage door opener and sprinkler controller isn't showing up.

    The main device I am looking for and not seeing is an external motion sensor (by Hue).

    Maybe there is an issue because it is a bridged accessory (through the Hue bridge)?
  • Hi @CameronB I can only assume that this accessory makes available services that HomeHelper does not currently support. This is surprising, as the motion sensor should provide a simple switched output, and HomeHelper does support all accessories that have switched outputs.

    I will email you directly with some instructions on how we can set up a test version of HomeHelper on your machine, so we can get some debugging information that will allow us to get to the bottom of this. It should be possible to add support for this device once we know what's going wrong.
  • Thanks Ben. I'll look forward to your email and trying to figure this out. The actual sensor is this one: https://www.philips-hue.com/en-us/p/hue-outdoor-sensor/046677541736 which, as I mentioned, is a bridged accessory. Hopefully we can figure it out offline.

    To make this at least a *little* interesting for everyone else reading this, I have tried at least three different motion detectors and the Hue one is by FAR the best. It is instantly reactive (though you can adjust the sensitivity), is weatherproof, also provides light reading (in lux) and accurate temperature readings and best of all SIPS battery. I have had one installed near the front door for at least 6 months and the battery still reads 100%. All for $50. Recommended.
  • Unfortunately, my scenario doesn't actually work because the garage door controllers are not available in HK Helper. They just don't show up. I have a shop full of equipment with a camera inside and a camera outside. Motion detection and triggers are on both. When the door is opened via HK, would like to turn off the actions and notifications, since people may be moving supplies in and out for hours. The alerts are annoying and useless. Any idea why these devices aren't in the helper?
  • Hi @calvarez we should be able to add this. Please reply to the email I just sent you, and we'll get a test version of HomeHelper to you to investigate this.
  • Hey guys, from my understanding, the helper allows automations. Are we able to see the camera feeds in the home app and do any of the notifications eg. alerts work via the home app
    Thanks
  • Doesn't look like this is supported (@kaps).

    Ben, you should consider doing a HomeBridge plugin - someone made a great one for my Unifi Protect system (2 systems ago) that pulled all camera feeds into Home app with a single plugin and login to Unify system (using a dedicated local/limited user account). It was sleek and simple to instal with no config (code lines) necessary.
  • We have heard from users who have successfully integrated their SecuritySpy cameras into HomeKit via Homebridge and this SecuritySpy Homebridge FFmpeg configuration.
  • wow. you really have thought of everything. not sure why I couldn't find this on my search, but this looks perfect.
  • jimmyjohnson
    edited August 2021
    wonder if anyone who has this working can share their URL. not getting it to work here. First question, where can we find camera number? even trying a few random numbers didn't work. substituting with name didn't work. tried http and https (with correct port). tried ++video. tried -re switch as well.

    edit: got it working. not sure what helped, really.
  • Good to hear you got it working. You can see camera numbers in the Camera Info window - click the header bar where you see the column names for a menu that allows you to add this column.
  • Hey guys, from my understanding, the helper allows automations. Are we able to see the camera feeds in the home app and do any of the notifications eg. alerts work via the home app
    Thanks
  • kaps
    edited September 2021
    The project below may be of interest to people in this thread. By implementing scrypted into Homebridge, the author has enabled HKSV for unsupported cameras
    https://github.com/homebridge/HAP-NodeJS/pull/904
  • wave1systems
    edited October 2021
    this works, other examples help me get here:

    {
    "platform": "Camera-ffmpeg",
    "cameras": [
    {
    "name": "Camera 1",
    "videoConfig": {
    "source": "-re -i http://user:password@ip_of_securityspy:8000/++video?cameraNum=0",
    "stillImageSource": "-i http://user:password@ip_of_securityspy:8000/++image?cameraNum=0",
    "maxStreams": 1,
    "maxWidth": 1920,
    "maxHeight": 1080,
    "maxFPS": 25
    }
    },
    {
    "name": "Camera 2",
    "videoConfig": {
    "source": "-re -i http://user:password@ip_of_securityspy:8000/++video?cameraNum=1",
    "stillImageSource": "-i http://user:password@ip_of_securityspy:8000/++image?cameraNum=1",
    "maxStreams": 1,
    "maxWidth": 1920,
    "maxHeight": 1080,
    "maxFPS": 25
    }
    },
    {
    "name": "Camera 3",
    "videoConfig": {
    "source": "-re -i http://user:password@ip_of_securityspy:8000/++video?cameraNum=2",
    "stillImageSource": "-i http://user:password@ip_of_securityspy:8000/++image?cameraNum=2",
    "maxStreams": 1,
    "maxWidth": 1920,
    "maxHeight": 1080,
    "maxFPS": 25
    }
    },
    {
    "name": "Camera 4",
    "videoConfig": {
    "source": "-re -i http://user:password@ip_of_securityspy:8000/++video?cameraNum=3",
    "stillImageSource": "-i http://user:password@ip_of_securityspy:8000/++image?cameraNum=3",
    "maxStreams": 1,
    "maxWidth": 1920,
    "maxHeight": 1080,
    "maxFPS": 25
    }
    }
    ]
    }
  • Is there an update planned for HomeKit Helper that’ll work the opposite?


    right now I can trigger stuff in Security Spy based on a HomeKit device.

    But I want to trigger a HomeKit device when something happens in Security Spy. Ie; motion in the driveway cam, turn on the outdoor lights.

    I’m doing this via Indigo now, but I’d like to wain off of Indigo, given how stale their product updates have been for the last handful of years.