DSC alarm zones

A plugin to integration Indigo devices into HomeKit (and Siri)
Monstergerm
Posts: 302
Joined: Tue Sep 01, 2009 1:47 pm

DSC alarm zones

Post by Monstergerm »

I am also testing now adding DSC zones and DSC keypads.

First thing I noticed is that under the default settings, any DSC zone added as default "Security" device type will become a DSC keypad, which is not what one wants and it causes a KeyError in the plugin.

I seem to be able to override this by selecting "Show all options" and then selecting e.g. contact sensor or occupancy sensor as device type. Contact sensor devices can then later be changed to window or door in the Home app. So this seems to work nicely. But, when open a zone, Home app does not show the zone as open. What is wrong here? I did not select anything under Device State in the setup since I got an error message with what I thought should be selected:
ContactSensorState: value=closed is not a numeric value.
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: DSC alarm zones

Post by GlennNZ »

There is no support for DSC Zones, nor is there support for every plugin custom device type. Nor will there be.

A contact sensor or a occupancy sensor (or for a zone I would suggest a motion sensor is best fit) - as per the instructions - need to have a TRUE FALSE value only. Anything else will cause an error.

If that is not available in the custom device you are trying to squeeze into Homekit it will not work. If there is a true / false representative of the zone state as a custom state in the DSC zone - then you can use that as the user selected state.

Alternatively you can create a copy of whatever device you are trying to get into Homekit via Masquerade - and then use this more compatible device.

Glenn
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: DSC alarm zones

Post by FlyingDiver »

FWIW, translating alarm zones to on/off sensors was the original purpose of the Masquerade plugin. Then it grew...
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: DSC alarm zones

Post by GlennNZ »

I can't test as don't have hardware - but it would seem if you used the -- may break things -- "show all Options", these are the options shown.

Then select one of the True/False states
state.open == would seem ideal.

Such as here:

Image

That should work for all the T/F sensor devices, hence the open nature of plugin implementation.

Failing that - then Masquerade is excellent.

Glenn
Monstergerm
Posts: 302
Joined: Tue Sep 01, 2009 1:47 pm

Re: DSC alarm zones

Post by Monstergerm »

Great, the boolean selection works.
state.open == False is the correct selection.
state.close == True reports the opposite sensor state.

So this should work with all DSC zones.
Post Reply

Return to “HomeKitLink Siri”