- Posted on
Tue Nov 27, 2018 7:05 pm
-
ac4lt
offline
-
- Posts: 74
- Joined: Sep 20, 2015
I do a similar thing. You can't use the ad2usb zone devices directly. They aren't in a format that HomeKit bridge understands. I use the Masquerade plugin to create a device that's in the form that HomeKit-bridge can deal with. For example, I have an ad2usb device named "Front Door (ad2usb)". I create a masquerade device that is an "on/off sensor device" set up like this:
- Select Plugin: AD2USB Alarm Interface
- Device to Masquerade: Front Door (AD2USB)
- State to Masquerade: zoneState
- Match String: Clear
- Reverse match logic: checked
- Sensor type: generic
This accurately mirrors the fault/clear value of the zoneState property as a boolean on/off state. Curiously I tried masquerading with a match string of "Fault" and glaring the reverse match logic check box and it didn't work. Since the reverse did work I didn't spend a lot of time to understand why.
Next, in HomeKit-bridge I add in device "Front Door (HomeKit)" aliased as "Front Door" with a contact sensor type. I also have invert state checked otherwise it shows up in HomeKit backwards though it is correct in Indigo.
Hope that helps!