Output and alarm control messages

parent 8a3d920e
......@@ -185,6 +185,26 @@ class ParadoxRegisters(Singleton):
def getsupportedItems(self):
return self.registers.supportedItems
def ARM(self, partition):
return REGISTERS.registers.controlAlarm[partition]['ARM']
def DISARM(self, partition):
return REGISTERS.registers.controlAlarm[partition]['DISARM']
def SLEEP(self, partition):
return REGISTERS.registers.controlAlarm[partition]['SLEEP']
def STAY(self, partition):
return REGISTERS.registers.controlAlarm[partition]['STAY']
def ON(self, pgm):
return REGISTERS.registers.controlOutput[pgm]['ON']
def OFF(self, pgm):
return REGISTERS.registers.controlOutput[pgm]['OFF']
def getParadoxEventMap():
return ParadoxEventMap.getInstance()
......
......@@ -20,6 +20,8 @@
#
##############################################################################
from mapping import EVENTMAP, REGISTERS
import ctypes
c_uint8 = ctypes.c_uint8
......@@ -165,5 +167,13 @@ def getPanelName(message):
return str(message[28:36]).strip('\x00')
ARM = REGISTERS.ARM
DISARM = REGISTERS.DISARM
STAY = REGISTERS.STAY
SLEEP = REGISTERS.SLEEP
PGM_ON = REGISTERS.ON
PGM_OFF = REGISTER.OFF
#PGM_CHANGE = REGISTER.CHANGE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment