Skip to content

Caddx Binding ​

The Caddx binding is used for communicating with the Caddx alarm panels. Also known as Interlogix.

It provides connectivity to the NetworX alarm panels via a RS-232 serial connection to the NX-584E interface or directly to the NX-8E.

Supported Things ​

This binding supports the following Thing types

ThingThing TypeDescription
bridgeBridgeThe RS-232 interface.
panelThingThe basic representation of the alarm System.
partitionThingRepresents a controllable area within the alarm system.
zoneThingRepresents a physical device such as a door, window, or motion sensor.
keypadThingRepresents a keypad.

Discovery ​

First the bridge must be manually defined. The serial port, baud rate and protocol have to be set correctly to match the respective configuration of the panel (see below Prerequisites section). After the bridge is manually added and available to openHAB, the binding will automatically start to discover partitions and zones and add them to the discovery inbox.

Note: There is no support to discover the available keypads.

Prerequisites ​

For the binding to work the panel has also to be programmed appropriately.

Programming locations for the NX-8E control panel ​

LocationSegmentValueDescription
20711Serial Port selector
20810 - 4Baud rate table
0 = 2400 Baud
1 = 4800 Baud
2 = 9600 Baud
3 = 19200 Baud
4 = 38400 Baud
2091Off/OnHome automation protocol
1 = Off: Binary. On: ASCII.
21012,5,6,7,8Enabling the Transitions
21021,2,3,4
21112,4,5,6,7,8Programming the Command/Request enables
21121,2,3,4,5(Flags 4 and 5 are not yet functional. Can be ignored.)
2113
21145,7,8
2121192Programming the LCD keypad address.

Programming locations for the NX-584E home automation module ​

LocationSegmentValueDescription
01Off/OnHome automation protocol
1 = Off: Binary. On: ASCII.
110 - 4Baud rate table
0 = 600 Baud
1 = 1200 Baud
2 = 2400 Baud
3 = 4800 Baud
4 = 9600 Baud
5 = 19200 Baud
6 = 38400 Baud
7 = 76800 Baud
212,5,6,7,8Enabling the Transitions
221,2,3,4
312,4,5,6,7,8Programming the Command/Request enables
321,2,3,4,5(Flags 4 and 5 are not yet functional. Can be ignored.)
33
345,7,8
41192Programming the LCD keypad address.

Thing Configuration ​

The things can be configured either through the online configuration utility via discovery, or manually through the configuration file. The following table shows the available configuration parameters for each thing.

ThingConfiguration Parameters
bridgeserialPort - Serial port for the bridge - Required
protocol - Protocol used for the communication (Binary, Ascii) - Required - Default = Binary
baudrate - Baud rate of the bridge - Required - Default = 9600
maxZoneNumber - Maximum zone number to be added during discovery - Required - Default = 16
ignoreZoneStatusTransitions - Ignore Zone Status Transitions - Required - Default = false
partitionpartitionNumber - Partition number (1-8) - Required
zonezoneNumber - Zone number (1-192) - Required
keypadkeypadAddress - Keypad address (192-255) - Required
keypadterminalModeSeconds - The number of Seconds the keypad has to remain in Terminal Mode. - Required

Channels ​

Caddx Alarm things support a variety of channels as seen below in the following table:

