Custom alarm system and HomeKit Bridge

Posted on
Sat Nov 14, 2020 2:12 pm
boisy offline
User avatar
Posts: 144
Joined: Jun 25, 2013

Custom alarm system and HomeKit Bridge

Hi everybody,

I’m working on a “roll-your-own” Arduino-based alarm system for a new construction project. Currently I’m monitoring a magnetic door sensor and this works fine. The Arduino uses an ethernet shield and uses UDP to broadcast the state of the door (open/close) as it happens. I also have a 12V siren that I can turn on and off using a simple HTTP GET with a parameter (e.g. http://192.168.0.30?s=1 to turn on the siren, and http://192.168.0.30?s=0 to turn it off).

On my Mac, I’m running Indigo and wrote a Python-based plug-in to read the UDP broadcast packet and a simple web server to handle the siren. I added a device for the door and the siren, and both show up fine and work great..

I also added the door state into HomeKit Bridge as a "Door" and it also shows up fine in the Home app.

Now, I want to take this to the next level. I want HomeKit Bridge to see these two devices as part of a security system.

I see the option in the HomeKit Bridge dialog to set a device as type "Security System" but it's unclear to me how this maps to an Indigo device. Is there some guidance I can get on how to do this?

Posted on
Sat Nov 14, 2020 2:34 pm
FlyingDiver offline
User avatar
Posts: 5321
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Custom alarm system and HomeKit Bridge

FYI _ I already had a UDP Listener plugin in the store. http://www.indigodomo.com/pluginstore/215/

;)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 15, 2020 7:47 am
boisy offline
User avatar
Posts: 144
Joined: Jun 25, 2013

Re: Custom alarm system and HomeKit Bridge

Heh, cool! I just downloaded it and tried it (had to disable my custom plug-in) and sure enough, it sees the JSON message that is sent when the door opens and closes. Thanks for writing this!

Posted on
Sun Nov 15, 2020 7:55 am
FlyingDiver offline
User avatar
Posts: 5321
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Custom alarm system and HomeKit Bridge

Also, if the web server is on your Indigo Mac, there's an HTTPd plugin in the store as well. Use the HTTPd 2 plugin, as the older one is deprecated now.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest