homebridge-caddx-interlogix
Version:
A homebridge plugin for integrating the ComNav/NetworX/CaddX NX-595E network module with HomeKit
157 lines • 6.61 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeviceType = exports.ZoneState = exports.AreaState = exports.AreaBank = exports.SecuritySystemCLIScenes = exports.SecuritySystemZoneCommand = exports.SecuritySystemAreaCommand = exports.Vendor = void 0;
var Vendor;
(function (Vendor) {
Vendor["COMNAV"] = "COMNAV";
Vendor["UNDEFINED"] = "NONE";
})(Vendor || (exports.Vendor = Vendor = {}));
var SecuritySystemAreaCommand;
(function (SecuritySystemAreaCommand) {
SecuritySystemAreaCommand[SecuritySystemAreaCommand["AREA_CHIME_TOGGLE"] = 1] = "AREA_CHIME_TOGGLE";
SecuritySystemAreaCommand[SecuritySystemAreaCommand["AREA_DISARM"] = 16] = "AREA_DISARM";
SecuritySystemAreaCommand[SecuritySystemAreaCommand["AREA_AWAY"] = 17] = "AREA_AWAY";
SecuritySystemAreaCommand[SecuritySystemAreaCommand["AREA_STAY"] = 18] = "AREA_STAY";
})(SecuritySystemAreaCommand || (exports.SecuritySystemAreaCommand = SecuritySystemAreaCommand = {}));
var SecuritySystemZoneCommand;
(function (SecuritySystemZoneCommand) {
SecuritySystemZoneCommand[SecuritySystemZoneCommand["ZONE_BYPASS"] = 82] = "ZONE_BYPASS";
})(SecuritySystemZoneCommand || (exports.SecuritySystemZoneCommand = SecuritySystemZoneCommand = {}));
var SecuritySystemCLIScenes;
(function (SecuritySystemCLIScenes) {
SecuritySystemCLIScenes[SecuritySystemCLIScenes["chime"] = 1] = "chime";
SecuritySystemCLIScenes[SecuritySystemCLIScenes["disarm"] = 16] = "disarm";
SecuritySystemCLIScenes[SecuritySystemCLIScenes["away"] = 17] = "away";
SecuritySystemCLIScenes[SecuritySystemCLIScenes["stay"] = 18] = "stay";
})(SecuritySystemCLIScenes || (exports.SecuritySystemCLIScenes = SecuritySystemCLIScenes = {}));
var AreaBank;
(function (AreaBank) {
AreaBank[AreaBank["ARMED"] = 0] = "ARMED";
AreaBank[AreaBank["PARTIAL"] = 1] = "PARTIAL";
AreaBank[AreaBank["UNKWN_02"] = 2] = "UNKWN_02";
AreaBank[AreaBank["FIRE_ALARM"] = 3] = "FIRE_ALARM";
AreaBank[AreaBank["BURGLAR_ALARM"] = 4] = "BURGLAR_ALARM";
AreaBank[AreaBank["PANIC_ALARM"] = 5] = "PANIC_ALARM";
AreaBank[AreaBank["MEDICAL_ALARM"] = 6] = "MEDICAL_ALARM";
AreaBank[AreaBank["EXIT_MODE01"] = 7] = "EXIT_MODE01";
AreaBank[AreaBank["EXIT_MODE02"] = 8] = "EXIT_MODE02";
AreaBank[AreaBank["UNKWN_09"] = 9] = "UNKWN_09";
AreaBank[AreaBank["UNKWN_10"] = 10] = "UNKWN_10";
AreaBank[AreaBank["UNKWN_11"] = 11] = "UNKWN_11";
AreaBank[AreaBank["UNKWN_12"] = 12] = "UNKWN_12";
AreaBank[AreaBank["UNKWN_13"] = 13] = "UNKWN_13";
AreaBank[AreaBank["UNKWN_14"] = 14] = "UNKWN_14";
AreaBank[AreaBank["CHIME"] = 15] = "CHIME";
AreaBank[AreaBank["UNKWN_16"] = 16] = "UNKWN_16";
})(AreaBank || (exports.AreaBank = AreaBank = {}));
var _AreaState;
(function (_AreaState) {
_AreaState[_AreaState["ARMED_AWAY"] = 0] = "ARMED_AWAY";
_AreaState[_AreaState["ARMED_STAY"] = 1] = "ARMED_STAY";
_AreaState[_AreaState["READY"] = 2] = "READY";
_AreaState[_AreaState["ALARM_FIRE"] = 3] = "ALARM_FIRE";
_AreaState[_AreaState["ALARM_BURGLAR"] = 4] = "ALARM_BURGLAR";
_AreaState[_AreaState["ALARM_PANIC"] = 5] = "ALARM_PANIC";
_AreaState[_AreaState["ALARM_MEDICAL"] = 6] = "ALARM_MEDICAL";
_AreaState[_AreaState["DELAY_EXIT_1"] = 7] = "DELAY_EXIT_1";
_AreaState[_AreaState["DELAY_EXIT_2"] = 8] = "DELAY_EXIT_2";
_AreaState[_AreaState["DELAY_ENTRY"] = 9] = "DELAY_ENTRY";
_AreaState[_AreaState["SENSOR_BYPASS"] = 10] = "SENSOR_BYPASS";
_AreaState[_AreaState["SENSOR_TROUBLE"] = 11] = "SENSOR_TROUBLE";
_AreaState[_AreaState["SENSOR_TAMPER"] = 12] = "SENSOR_TAMPER";
_AreaState[_AreaState["SENSOR_BATTERY"] = 13] = "SENSOR_BATTERY";
_AreaState[_AreaState["SENSOR_SUPERVISION"] = 14] = "SENSOR_SUPERVISION";
_AreaState[_AreaState["NOT_READY"] = 15] = "NOT_READY";
_AreaState[_AreaState["NOT_READY_FORCEABLE"] = 16] = "NOT_READY_FORCEABLE";
_AreaState[_AreaState["DISARMED"] = 17] = "DISARMED";
})(_AreaState || (_AreaState = {}));
class AreaState {
}
exports.AreaState = AreaState;
AreaState.State = _AreaState;
AreaState.Priority = [
AreaState.State.ALARM_FIRE,
AreaState.State.ALARM_BURGLAR,
AreaState.State.ALARM_PANIC,
AreaState.State.ALARM_MEDICAL,
AreaState.State.DELAY_EXIT_1,
AreaState.State.DELAY_EXIT_2,
AreaState.State.DELAY_ENTRY,
AreaState.State.ARMED_AWAY,
AreaState.State.ARMED_STAY,
AreaState.State.SENSOR_BYPASS,
AreaState.State.SENSOR_TROUBLE,
AreaState.State.SENSOR_TAMPER,
AreaState.State.SENSOR_BATTERY,
AreaState.State.SENSOR_SUPERVISION,
AreaState.State.READY
];
AreaState.Status = [
'Armed Away',
'Armed Stay',
'Ready',
'Fire Alarm',
'Burglar Alarm',
'Panic Alarm',
'Medical Alarm',
'Exit Delay 1',
'Exit Delay 2',
'Entry Delay',
'Sensor Bypass',
'Sensor Trouble',
'Sensor Tamper',
'Sensor Low Battery',
'Sensor Supervision',
'Not Ready',
'Not Ready',
'Disarm'
];
var _ZoneState;
(function (_ZoneState) {
_ZoneState[_ZoneState["UNKWN_00"] = 0] = "UNKWN_00";
_ZoneState[_ZoneState["UNKWN_01"] = 1] = "UNKWN_01";
_ZoneState[_ZoneState["UNKWN_02"] = 2] = "UNKWN_02";
_ZoneState[_ZoneState["BYPASSED"] = 3] = "BYPASSED";
_ZoneState[_ZoneState["UNKWN_04"] = 4] = "UNKWN_04";
_ZoneState[_ZoneState["UNKWN_05"] = 5] = "UNKWN_05";
_ZoneState[_ZoneState["UNKWN_06"] = 6] = "UNKWN_06";
_ZoneState[_ZoneState["UNKWN_07"] = 7] = "UNKWN_07";
_ZoneState[_ZoneState["AUTOBYPASS"] = 8] = "AUTOBYPASS";
_ZoneState[_ZoneState["UNKWN_09"] = 9] = "UNKWN_09";
_ZoneState[_ZoneState["UNKWN_10"] = 10] = "UNKWN_10";
_ZoneState[_ZoneState["UNKWN_11"] = 11] = "UNKWN_11";
_ZoneState[_ZoneState["UNKWN_12"] = 12] = "UNKWN_12";
_ZoneState[_ZoneState["UNKWN_13"] = 13] = "UNKWN_13";
})(_ZoneState || (_ZoneState = {}));
class ZoneState {
}
exports.ZoneState = ZoneState;
ZoneState.State = _ZoneState;
ZoneState.NotReady = "Not Ready";
ZoneState.Ready = "Ready";
ZoneState.Status = [
ZoneState.NotReady,
'Tamper',
'Trouble',
'',
'Inhibited',
'Alarm',
'Low Battery',
'Supervision Fault',
'Test Fail',
'',
'Entry Delay',
'',
'Test Active',
'Activity Fail',
'Antimask'
];
var DeviceType;
(function (DeviceType) {
DeviceType["area"] = "area";
DeviceType["contact"] = "contact";
DeviceType["radar"] = "radar";
DeviceType["smoke"] = "smoke";
DeviceType["output"] = "output";
})(DeviceType || (exports.DeviceType = DeviceType = {}));
//# sourceMappingURL=definitions.js.map