ChannelItem TypeTypeDescription
send_CommandStringCommandSend a command to the panel
panel_firmware_versionStringConfigurationFirmware version
panel_log_message_n_0StringRuntimeLog message 10
panel_log_message_n_1StringRuntimeLog message 9
panel_log_message_n_2StringRuntimeLog message 8
panel_log_message_n_3StringRuntimeLog message 7
panel_log_message_n_4StringRuntimeLog message 6
panel_log_message_n_5StringRuntimeLog message 5
panel_log_message_n_6StringRuntimeLog message 4
panel_log_message_n_7StringRuntimeLog message 3
panel_log_message_n_8StringRuntimeLog message 2
panel_log_message_n_9StringRuntimeLog message 1
panel_interface_configuration_messageSwitchConfigurationInterface Configuration Message
panel_zone_status_messageSwitchConfigurationZone Status Message
panel_zones_snapshot_messageSwitchConfigurationZones Snapshot Message
panel_partition_status_messageSwitchConfigurationPartition Status Message
panel_partitions_snapshot_messageSwitchConfigurationPartitions Snapshot Message
panel_system_status_messageSwitchConfigurationSystem Status Message
panel_x10_message_receivedSwitchConfigurationX-10 Message Received
panel_log_event_messageSwitchConfigurationLog Event Message
panel_keypad_message_receivedSwitchConfigurationKeypad Message Received
panel_interface_configuration_requestSwitchConfigurationInterface Configuration Request
panel_zone_name_requestSwitchConfigurationZone Name Request
panel_zone_status_requestSwitchConfigurationZone Status Request
panel_zones_snapshot_requestSwitchConfigurationZones Snapshot Request
panel_partition_status_requestSwitchConfigurationPartition Status Request
panel_partitions_snapshot_requestSwitchConfigurationPartitions Snapshot Request
panel_system_status_requestSwitchConfigurationSystem Status Request
panel_send_x10_messageSwitchConfigurationSend X-10 Message
panel_log_event_requestSwitchConfigurationLog Event Request
panel_send_keypad_text_messageSwitchConfigurationSend Keypad Text Message
panel_keypad_terminal_mode_requestSwitchConfigurationKeypad Terminal Mode Request
panel_program_data_requestSwitchConfigurationProgram Data Request
panel_program_data_commandSwitchConfigurationProgram Data Command
panel_user_information_request_with_pinSwitchConfigurationUser Information Request with PIN
panel_user_information_request_without_pinSwitchConfigurationUser Information Request without PIN
panel_set_user_code_command_with_pinSwitchConfigurationSet User Code Command with PIN
panel_set_user_code_command_without_pinSwitchConfigurationSet User Code Command without PIN
panel_set_user_authorization_command_with_pinSwitchConfigurationSet User Authorization Command with PIN
panel_set_user_authorization_command_without_pinSwitchConfigurationSet User Authorization Command without PIN
panel_store_communication_event_commandSwitchConfigurationStore Communication Event Command
panel_set_clock_calendar_commandSwitchConfigurationSet Clock / Calendar Command
panel_primary_keypad_function_with_pinSwitchConfigurationPrimary Keypad Function with PIN
panel_primary_keypad_function_without_pinSwitchConfigurationPrimary Keypad Function without PIN
panel_secondary_keypad_functionSwitchConfigurationSecondary Keypad Function
panel_zone_bypass_toggleSwitchConfigurationZone Bypass Toggle
panel_ac_failSwitchConfigurationAC fail
panel_ac_power_onSwitchConfigurationAC Power on
panel_low_battery_memorySwitchConfigurationLow Battery Memory
partition_bypass_code_requiredSwitchPartition ConditionBypass code required
partition_fire_troubleSwitchPartition ConditionFire trouble
partition_fireSwitchPartition ConditionFire
partition_pulsing_buzzerSwitchPartition ConditionPulsing Buzzer
partition_tlm_fault_memorySwitchPartition ConditionTLM fault memory
partition_armedSwitchPartition ConditionArmed
partition_instantSwitchPartition ConditionInstant
partition_previous_alarmSwitchPartition ConditionPrevious Alarm
partition_siren_onSwitchPartition ConditionSiren on
partition_steady_siren_onSwitchPartition ConditionSteady siren on
partition_alarm_memorySwitchPartition ConditionAlarm memory
partition_tamperSwitchPartition ConditionTamper
partition_cancel_command_enteredSwitchPartition ConditionCancel command entered
partition_code_enteredSwitchPartition ConditionCode entered
partition_cancel_pendingSwitchPartition ConditionCancel pending
partition_silent_exit_enabledSwitchPartition ConditionSilent exit enabled
partition_entryguardSwitchPartition ConditionEntryguard (stay mode)
partition_chime_mode_onSwitchPartition ConditionChime mode on
partition_entrySwitchPartition ConditionEntry
partition_delay_expiration_warningSwitchPartition ConditionDelay expiration warning
partition_exit1SwitchPartition ConditionExit1
partition_exit2SwitchPartition ConditionExit2
partition_led_extinguishSwitchPartition ConditionLED extinguish
partition_cross_timingSwitchPartition ConditionCross timing
partition_recent_closing_being_timedSwitchPartition ConditionRecent closing being timed
partition_exit_error_triggeredSwitchPartition ConditionExit error triggered
partition_auto_home_inhibitedSwitchPartition ConditionAuto home inhibited
partition_sensor_low_batterySwitchPartition ConditionSensor low battery
partition_sensor_lost_supervisionSwitchPartition ConditionSensor lost supervision
partition_zone_bypassedSwitchPartition ConditionZone bypassed
partition_force_arm_triggered_by_auto_armSwitchPartition ConditionForce arm triggered by auto arm
partition_ready_to_armSwitchPartition ConditionReady to arm
partition_ready_to_force_armSwitchPartition ConditionReady to force arm
partition_valid_pin_acceptedSwitchPartition ConditionValid PIN accepted
partition_chime_onSwitchPartition ConditionChime on (sounding)
partition_error_beepSwitchPartition ConditionError beep (triple beep)
partition_tone_onSwitchPartition ConditionTone on (activation tone)
partition_entry1SwitchPartition ConditionEntry 1
partition_open_periodSwitchPartition ConditionOpen period
partition_alarm_sent_using_phone_number_1SwitchPartition ConditionAlarm sent using phone number 1
partition_alarm_sent_using_phone_number_2SwitchPartition ConditionAlarm sent using phone number 2
partition_alarm_sent_using_phone_number_3SwitchPartition ConditionAlarm sent using phone number 3
partition_cancel_report_is_in_the_stackSwitchPartition ConditionCancel report is in the stack
partition_keyswitch_armedSwitchPartition ConditionKeyswitch armed
partition_delay_trip_in_progressSwitchPartition ConditionDelay Trip in progress (common zone)
partition_secondary_commandNumberCommandPartition Secondary Command
zone_partition2SwitchConfigurationPartition 2
zone_partition3SwitchConfigurationPartition 3
zone_partition1SwitchConfigurationPartition 1
zone_partition4SwitchConfigurationPartition 4
zone_partition5SwitchConfigurationPartition 5
zone_partition6SwitchConfigurationPartition 6
zone_partition7SwitchConfigurationPartition 7
zone_partition8SwitchConfigurationPartition 8
zone_nameStringConfigurationName
zone_fireSwitchConfigurationFire
zone_24hourSwitchConfiguration24 Hour
zone_key_switchSwitchConfigurationKey-switch
zone_followerSwitchConfigurationFollower
zone_entry_exit_delay_1SwitchConfigurationEntry / exit delay 1
zone_entry_exit_delay_2SwitchConfigurationEntry / exit delay 2
zone_interiorSwitchConfigurationInterior
zone_local_onlySwitchConfigurationLocal only
zone_keypad_sounderSwitchConfigurationKeypad Sounder
zone_yelping_sirenSwitchConfigurationYelping siren
zone_steady_sirenSwitchConfigurationSteady siren
zone_chimeSwitchConfigurationChime
zone_bypassableSwitchConfigurationBypassable
zone_group_bypassableSwitchConfigurationGroup bypassable
zone_force_armableSwitchConfigurationForce armable
zone_entry_guardSwitchConfigurationEntry guard
zone_fast_loop_responseSwitchConfigurationFast loop response
zone_double_eol_tamperSwitchConfigurationDouble EOL tamper
zone_type_troubleSwitchConfigurationTrouble
zone_cross_zoneSwitchConfigurationCross zone
zone_dialer_delaySwitchConfigurationDialer delay
zone_swinger_shutdownSwitchConfigurationSwinger shutdown
zone_restorableSwitchConfigurationRestorable
zone_listen_inSwitchConfigurationListen in
zone_faultedContactZone ConditionFaulted (or delayed trip)
zone_tamperedSwitchZone ConditionTampered
zone_troubleSwitchZone ConditionTrouble
zone_bypassedSwitchZone ConditionBypassed
zone_inhibitedSwitchZone ConditionInhibited (force armed)
zone_low_batterySwitchZone ConditionLow battery
zone_loss_of_supervisionSwitchZone ConditionLoss of supervision
zone_alarm_memorySwitchZone ConditionAlarm memory
zone_bypass_memorySwitchZone ConditionBypass memory
keypad_key_pressedStringButton pressThe pressed button on the keypad

