Skip to content

Commit 55e4e5b

Browse files
committed
Code enhancements
### ADDED - Security panel note for "PERSONAL EMERGENCY ALARM".
1 parent 4beb9ae commit 55e4e5b

File tree

4 files changed

+9
-1
lines changed

4 files changed

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

src/lib/api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,7 @@ export class ADTPulseAPI {
13371337
*
13381338
* How the data may be displayed:
13391339
* ➜ "Disarmed. All Quiet."
1340+
* ➜ "Disarmed. PERSONAL EMERGENCY ALARM. This may take several minutes."
13401341
* ➜ "Status Unavailable. "
13411342
* ➜ "All Quiet."
13421343
* ➜ "Armed Stay. All Quiet. This may take several minutes."
@@ -1350,6 +1351,11 @@ export class ADTPulseAPI {
13501351
* panelNotes: [],
13511352
* }
13521353
* ➜ {
1354+
* panelStates: ['Disarmed'],
1355+
* panelStatuses: [],
1356+
* panelNotes: ['PERSONAL EMERGENCY ALARM', 'This may take several minutes'],
1357+
* }
1358+
* ➜ {
13531359
* panelStates: ['Status Unavailable'],
13541360
* panelStatuses: [],
13551361
* panelNotes: [],

src/lib/items.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ export const itemPanelInformationStatuses: ItemPanelInformationStatuses = [
641641
*/
642642
export const itemPanelStatusNotes: ItemPanelStatusNotes = [
643643
'EXIT FAULT ALARM',
644+
'PERSONAL EMERGENCY ALARM',
644645
'SILENT PANIC ALARM',
645646
'This may take several minutes',
646647
];

src/types/constant.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export type PortalPanelForceArmButtonRelativeUrl =
235235
*/
236236
export type PortalPanelNote =
237237
'EXIT FAULT ALARM'
238+
| 'PERSONAL EMERGENCY ALARM'
238239
| 'SILENT PANIC ALARM'
239240
| 'This may take several minutes';
240241

0 commit comments

Comments
 (0)