Skip to content

Commit 67d0869

Browse files
committed
Added documentation for devices
### UPDATED - Added a description for each "do submit handler", "orb security button", "gateway", "security panel" item collections. ### ADDED - ADT Pulse Gateway (HW 2, with internet unavailable status). - Collection of orb security buttons when system is unavailable.
1 parent 95107e7 commit 67d0869

File tree

4 files changed

+273
-160
lines changed

4 files changed

+273
-160
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "homebridge-adt-pulse",
33
"displayName": "Homebridge ADT Pulse",
4-
"version": "3.2.1",
4+
"version": "3.2.2",
55
"description": "Homebridge security system platform for ADT Pulse",
66
"main": "./build/index.js",
77
"exports": "./build/index.js",

src/lib/items.ts

Lines changed: 208 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,21 @@ import type {
3636
* @since 1.0.0
3737
*/
3838
export const collectionDoSubmitHandlers: CollectionDoSubmitHandlers = [
39-
[],
40-
[
41-
{
42-
href: 'rest/adt/ui/client/security/setForceArm',
43-
},
44-
{
45-
href: 'rest/adt/ui/client/security/setCancelProtest',
46-
},
47-
],
39+
{
40+
description: 'Force arm required',
41+
handlers: [
42+
{
43+
href: 'rest/adt/ui/client/security/setForceArm',
44+
},
45+
{
46+
href: 'rest/adt/ui/client/security/setCancelProtest',
47+
},
48+
],
49+
},
50+
{
51+
description: 'No force arm required',
52+
handlers: [],
53+
},
4854
];
4955

5056
/**
@@ -53,70 +59,95 @@ export const collectionDoSubmitHandlers: CollectionDoSubmitHandlers = [
5359
* @since 1.0.0
5460
*/
5561
export const collectionOrbSecurityButtons: CollectionOrbSecurityButtons = [
56-
[
57-
{
58-
buttonDisabled: false,
59-
buttonText: 'Arm Away',
60-
loadingText: 'Arming Away',
61-
},
62-
{
63-
buttonDisabled: false,
64-
buttonText: 'Arm Stay',
65-
loadingText: 'Arming Stay',
66-
},
67-
],
68-
[
69-
{
70-
buttonDisabled: false,
71-
buttonText: 'Disarm',
72-
loadingText: 'Disarming',
73-
},
74-
],
75-
[
76-
{
77-
buttonDisabled: true,
78-
buttonText: 'Disarming',
79-
loadingText: null,
80-
},
81-
],
82-
[
83-
{
84-
buttonDisabled: true,
85-
buttonText: 'Arming Away',
86-
loadingText: null,
87-
},
88-
],
89-
[
90-
{
91-
buttonDisabled: true,
92-
buttonText: 'Arming Stay',
93-
loadingText: null,
94-
},
95-
],
96-
[
97-
{
98-
buttonDisabled: true,
99-
buttonText: 'Arming Night',
100-
loadingText: null,
101-
},
102-
],
103-
[
104-
{
105-
buttonDisabled: false,
106-
buttonText: 'Disarm',
107-
loadingText: 'Disarming',
108-
},
109-
{
110-
buttonDisabled: false,
111-
buttonText: 'Arm Away',
112-
loadingText: 'Arming Away',
113-
},
114-
{
115-
buttonDisabled: false,
116-
buttonText: 'Arm Stay',
117-
loadingText: 'Arming Stay',
118-
},
119-
],
62+
{
63+
description: 'System disarmed / Normal',
64+
buttons: [
65+
{
66+
buttonDisabled: false,
67+
buttonText: 'Arm Away',
68+
loadingText: 'Arming Away',
69+
},
70+
{
71+
buttonDisabled: false,
72+
buttonText: 'Arm Stay',
73+
loadingText: 'Arming Stay',
74+
},
75+
],
76+
},
77+
{
78+
description: 'System disarmed / Unresolved sensor problem',
79+
buttons: [
80+
{
81+
buttonDisabled: false,
82+
buttonText: 'Disarm',
83+
loadingText: 'Disarming',
84+
},
85+
{
86+
buttonDisabled: false,
87+
buttonText: 'Arm Away',
88+
loadingText: 'Arming Away',
89+
},
90+
{
91+
buttonDisabled: false,
92+
buttonText: 'Arm Stay',
93+
loadingText: 'Arming Stay',
94+
},
95+
],
96+
},
97+
{
98+
description: 'System armed',
99+
buttons: [
100+
{
101+
buttonDisabled: false,
102+
buttonText: 'Disarm',
103+
loadingText: 'Disarming',
104+
},
105+
],
106+
},
107+
{
108+
description: 'System busy / Disarming',
109+
buttons: [
110+
{
111+
buttonDisabled: true,
112+
buttonText: 'Disarming',
113+
loadingText: null,
114+
},
115+
],
116+
},
117+
{
118+
description: 'System busy / Arming Away',
119+
buttons: [
120+
{
121+
buttonDisabled: true,
122+
buttonText: 'Arming Away',
123+
loadingText: null,
124+
},
125+
],
126+
},
127+
{
128+
description: 'System busy / Arming Stay',
129+
buttons: [
130+
{
131+
buttonDisabled: true,
132+
buttonText: 'Arming Stay',
133+
loadingText: null,
134+
},
135+
],
136+
},
137+
{
138+
description: 'System busy / Arming Night',
139+
buttons: [
140+
{
141+
buttonDisabled: true,
142+
buttonText: 'Arming Night',
143+
loadingText: null,
144+
},
145+
],
146+
},
147+
{
148+
description: 'System unavailable',
149+
buttons: [],
150+
},
120151
];
121152

122153
/**
@@ -299,54 +330,82 @@ export const collectionSensorActions: CollectionSensorActions = [
299330
*/
300331
export const deviceGateways: DeviceGateways = [
301332
{
302-
broadbandConnectionStatus: 'Active',
303-
cellularConnectionStatus: 'N/A',
304-
cellularSignalStrength: 'N/A',
305-
firmwareVersion: '24.0.0-9',
306-
hardwareVersion: 'HW=1, BL=1.1.9, PL=9.4.0.32.5, SKU=PGZNG1-1ADNAS',
307-
manufacturer: 'ADT Pulse Gateway',
308-
model: 'PGZNG1',
309-
primaryConnectionType: 'Broadband',
333+
description: 'ADT Pulse Gateway PGZNG1 / HW 1 / Broadband Active',
334+
gateway: {
335+
broadbandConnectionStatus: 'Active',
336+
cellularConnectionStatus: 'N/A',
337+
cellularSignalStrength: 'N/A',
338+
firmwareVersion: '24.0.0-9',
339+
hardwareVersion: 'HW=1, BL=1.1.9, PL=9.4.0.32.5, SKU=PGZNG1-1ADNAS',
340+
manufacturer: 'ADT Pulse Gateway',
341+
model: 'PGZNG1',
342+
primaryConnectionType: 'Broadband',
343+
},
310344
},
311345
{
312-
broadbandConnectionStatus: 'Active',
313-
cellularConnectionStatus: 'N/A',
314-
cellularSignalStrength: 'N/A',
315-
firmwareVersion: '24.0.0-9',
316-
hardwareVersion: 'HW=2, BL=1.1.9, PL=9.4.0.32.5, SKU=PGZNG1-1ADNAS',
317-
manufacturer: 'ADT Pulse Gateway',
318-
model: 'PGZNG1',
319-
primaryConnectionType: 'Broadband',
346+
description: 'ADT Pulse Gateway PGZNG1 / HW 2 / Broadband Active',
347+
gateway: {
348+
broadbandConnectionStatus: 'Active',
349+
cellularConnectionStatus: 'N/A',
350+
cellularSignalStrength: 'N/A',
351+
firmwareVersion: '24.0.0-9',
352+
hardwareVersion: 'HW=2, BL=1.1.9, PL=9.4.0.32.5, SKU=PGZNG1-1ADNAS',
353+
manufacturer: 'ADT Pulse Gateway',
354+
model: 'PGZNG1',
355+
primaryConnectionType: 'Broadband',
356+
},
320357
},
321358
{
322-
broadbandConnectionStatus: null,
323-
cellularConnectionStatus: 'Active',
324-
cellularSignalStrength: 'N/A',
325-
firmwareVersion: '27.0.0-140',
326-
hardwareVersion: 'HW=02_CSMAP, BL=NA, PL=27.0.0-140',
327-
manufacturer: null,
328-
model: 'Compact SMA Protocol Gateway',
329-
primaryConnectionType: 'Cellular',
359+
description: 'ADT Pulse Gateway PGZNG1 / HW 2 / Broadband Unavailable',
360+
gateway: {
361+
broadbandConnectionStatus: 'Unavailable',
362+
cellularConnectionStatus: 'N/A',
363+
cellularSignalStrength: 'N/A',
364+
firmwareVersion: '24.0.0-9',
365+
hardwareVersion: 'HW=2, BL=1.1.9, PL=9.4.0.32.5, SKU=PGZNG1-1ADNAS',
366+
manufacturer: 'ADT Pulse Gateway',
367+
model: 'PGZNG1',
368+
primaryConnectionType: 'Broadband',
369+
},
330370
},
331371
{
332-
broadbandConnectionStatus: null,
333-
cellularConnectionStatus: 'Active',
334-
cellularSignalStrength: 'N/A',
335-
firmwareVersion: '27.0.0-140',
336-
hardwareVersion: 'HW=02_Lynx, BL=ICONTROL_CFE 1.0, PL=27.0.0-140',
337-
manufacturer: null,
338-
model: 'Lynx/QuickConnect Cellular-Only Gateway',
339-
primaryConnectionType: 'Cellular',
372+
description: 'ADT TSSC Lifestyle Module / HW 2 / Broadband Active',
373+
gateway: {
374+
broadbandConnectionStatus: 'Active',
375+
cellularConnectionStatus: 'N/A',
376+
cellularSignalStrength: 'N/A',
377+
firmwareVersion: '24.0.0-9',
378+
hardwareVersion: 'HW=0002, BL=UBOOT 2009.08-svn99, PL=5.5.0-5, SKU=TSSC-NA-NONE-01',
379+
manufacturer: 'ADT',
380+
model: 'TSSC Lifestyle Module',
381+
primaryConnectionType: 'Broadband',
382+
},
340383
},
341384
{
342-
broadbandConnectionStatus: 'Active',
343-
cellularConnectionStatus: 'N/A',
344-
cellularSignalStrength: 'N/A',
345-
firmwareVersion: '24.0.0-9',
346-
hardwareVersion: 'HW=0002, BL=UBOOT 2009.08-svn99, PL=5.5.0-5, SKU=TSSC-NA-NONE-01',
347-
manufacturer: 'ADT',
348-
model: 'TSSC Lifestyle Module',
349-
primaryConnectionType: 'Broadband',
385+
description: 'Compact SMA Protocol Gateway / HW 2 / Cellular Active',
386+
gateway: {
387+
broadbandConnectionStatus: null,
388+
cellularConnectionStatus: 'Active',
389+
cellularSignalStrength: 'N/A',
390+
firmwareVersion: '27.0.0-140',
391+
hardwareVersion: 'HW=02_CSMAP, BL=NA, PL=27.0.0-140',
392+
manufacturer: null,
393+
model: 'Compact SMA Protocol Gateway',
394+
primaryConnectionType: 'Cellular',
395+
},
396+
},
397+
{
398+
description: 'Lynx/QuickConnect Cellular-Only Gateway / HW 2 / Cellular Active',
399+
gateway: {
400+
broadbandConnectionStatus: null,
401+
cellularConnectionStatus: 'Active',
402+
cellularSignalStrength: 'N/A',
403+
firmwareVersion: '27.0.0-140',
404+
hardwareVersion: 'HW=02_Lynx, BL=ICONTROL_CFE 1.0, PL=27.0.0-140',
405+
manufacturer: null,
406+
model: 'Lynx/QuickConnect Cellular-Only Gateway',
407+
primaryConnectionType: 'Cellular',
408+
},
350409
},
351410
];
352411

@@ -357,34 +416,52 @@ export const deviceGateways: DeviceGateways = [
357416
*/
358417
export const deviceSecurityPanels: DeviceSecurityPanels = [
359418
{
360-
emergencyKeys: 'Button: Fire Alarm (Zone 995) Button: Audible Panic Alarm (Zone 999)',
361-
manufacturerProvider: 'ADT',
362-
typeModel: 'TSSC Life Safety Module',
419+
description: 'ADT Safewatch Pro 3000/3000CN - Emergency Keys 95/99',
420+
panel: {
421+
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Audible Panic Alarm (Zone 99)',
422+
manufacturerProvider: 'ADT',
423+
typeModel: 'Security Panel - Safewatch Pro 3000/3000CN',
424+
},
363425
},
364426
{
365-
emergencyKeys: 'Button: Fire Alarm (Zone 995) Button: Personal Emergency (Zone 996) Button: Audible Panic Alarm (Zone 999)',
366-
manufacturerProvider: 'ADT',
367-
typeModel: 'TSSC Life Safety Module',
427+
description: 'ADT Safewatch Pro 3000/3000CN - Emergency Keys 95/96/99',
428+
panel: {
429+
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Personal Emergency (Zone 96) Button: Audible Panic Alarm (Zone 99)',
430+
manufacturerProvider: 'ADT',
431+
typeModel: 'Security Panel - Safewatch Pro 3000/3000CN',
432+
},
368433
},
369434
{
370-
emergencyKeys: null,
371-
manufacturerProvider: 'DSC',
372-
typeModel: 'Security Panel - Impassa SCW9057',
435+
description: 'ADT TSSC Life Safety Module - Emergency Keys 95/99',
436+
panel: {
437+
emergencyKeys: 'Button: Fire Alarm (Zone 995) Button: Audible Panic Alarm (Zone 999)',
438+
manufacturerProvider: 'ADT',
439+
typeModel: 'TSSC Life Safety Module',
440+
},
373441
},
374442
{
375-
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Audible Panic Alarm (Zone 99)',
376-
manufacturerProvider: null,
377-
typeModel: 'Security Panel - LYNX/QuickConnect',
443+
description: 'ADT TSSC Life Safety Module - Emergency Keys 95/96/99',
444+
panel: {
445+
emergencyKeys: 'Button: Fire Alarm (Zone 995) Button: Personal Emergency (Zone 996) Button: Audible Panic Alarm (Zone 999)',
446+
manufacturerProvider: 'ADT',
447+
typeModel: 'TSSC Life Safety Module',
448+
},
378449
},
379450
{
380-
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Audible Panic Alarm (Zone 99)',
381-
manufacturerProvider: 'ADT',
382-
typeModel: 'Security Panel - Safewatch Pro 3000/3000CN',
451+
description: 'Ademco LYNX/ADT QuickConnect - Emergency Keys 95/99',
452+
panel: {
453+
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Audible Panic Alarm (Zone 99)',
454+
manufacturerProvider: null,
455+
typeModel: 'Security Panel - LYNX/QuickConnect',
456+
},
383457
},
384458
{
385-
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Personal Emergency (Zone 96) Button: Audible Panic Alarm (Zone 99)',
386-
manufacturerProvider: 'ADT',
387-
typeModel: 'Security Panel - Safewatch Pro 3000/3000CN',
459+
description: 'DSC Impassa SCW9057',
460+
panel: {
461+
emergencyKeys: null,
462+
manufacturerProvider: 'DSC',
463+
typeModel: 'Security Panel - Impassa SCW9057',
464+
},
388465
},
389466
];
390467

0 commit comments

Comments
 (0)