Thing actions ​

The binding supports the following actions on the respective things.

ThingNameDescriptionSpecification
bridgerestartRestart the bindingvoid restart()
zonebypassBypass the zonevoid bypass()
keypadenterTerminalModeEnter terminal mode on the selected keypadvoid enterTerminalMode()
keypadsendKeypadTextMessageDisplay a message on the Keypadvoid sendKeypadTextMessage(String displayLocation, String text)
partitionturnOffAnySounderOrAlarmTurn off any sounder or alarmvoid turnOffAnySounderOrAlarm(String pin)
partitiondisarmDis-armvoid disarm(String pin)
partitionarmInAwayModeArm in away modevoid armInAwayMode(String pin)
partitionarmInStayModeArm in stay modevoid armInStayMode(String pin)
partitioncancelCancelvoid cancel(String pin)
partitioninitiateAutoArmInitiate auto armvoid initiateAutoArm(String pin)
partitionstartWalkTestModeStart walk-test modevoid startWalkTestMode(String pin)
partitionstopWalkTestModeStop walk-test modevoid stopWalkTestMode(String pin)
partitionstayStay (1 button arm / toggle interiors)void stay()
partitionchimeChime (toggle chime mode)void chime()
partitionexitExit (1 button arm / toggle instant)void exit()
partitionbypassInteriorsBypass Interiorsvoid bypassInteriors()
partitionfirePanicFire Panicvoid firePanic()
partitionmedicalPanicMedical Panicvoid medicalPanic()
partitionpolicePanicPolice Panicvoid policePanic()
partitionsmokeDetectorResetSmoke detector resetvoid smokeDetectorReset()
partitionautoCallbackDownloadAuto callback downloadvoid autoCallbackDownload()
partitionmanualPickupDownloadManual pickup downloadvoid manualPickupDownload()
partitionenableSilentExitEnable silent exitvoid enableSilentExit()
partitionperformTestPerform testvoid performTest()
partitiongroupBypassGroup Bypassvoid groupBypass()
partitionauxiliaryFunction1Auxiliary Function 1void auxiliaryFunction1()
partitionauxiliaryFunction2Auxiliary Function 2void auxiliaryFunction2()
partitionstartKeypadSounderStart keypad soundervoid startKeypadSounder()
panelturnOffAnySounderOrAlarmOnPanelTurn off any sounder or alarm on all partitionsvoid turnOffAnySounderOrAlarm(String pin)
paneldisarmOnPanelDis-arm all partitionsvoid disarm(String pin)
panelarmInAwayModeOnPanelArm in away mode on all partitionsvoid armInAwayMode(String pin)
panelarmInStayModeOnPanelArm in stay mode on all partitionsvoid armInStayMode(String pin)
panelcancelOnPanelCancel command on all partitionsvoid cancel(String pin)
panelinitiateAutoArmOnPanelInitiate auto arm on all partitionsvoid initiateAutoArm(String pin)
panelstartWalkTestModeOnPanelStart walk-test mode on all partitionsvoid startWalkTestMode(String pin)
panelstopWalkTestModeOnPanelStop walk-test mode on all partitionsvoid stopWalkTestMode(String pin)
panelstayOnPanelStay (1 button arm / toggle interiors) on all partitionsvoid stay()
panelchimeOnPanelChime (toggle chime mode) on all partitionsvoid chime()
panelexitOnPanelExit (1 button arm / toggle instant) on all partitionsvoid exit()
panelbypassInteriorsOnPanelBypass Interiors on all partitionsvoid bypassInteriors()
panelfirePanicOnPanelFire Panic on all partitionsvoid firePanic()
panelmedicalPanicOnPanelMedical Panic on all partitionsvoid medicalPanic()
panelpolicePanicOnPanelPolice Panic on all partitionsvoid policePanic()
panelsmokeDetectorResetOnPanelSmoke detector reset on all partitionsvoid smokeDetectorReset()
panelautoCallbackDownloadOnPanelAuto callback download on all partitionsvoid autoCallbackDownload()
panelmanualPickupDownloadOnPanelManual pickup download on all partitionsvoid manualPickupDownload()
panelenableSilentExitOnPanelEnable silent exit on all partitionsvoid enableSilentExit()
panelperformTestOnPanelPerform test on all partitionsvoid performTest()
panelgroupBypassOnPanelGroup Bypass on all partitionsvoid groupBypass()
panelauxiliaryFunction1OnPanelAuxiliary Function 1 on all partitionsvoid auxiliaryFunction1()
panelauxiliaryFunction2OnPanelAuxiliary Function 2 on all partitionsvoid auxiliaryFunction2()
panelstartKeypadSounderOnPanelStart keypad sounder on all partitionsvoid startKeypadSounder()

