I want to know how to know the status of the alarm zone plugin DSCalarm. I want to write a script ex: When this Zone opens, my lights on with python.
I tried with this script but it does not work. surely this is a cause of custom states and it is a value open closet.
lamp = indigo.devices[1133344481]
if hasattr(lamp, 'onState'):
isOn = lamp.onState
if not lamp.onState:
indigo.device.turnOn(34387386)