Skip to content

Commit 7f6c97b

Browse files
committed
Device support
### ADDED - Support for shock sensor statuses. - ADT Pulse Gateway PGZNG1 (HW 1, Broadband Unavailable). - Compact SMA Protocol Gateway (HW 2, Cellular Unavailable). - Audible panic alarm emergency key for Ademco LYNX/ADT QuickConnect Security Panel.
1 parent 4d26ea5 commit 7f6c97b

File tree

3 files changed

+60
-10
lines changed

3 files changed

+60
-10
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.4",
4+
"version": "3.2.5",
55
"description": "Homebridge security system platform for ADT Pulse",
66
"main": "./build/index.js",
77
"exports": "./build/index.js",

src/lib/accessory.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,6 @@ export class ADTPulseAccessory {
515515
return this.#characteristic.OccupancyDetected.OCCUPANCY_NOT_DETECTED;
516516
}
517517
break;
518-
// TODO Device type needs to be manually tested and confirmed first.
519518
case 'heat':
520519
if (statuses.includes('ALARM') || statuses.includes('Tripped')) {
521520
return this.#characteristic.OccupancyDetected.OCCUPANCY_DETECTED;
@@ -534,10 +533,15 @@ export class ADTPulseAccessory {
534533
return false;
535534
}
536535
break;
537-
// TODO Device type needs to be manually tested and confirmed first.
538536
case 'shock':
537+
if (statuses.includes('ALARM') || statuses.includes('Tripped')) {
538+
return this.#characteristic.OccupancyDetected.OCCUPANCY_DETECTED;
539+
}
540+
541+
if (statuses.includes('Okay')) {
542+
return this.#characteristic.OccupancyDetected.OCCUPANCY_NOT_DETECTED;
543+
}
539544
break;
540-
// TODO Device type needs to be manually tested and confirmed first.
541545
case 'temperature':
542546
/**
543547
* Since sensors from ADT do not show exact temperatures

src/lib/items.ts

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,19 @@ export const collectionSensorActions: CollectionSensorActions = [
298298
{
299299
type: 'shock',
300300
statuses: [
301+
'ALARM, Okay',
302+
'ALARM, Tripped',
303+
'Bypassed, Okay',
304+
'Bypassed, Tripped',
305+
'Low Battery, Okay',
306+
'Low Battery, Tripped',
301307
'Offline',
308+
'Okay',
309+
'Tampered, Okay',
310+
'Tampered, Tripped',
311+
'Tripped',
312+
'Trouble, Okay',
313+
'Trouble, Tripped',
302314
'Unknown',
303315
],
304316
},
@@ -355,6 +367,19 @@ export const deviceGateways: DeviceGateways = [
355367
primaryConnectionType: 'Broadband',
356368
},
357369
},
370+
{
371+
description: 'ADT Pulse Gateway PGZNG1 / HW 1 / Broadband Unavailable',
372+
gateway: {
373+
broadbandConnectionStatus: 'Unavailable',
374+
cellularConnectionStatus: 'N/A',
375+
cellularSignalStrength: 'N/A',
376+
firmwareVersion: '24.0.0-9',
377+
hardwareVersion: 'HW=1, BL=1.1.9, PL=9.4.0.32.5, SKU=PGZNG1-1ADNAS',
378+
manufacturer: 'ADT Pulse Gateway',
379+
model: 'PGZNG1',
380+
primaryConnectionType: 'Broadband',
381+
},
382+
},
358383
{
359384
description: 'ADT Pulse Gateway PGZNG1 / HW 2 / Broadband Active',
360385
gateway: {
@@ -420,6 +445,19 @@ export const deviceGateways: DeviceGateways = [
420445
primaryConnectionType: 'Cellular',
421446
},
422447
},
448+
{
449+
description: 'Compact SMA Protocol Gateway / HW 2 / Cellular Unavailable',
450+
gateway: {
451+
broadbandConnectionStatus: null,
452+
cellularConnectionStatus: 'Unavailable',
453+
cellularSignalStrength: 'N/A',
454+
firmwareVersion: '27.0.0-140',
455+
hardwareVersion: 'HW=02_CSMAP, BL=NA, PL=27.0.0-140',
456+
manufacturer: null,
457+
model: 'Compact SMA Protocol Gateway',
458+
primaryConnectionType: 'Cellular',
459+
},
460+
},
423461
{
424462
description: 'Lynx/QuickConnect Cellular-Only Gateway / HW 2 / Cellular Active',
425463
gateway: {
@@ -442,53 +480,61 @@ export const deviceGateways: DeviceGateways = [
442480
*/
443481
export const deviceSecurityPanels: DeviceSecurityPanels = [
444482
{
445-
description: 'ADT Safewatch Pro 3000/3000CN - Emergency Keys 95/99',
483+
description: 'ADT Safewatch Pro 3000/3000CN - Emergency Keys FA 95/APA 99',
446484
panel: {
447485
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Audible Panic Alarm (Zone 99)',
448486
manufacturerProvider: 'ADT',
449487
typeModel: 'Security Panel - Safewatch Pro 3000/3000CN',
450488
},
451489
},
452490
{
453-
description: 'ADT Safewatch Pro 3000/3000CN - Emergency Keys 95/96/99',
491+
description: 'ADT Safewatch Pro 3000/3000CN - Emergency Keys FA 95/PE 96/APA 99',
454492
panel: {
455493
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Personal Emergency (Zone 96) Button: Audible Panic Alarm (Zone 99)',
456494
manufacturerProvider: 'ADT',
457495
typeModel: 'Security Panel - Safewatch Pro 3000/3000CN',
458496
},
459497
},
460498
{
461-
description: 'ADT TSSC Life Safety Module - Emergency Keys 95/99',
499+
description: 'ADT TSSC Life Safety Module - Emergency Keys FA 95/APA 99',
462500
panel: {
463501
emergencyKeys: 'Button: Fire Alarm (Zone 995) Button: Audible Panic Alarm (Zone 999)',
464502
manufacturerProvider: 'ADT',
465503
typeModel: 'TSSC Life Safety Module',
466504
},
467505
},
468506
{
469-
description: 'ADT TSSC Life Safety Module - Emergency Keys 95/96/99',
507+
description: 'ADT TSSC Life Safety Module - Emergency Keys FA 95/PE 96/APA 99',
470508
panel: {
471509
emergencyKeys: 'Button: Fire Alarm (Zone 995) Button: Personal Emergency (Zone 996) Button: Audible Panic Alarm (Zone 999)',
472510
manufacturerProvider: 'ADT',
473511
typeModel: 'TSSC Life Safety Module',
474512
},
475513
},
476514
{
477-
description: 'Ademco LYNX/ADT QuickConnect - Emergency Keys 95/99',
515+
description: 'Ademco LYNX/ADT QuickConnect - Emergency Keys FA 95/APA 99',
478516
panel: {
479517
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Audible Panic Alarm (Zone 99)',
480518
manufacturerProvider: null,
481519
typeModel: 'Security Panel - LYNX/QuickConnect',
482520
},
483521
},
484522
{
485-
description: 'Ademco LYNX/ADT QuickConnect - Emergency Keys 95/96/99',
523+
description: 'Ademco LYNX/ADT QuickConnect - Emergency Keys FA 95/PE 96/PE 99',
486524
panel: {
487525
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Personal Emergency (Zone 96) Button: Personal Emergency (Zone 99)',
488526
manufacturerProvider: null,
489527
typeModel: 'Security Panel - LYNX/QuickConnect',
490528
},
491529
},
530+
{
531+
description: 'Ademco LYNX/ADT QuickConnect - Emergency Keys FA 95/PE 96/APA 99',
532+
panel: {
533+
emergencyKeys: 'Button: Fire Alarm (Zone 95) Button: Personal Emergency (Zone 96) Button: Audible Panic Alarm (Zone 99)',
534+
manufacturerProvider: null,
535+
typeModel: 'Security Panel - LYNX/QuickConnect',
536+
},
537+
},
492538
{
493539
description: 'DSC Impassa SCW9057',
494540
panel: {

0 commit comments

Comments
 (0)