Full Example ​

The following is an example of a things file (caddx.things):

dsl
Bridge caddx:bridge:thebridge  "Bridge"                   [ protocol="Binary", serialPort="/dev/ttyUSB0", baudrate=38400, maxZoneNumber=18 ] {
    Thing partition partition1 "Groundfloor alarm"        [ partitionNumber=1 ]
    Thing zone      zone1      "Livingroom motion sensor" [ zoneNumber=1 ]
    Thing zone      zone2      "Bedroom motion sensor"    [ zoneNumber=2 ]
    Thing zone      zone3      "Guestroom motion sensor"  [ zoneNumber=3 ]
    Thing zone      zone4      "Livingroom window"        [ zoneNumber=4 ]
    Thing zone      zone5      "Bedroom window"           [ zoneNumber=5 ]
    Thing zone      zone6      "Guestroom window"         [ zoneNumber=6 ]
}

The following is an example of an items file (caddx.items):

dsl
Group:Contact:OR(OPEN,CLOSED)  MotionSensors   "Motion Sensors [%s]"   <motion>
Group:Contact:OR(OPEN,CLOSED)  Windows         "Windows open [%s]"     <window>

Contact   Bedroom_Motion        "Bedroom [%s]"          <motion>       (MotionSensors)  { channel="caddx:zone:thebridge:zone1:zone_faulted" }
Contact   Livingroom_Motion     "Livingroom [%s]"       <motion>       (MotionSensors)  { channel="caddx:zone:thebridge:zone2:zone_faulted" }
Contact   Guestroom_Motion      "Guestroom [%s]"        <motion>       (MotionSensors)  { channel="caddx:zone:thebridge:zone3:zone_faulted" }
Contact   Bedroom_Window        "Bedroom Window [%s]"   <window>       (Windows)        { channel="caddx:zone:thebridge:zone4:zone_faulted" }
Contact   Livingroom_Window     "Livinroom Window [%s]" <window>       (Windows)        { channel="caddx:zone:thebridge:zone5:zone_faulted" }
Contact   Guestroom_Window      "Guestroom Window [%s]" <window>       (Windows)        { channel="caddx:zone:thebridge:zone6:zone_faulted" }

