Custom alarm system and HomeKit Bridge

User avatar
boisy
Posts: 281
Joined: Tue Jun 25, 2013 12:43 pm

Custom alarm system and HomeKit Bridge

Post by boisy »

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?
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Custom alarm system and HomeKit Bridge

Post by FlyingDiver »

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
User avatar
boisy
Posts: 281
Joined: Tue Jun 25, 2013 12:43 pm

Re: Custom alarm system and HomeKit Bridge

Post by boisy »

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!
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Custom alarm system and HomeKit Bridge

Post by FlyingDiver »

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
Post Reply

Return to “HomeKit Bridge”