Switch    Partition1_Armed      "Armed [%s]"            <groundfloor>   { channel="caddx:partition:thebridge:partition1:partition_armed" }
Switch    Partition1_EntryGuard "Entry Guard [%s]"      <groundfloor>   { channel="caddx:partition:thebridge:partition1:partition_entryguard" }

The following is an example of a sitemap file (home.sitemap):

dsl
sitemap home label="Home" {
    Frame label="Ground floor" {
    Text item=Partition1_Armed
    Text item=Partition1_EntryGuard

    Text item=MotionSensors
        Text label="Motion Sensors (detailed)" {
            Text item=Bedroom_Motion
            Text item=Livingroom_Motion
            Text item=Guestroom_Motion
        }

    Text item=Windows
        Text label="Windows (detailed)" {
            Text item=Bedroom_Window
            Text item=Livingroom_Window
            Text item=Guestroom_Window
        }
    }
}

The following is a rule example with calling of an action on the binding

rules
rule "Zone Bypass on Chime Off"
when
    Item caddx_partition_thebridge_partition1_partition_chime_mode_on changed from ON to OFF
then
    val actions = getActions("caddx","caddx:zone:thebridge:zone4")
    if (null === actions) {
        logWarn("actions", "Actions not found, check thing ID for the Zone")
        return
    }

    actions.bypass()
end