homebridge-adt-pulse 3.0.0-beta.5 → 3.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -8
- package/build/config.schema.json +230 -159
- package/build/src/lib/platform.js +30 -3
- package/build/src/lib/platform.js.map +1 -1
- package/build/src/lib/schema.js +19 -10
- package/build/src/lib/schema.js.map +1 -1
- package/config.schema.json +289 -218
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,6 @@ This is a [verified Homebridge plugin](https://github.com/homebridge/homebridge/
|
|
|
11
11
|
# Please install the beta version!
|
|
12
12
|
### This plugin is completely re-written from the ground up, and I need everyone on board! Please install the pre-release version, so I can quickly get a faster and more stable version to you!
|
|
13
13
|
### Everything is still very sloppy, please bear with me, even the readme has to be re-written.
|
|
14
|
-
### In the meantime, do not use the UI to configure your plugin (the latest config is below). The UI uses v2 (this is now v3) config. All sensors will now HAVE TO be added manually to prevent automatic-adding/removals if ADT strikes a bug to break things again.
|
|
15
14
|
|
|
16
15
|
To use this plugin, here are three simple steps you need to follow:
|
|
17
16
|
1. Run `npm install homebridge-adt-pulse`
|
|
@@ -28,10 +27,12 @@ When configuring this plugin, simply add the platform to your existing `config.j
|
|
|
28
27
|
{
|
|
29
28
|
"platform": "ADTPulse",
|
|
30
29
|
"name": "ADT Pulse",
|
|
31
|
-
"subdomain": "
|
|
32
|
-
"username": "
|
|
33
|
-
"password": "
|
|
34
|
-
"fingerprint": "
|
|
30
|
+
"subdomain": "portal",
|
|
31
|
+
"username": "user@example.com",
|
|
32
|
+
"password": "Mys7r0nG!P@ssw0rd",
|
|
33
|
+
"fingerprint": "VGhpc0lzQVNlY3VyZVBhc3N3b3JkMTIzIQ==",
|
|
34
|
+
"mode": "normal",
|
|
35
|
+
"speed": 1,
|
|
35
36
|
"sensors": [
|
|
36
37
|
{
|
|
37
38
|
"name": "Lounge Smoke",
|
|
@@ -39,9 +40,7 @@ When configuring this plugin, simply add the platform to your existing `config.j
|
|
|
39
40
|
"adtType": "fire",
|
|
40
41
|
"adtZone": 1
|
|
41
42
|
}
|
|
42
|
-
]
|
|
43
|
-
"pause": false,
|
|
44
|
-
"reset": false
|
|
43
|
+
]
|
|
45
44
|
},
|
|
46
45
|
{
|
|
47
46
|
"platform": "...",
|
package/build/config.schema.json
CHANGED
|
@@ -2,234 +2,305 @@
|
|
|
2
2
|
"pluginAlias": "ADTPulse",
|
|
3
3
|
"pluginType": "platform",
|
|
4
4
|
"singular": true,
|
|
5
|
-
"headerDisplay": "
|
|
6
|
-
"footerDisplay": "
|
|
5
|
+
"headerDisplay": "Welcome to the configuration page for **[ADT Pulse for Homebridge](https://github.com/mrjackyliang/homebridge-adt-pulse)**! You will find customizable settings to tailor your experience here. Start by inputting your login credentials, and then specify the sensors you want to incorporate into this setup.",
|
|
6
|
+
"footerDisplay": "For further assistance, please consult the [readme](https://github.com/mrjackyliang/homebridge-adt-pulse#readme) file. Should you encounter any issues, such as crashes or unexpected results, please [create a new issue](https://github.com/mrjackyliang/homebridge-adt-pulse/issues/new/choose) on GitHub.",
|
|
7
7
|
"schema": {
|
|
8
8
|
"type": "object",
|
|
9
9
|
"properties": {
|
|
10
10
|
"name": {
|
|
11
11
|
"title": "Name",
|
|
12
12
|
"type": "string",
|
|
13
|
+
"required": true,
|
|
14
|
+
"description": "Enter a unique name for this plugin. The name will mainly be used for identification purposes, such as in Homebridge logs.",
|
|
13
15
|
"default": "ADT Pulse",
|
|
16
|
+
"placeholder": "ADT Pulse",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"maxLength": 50
|
|
19
|
+
},
|
|
20
|
+
"subdomain": {
|
|
21
|
+
"title": "Portal Region",
|
|
22
|
+
"type": "string",
|
|
14
23
|
"required": true,
|
|
15
|
-
"description": "
|
|
24
|
+
"description": "Select the portal region based on where you are subscribed in. For subscribers in Canada, choose \"Canada\" from the dropdown menu.",
|
|
25
|
+
"oneOf": [
|
|
26
|
+
{
|
|
27
|
+
"title": "United States \uD83C\uDDFA\uD83C\uDDF8 - portal.adtpulse.com</span>",
|
|
28
|
+
"enum": [
|
|
29
|
+
"portal"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Canada \uD83C\uDDE8\uD83C\uDDE6 - portal-ca.adtpulse.com",
|
|
34
|
+
"enum": [
|
|
35
|
+
"portal-ca"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"default": "portal"
|
|
16
40
|
},
|
|
17
41
|
"username": {
|
|
18
42
|
"title": "Username",
|
|
19
43
|
"type": "string",
|
|
20
|
-
"default": "",
|
|
21
44
|
"required": true,
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
45
|
+
"description": "Provide the username you use to login to the portal.",
|
|
46
|
+
"placeholder": "e.g. user@example.com",
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"maxLength": 100
|
|
26
49
|
},
|
|
27
50
|
"password": {
|
|
28
51
|
"title": "Password",
|
|
29
52
|
"type": "string",
|
|
30
|
-
"default": "",
|
|
31
53
|
"required": true,
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
54
|
+
"description": "Provide the password you use to login to the portal.",
|
|
55
|
+
"placeholder": "e.g. Mys7r0nG!P@ssw0rd",
|
|
56
|
+
"minLength": 1,
|
|
57
|
+
"maxLength": 300
|
|
35
58
|
},
|
|
36
59
|
"fingerprint": {
|
|
37
|
-
"title": "
|
|
60
|
+
"title": "Fingerprint",
|
|
38
61
|
"type": "string",
|
|
39
|
-
"default": "",
|
|
40
62
|
"required": true,
|
|
41
|
-
"description": "
|
|
63
|
+
"description": "After logging in and selecting \"Trust this device\", paste in the device fingerprint generated through the <a href=\"https://raw.githack.com/mrjackyliang/homebridge-adt-pulse/main/fingerprint/index.html\" target=\"_blank\">ADT Pulse Device Fingerprint Detector</a>.",
|
|
64
|
+
"placeholder": "e.g. VGhpc0lzQVNlY3VyZVBhc3N3b3JkMTIzIQ==",
|
|
65
|
+
"minLength": 1,
|
|
66
|
+
"maxLength": 5120
|
|
42
67
|
},
|
|
43
|
-
"
|
|
44
|
-
"title": "
|
|
68
|
+
"mode": {
|
|
69
|
+
"title": "Operational Mode",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"required": true,
|
|
72
|
+
"description": "Choose the operational mode for the plugin. Debug mode is enabled only when Homebridge debug mode is on; there is no separate setting for this.",
|
|
73
|
+
"oneOf": [
|
|
74
|
+
{
|
|
75
|
+
"title": "Normal",
|
|
76
|
+
"enum": [
|
|
77
|
+
"normal"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"title": "Paused",
|
|
82
|
+
"enum": [
|
|
83
|
+
"paused"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"title": "Reset (danger)",
|
|
88
|
+
"enum": [
|
|
89
|
+
"reset"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"default": "normal"
|
|
94
|
+
},
|
|
95
|
+
"speed": {
|
|
96
|
+
"title": "Operational Speed",
|
|
97
|
+
"type": "number",
|
|
98
|
+
"required": true,
|
|
99
|
+
"description": "Choose the operational speed for the plugin. Designed to enhance the performance of devices with older hardware. May result in slower device updates.",
|
|
100
|
+
"oneOf": [
|
|
101
|
+
{
|
|
102
|
+
"title": "Normal Speed (1x)",
|
|
103
|
+
"enum": [
|
|
104
|
+
1
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"title": "Moderate Speed (0.75x)",
|
|
109
|
+
"enum": [
|
|
110
|
+
0.75
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"title": "Slower Speed (0.5x)",
|
|
115
|
+
"enum": [
|
|
116
|
+
0.5
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"title": "Slowest Speed (0.25x)",
|
|
121
|
+
"enum": [
|
|
122
|
+
0.25
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"default": 1
|
|
127
|
+
},
|
|
128
|
+
"sensors": {
|
|
129
|
+
"title": "Sensors",
|
|
45
130
|
"type": "array",
|
|
131
|
+
"required": true,
|
|
132
|
+
"description": "Define your sensors here. Sensors include devices like \"Door/Window Sensor\" or \"Motion Sensor\". <strong class=\"font-weight-bold\">Please note that Z-Wave accessories are not supported.</strong> Ensure at least one sensor is specified for proper functionality.",
|
|
46
133
|
"items": {
|
|
47
134
|
"type": "object",
|
|
48
135
|
"properties": {
|
|
49
136
|
"name": {
|
|
50
137
|
"title": "Name",
|
|
51
138
|
"type": "string",
|
|
52
|
-
"
|
|
139
|
+
"required": false,
|
|
140
|
+
"description": "<strong class=\"font-weight-bold\">Optional.</strong> Provide a display name for this sensor to differentiate it from the names assigned by ADT technicians during installation.",
|
|
141
|
+
"placeholder": "e.g. Family Room Couch Window 1",
|
|
142
|
+
"minLength": 1,
|
|
143
|
+
"maxLength": 50
|
|
144
|
+
},
|
|
145
|
+
"adtName": {
|
|
146
|
+
"title": "ADT Sensor Name",
|
|
147
|
+
"type": "string",
|
|
53
148
|
"required": true,
|
|
54
|
-
"description": "
|
|
149
|
+
"description": "Specify the <strong class=\"font-weight-bold\">exact name</strong> associated with the sensor you want to add. Double-check the names to ensure they don't include extra characters when copying and pasting.",
|
|
150
|
+
"placeholder": "e.g. Family Room Window (99)",
|
|
151
|
+
"minLength": 1,
|
|
152
|
+
"maxLength": 100
|
|
55
153
|
},
|
|
56
|
-
"
|
|
57
|
-
"title": "Type",
|
|
154
|
+
"adtType": {
|
|
155
|
+
"title": "ADT Sensor Type",
|
|
58
156
|
"type": "string",
|
|
59
|
-
"
|
|
157
|
+
"required": true,
|
|
158
|
+
"description": "Select the <strong class=\"font-weight-bold\">type</strong> associated with the sensor you want to add. Ensure your selection matches the sensor type, as selecting the wrong type may lead to incorrect status detection.",
|
|
60
159
|
"oneOf": [
|
|
61
160
|
{
|
|
62
|
-
"title": "
|
|
161
|
+
"title": "Carbon Monoxide Detector",
|
|
162
|
+
"enum": [
|
|
163
|
+
"co"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"title": "Door/Window Sensor / Door Sensor / Window Sensor",
|
|
168
|
+
"enum": [
|
|
169
|
+
"doorWindow"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"title": "Fire (Smoke/Heat) Detector",
|
|
63
174
|
"enum": [
|
|
64
|
-
"
|
|
175
|
+
"fire"
|
|
65
176
|
]
|
|
66
177
|
},
|
|
67
178
|
{
|
|
68
179
|
"title": "Glass Break Detector",
|
|
69
180
|
"enum": [
|
|
70
|
-
"
|
|
181
|
+
"glass"
|
|
71
182
|
]
|
|
72
183
|
},
|
|
73
184
|
{
|
|
74
|
-
"title": "Motion Sensor",
|
|
185
|
+
"title": "Motion Sensor / Motion Sensor (Notable Events Only)",
|
|
75
186
|
"enum": [
|
|
76
|
-
"
|
|
187
|
+
"motion"
|
|
77
188
|
]
|
|
78
189
|
},
|
|
79
190
|
{
|
|
80
|
-
"title": "
|
|
191
|
+
"title": "Temperature Sensor",
|
|
81
192
|
"enum": [
|
|
82
|
-
"
|
|
193
|
+
"temperature"
|
|
83
194
|
]
|
|
84
195
|
},
|
|
85
196
|
{
|
|
86
|
-
"title": "
|
|
197
|
+
"title": "Water/Flood Sensor",
|
|
87
198
|
"enum": [
|
|
88
|
-
"
|
|
199
|
+
"flood"
|
|
89
200
|
]
|
|
90
201
|
}
|
|
91
|
-
]
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"adtZone": {
|
|
205
|
+
"title": "ADT Sensor Zone",
|
|
206
|
+
"type": "number",
|
|
92
207
|
"required": true,
|
|
93
|
-
"description": "
|
|
208
|
+
"description": "Specify the <strong class=\"font-weight-bold\">exact zone</strong> associated with the sensor you want to add. Double-check the zone to ensure the correct sensor is added.",
|
|
209
|
+
"placeholder": "e.g. 99",
|
|
210
|
+
"minimum": 1,
|
|
211
|
+
"maximum": 99
|
|
94
212
|
}
|
|
95
213
|
}
|
|
96
214
|
},
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
"country": {
|
|
100
|
-
"title": "Country",
|
|
101
|
-
"type": "string",
|
|
102
|
-
"default": "us",
|
|
103
|
-
"oneOf": [
|
|
104
|
-
{
|
|
105
|
-
"title": "United States",
|
|
106
|
-
"enum": [
|
|
107
|
-
"us"
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"title": "Canada",
|
|
112
|
-
"enum": [
|
|
113
|
-
"ca"
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"required": false,
|
|
118
|
-
"description": "Select a country where ADT Pulse will connect to"
|
|
119
|
-
},
|
|
120
|
-
"logLevel": {
|
|
121
|
-
"title": "Log Level",
|
|
122
|
-
"type": "integer",
|
|
123
|
-
"default": 30,
|
|
124
|
-
"oneOf": [
|
|
125
|
-
{
|
|
126
|
-
"title": "Errors (Level 10)",
|
|
127
|
-
"enum": [
|
|
128
|
-
10
|
|
129
|
-
]
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"title": "Warnings (Level 20)",
|
|
133
|
-
"enum": [
|
|
134
|
-
20
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"title": "Info (Level 30)",
|
|
139
|
-
"enum": [
|
|
140
|
-
30
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"title": "Debug (Level 40)",
|
|
145
|
-
"enum": [
|
|
146
|
-
40
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"title": "Verbose (Level 50)",
|
|
151
|
-
"enum": [
|
|
152
|
-
50
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"required": false,
|
|
157
|
-
"pattern": "^([1-5])([0])$",
|
|
158
|
-
"description": "Higher levels mean more logs will show. Turn on Homebridge Debug Mode for levels 40 and 50. Recommended setting is \"Info (Level 30)\""
|
|
159
|
-
},
|
|
160
|
-
"logActivity": {
|
|
161
|
-
"title": "Log Activity",
|
|
162
|
-
"type": "boolean",
|
|
163
|
-
"default": true,
|
|
164
|
-
"required": false
|
|
165
|
-
},
|
|
166
|
-
"removeObsoleteZones": {
|
|
167
|
-
"title": "Remove Obsolete Zones",
|
|
168
|
-
"type": "boolean",
|
|
169
|
-
"default": true,
|
|
170
|
-
"required": false
|
|
171
|
-
},
|
|
172
|
-
"pausePlugin": {
|
|
173
|
-
"title": "Pause Plugin",
|
|
174
|
-
"type": "boolean",
|
|
175
|
-
"default": false,
|
|
176
|
-
"required": false
|
|
177
|
-
},
|
|
178
|
-
"resetAll": {
|
|
179
|
-
"title": "Reset Plugin \uD83D\uDED1",
|
|
180
|
-
"type": "boolean",
|
|
181
|
-
"default": false,
|
|
182
|
-
"required": false
|
|
215
|
+
"minItems": 1,
|
|
216
|
+
"maxItems": 148
|
|
183
217
|
}
|
|
184
218
|
}
|
|
185
219
|
},
|
|
186
220
|
"layout": [
|
|
187
221
|
{
|
|
188
|
-
"
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
222
|
+
"type": "tabs",
|
|
223
|
+
"tabs": [
|
|
224
|
+
{
|
|
225
|
+
"title": "General",
|
|
226
|
+
"htmlClass": "px-3 pt-3 pb-0",
|
|
227
|
+
"items": [
|
|
228
|
+
{
|
|
229
|
+
"key": "name",
|
|
230
|
+
"type": "text"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"key": "mode",
|
|
234
|
+
"type": "select"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"key": "speed",
|
|
238
|
+
"type": "select"
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
195
242
|
{
|
|
196
|
-
"
|
|
197
|
-
"
|
|
243
|
+
"title": "Login",
|
|
244
|
+
"htmlClass": "px-3 pt-3 pb-0",
|
|
245
|
+
"items": [
|
|
246
|
+
{
|
|
247
|
+
"key": "subdomain",
|
|
248
|
+
"type": "select"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"key": "username",
|
|
252
|
+
"type": "text"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"key": "password",
|
|
256
|
+
"type": "password"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"key": "fingerprint",
|
|
260
|
+
"type": "password"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"type": "help",
|
|
264
|
+
"helpvalue": "<div class=\"alert alert-primary\" role=\"alert\">If you wish, you can optionally view the \"Device Details\" tab to see what information the device fingerprint contains about your browser.</div>"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
198
267
|
},
|
|
199
268
|
{
|
|
200
|
-
"
|
|
201
|
-
"
|
|
269
|
+
"title": "Devices",
|
|
270
|
+
"htmlClass": "px-3 pt-3 pb-0",
|
|
271
|
+
"items": [
|
|
272
|
+
{
|
|
273
|
+
"key": "sensors",
|
|
274
|
+
"htmlClass": "p-10",
|
|
275
|
+
"buttonText": "Add Sensor",
|
|
276
|
+
"items": [
|
|
277
|
+
{
|
|
278
|
+
"type": "div",
|
|
279
|
+
"htmlClass": "my-3",
|
|
280
|
+
"items": [
|
|
281
|
+
{
|
|
282
|
+
"key": "sensors[].name",
|
|
283
|
+
"type": "text"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"key": "sensors[].adtName",
|
|
287
|
+
"type": "text"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"key": "sensors[].adtType",
|
|
291
|
+
"type": "select"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"key": "sensors[].adtZone",
|
|
295
|
+
"type": "number"
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
]
|
|
202
302
|
}
|
|
203
303
|
]
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"key": "fingerprint"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"key": "overrideSensors",
|
|
210
|
-
"buttonText": "Add Sensor",
|
|
211
|
-
"items": [
|
|
212
|
-
"overrideSensors[].name",
|
|
213
|
-
"overrideSensors[].type"
|
|
214
|
-
]
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"key": "country"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"key": "logLevel"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"key": "logActivity"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"key": "removeObsoleteZones"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"key": "pausePlugin"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"key": "resetAll"
|
|
233
304
|
}
|
|
234
305
|
],
|
|
235
306
|
"form": null,
|
|
@@ -75,18 +75,45 @@ export class ADTPulsePlatform {
|
|
|
75
75
|
logger: this.#log,
|
|
76
76
|
});
|
|
77
77
|
this.printSystemInformation();
|
|
78
|
-
this.#log.info(
|
|
79
|
-
if (this.#config.
|
|
78
|
+
this.#log.info('The API gathers anonymous analytics to detect potential bugs or issues. All personally identifiable information redacted. You will see exactly what will be sent out.');
|
|
79
|
+
if (this.#config.mode === 'paused') {
|
|
80
80
|
this.#log.warn('Plugin is now paused and all related accessories will no longer respond.');
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
|
-
if (this.#config.
|
|
83
|
+
if (this.#config.mode === 'reset') {
|
|
84
|
+
let warningCount = 0;
|
|
85
|
+
let warningTerm = '';
|
|
86
|
+
this.#log.warn('Plugin started in reset mode and will remove all accessories shortly.');
|
|
87
|
+
await sleep(10000);
|
|
88
|
+
for (let i = 3; i >= 1; i -= 1) {
|
|
89
|
+
const seconds = 10 * i;
|
|
90
|
+
warningCount += 1;
|
|
91
|
+
switch (warningCount) {
|
|
92
|
+
case 1:
|
|
93
|
+
warningTerm = 'FIRST';
|
|
94
|
+
break;
|
|
95
|
+
case 2:
|
|
96
|
+
warningTerm = 'SECOND';
|
|
97
|
+
break;
|
|
98
|
+
case 3:
|
|
99
|
+
default:
|
|
100
|
+
warningTerm = 'FINAL';
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
this.#log.warn(`${warningTerm} WARNING! ${seconds} SECONDS REMAINING before all related accessories are removed.`);
|
|
104
|
+
await sleep(10000);
|
|
105
|
+
}
|
|
84
106
|
this.#log.warn('Plugin is now removing all related accessories from Homebridge ...');
|
|
85
107
|
for (let i = this.accessories.length - 1; i >= 0; i -= 1) {
|
|
86
108
|
this.removeAccessory(this.accessories[i]);
|
|
87
109
|
}
|
|
110
|
+
this.#log.warn('Plugin finished removing all related accessories from Homebridge.');
|
|
88
111
|
return;
|
|
89
112
|
}
|
|
113
|
+
if (this.#config.speed !== 1) {
|
|
114
|
+
this.#log.warn(`Plugin is now running under ${this.#config.speed}x operational speed. You may see slower device updates.`);
|
|
115
|
+
this.#constants.intervalTimestamps.synchronize *= (1 / this.#config.speed);
|
|
116
|
+
}
|
|
90
117
|
this.synchronize();
|
|
91
118
|
});
|
|
92
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../../../src/lib/platform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,C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O,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3C,MAAM,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAG7G,IAAI,cAAc,IAAI,CAAC,EAAE,CAAC;gBACxB,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;YACnC,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
package/build/src/lib/schema.js
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export const platformConfig = z.object({
|
|
3
3
|
platform: z.literal('ADTPulse'),
|
|
4
|
-
name: z.string().
|
|
4
|
+
name: z.string().min(1).max(50),
|
|
5
5
|
subdomain: z.union([
|
|
6
6
|
z.literal('portal'),
|
|
7
7
|
z.literal('portal-ca'),
|
|
8
8
|
]),
|
|
9
|
-
username: z.string().min(1),
|
|
10
|
-
password: z.string().min(1),
|
|
11
|
-
fingerprint: z.string().min(1),
|
|
9
|
+
username: z.string().min(1).max(100),
|
|
10
|
+
password: z.string().min(1).max(300),
|
|
11
|
+
fingerprint: z.string().min(1).max(5120),
|
|
12
|
+
mode: z.union([
|
|
13
|
+
z.literal('normal'),
|
|
14
|
+
z.literal('paused'),
|
|
15
|
+
z.literal('reset'),
|
|
16
|
+
]),
|
|
17
|
+
speed: z.union([
|
|
18
|
+
z.literal(1),
|
|
19
|
+
z.literal(0.75),
|
|
20
|
+
z.literal(0.5),
|
|
21
|
+
z.literal(0.25),
|
|
22
|
+
]),
|
|
12
23
|
sensors: z.array(z.object({
|
|
13
|
-
name: z.string().optional(),
|
|
14
|
-
adtName: z.string().min(1),
|
|
24
|
+
name: z.string().min(1).max(50).optional(),
|
|
25
|
+
adtName: z.string().min(1).max(100),
|
|
15
26
|
adtType: z.union([
|
|
16
27
|
z.literal('co'),
|
|
17
28
|
z.literal('doorWindow'),
|
|
@@ -21,9 +32,7 @@ export const platformConfig = z.object({
|
|
|
21
32
|
z.literal('motion'),
|
|
22
33
|
z.literal('temperature'),
|
|
23
34
|
]),
|
|
24
|
-
adtZone: z.number().
|
|
25
|
-
})).min(1),
|
|
26
|
-
pause: z.boolean().optional(),
|
|
27
|
-
reset: z.boolean().optional(),
|
|
35
|
+
adtZone: z.number().min(1).max(99),
|
|
36
|
+
})).min(1).max(148),
|
|
28
37
|
});
|
|
29
38
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/lib/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/lib/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC;QACjB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;QACnB,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;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AAC,OAAO,CAAC,OAAO,CAAC;YAClB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;SACzB,CAAC;QACF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;KACnC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACpB,CAAC,CAAC"}
|
package/config.schema.json
CHANGED
|
@@ -1,237 +1,308 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"pluginAlias": "ADTPulse",
|
|
3
|
+
"pluginType": "platform",
|
|
4
|
+
"singular": true,
|
|
5
|
+
"headerDisplay": "Welcome to the configuration page for **[ADT Pulse for Homebridge](https://github.com/mrjackyliang/homebridge-adt-pulse)**! You will find customizable settings to tailor your experience here. Start by inputting your login credentials, and then specify the sensors you want to incorporate into this setup.",
|
|
6
|
+
"footerDisplay": "For further assistance, please consult the [readme](https://github.com/mrjackyliang/homebridge-adt-pulse#readme) file. Should you encounter any issues, such as crashes or unexpected results, please [create a new issue](https://github.com/mrjackyliang/homebridge-adt-pulse/issues/new/choose) on GitHub.",
|
|
7
|
+
"schema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"name": {
|
|
11
|
+
"title": "Name",
|
|
12
|
+
"type": "string",
|
|
13
|
+
"required": true,
|
|
14
|
+
"description": "Enter a unique name for this plugin. The name will mainly be used for identification purposes, such as in Homebridge logs.",
|
|
15
|
+
"default": "ADT Pulse",
|
|
16
|
+
"placeholder": "ADT Pulse",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"maxLength": 50
|
|
19
|
+
},
|
|
20
|
+
"subdomain": {
|
|
21
|
+
"title": "Portal Region",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"required": true,
|
|
24
|
+
"description": "Select the portal region based on where you are subscribed in. For subscribers in Canada, choose \"Canada\" from the dropdown menu.",
|
|
25
|
+
"oneOf": [
|
|
26
|
+
{
|
|
27
|
+
"title": "United States \uD83C\uDDFA\uD83C\uDDF8 - portal.adtpulse.com</span>",
|
|
28
|
+
"enum": [
|
|
29
|
+
"portal"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Canada \uD83C\uDDE8\uD83C\uDDE6 - portal-ca.adtpulse.com",
|
|
34
|
+
"enum": [
|
|
35
|
+
"portal-ca"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"default": "portal"
|
|
40
|
+
},
|
|
41
|
+
"username": {
|
|
42
|
+
"title": "Username",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"required": true,
|
|
45
|
+
"description": "Provide the username you use to login to the portal.",
|
|
46
|
+
"placeholder": "e.g. user@example.com",
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"maxLength": 100
|
|
49
|
+
},
|
|
50
|
+
"password": {
|
|
51
|
+
"title": "Password",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"required": true,
|
|
54
|
+
"description": "Provide the password you use to login to the portal.",
|
|
55
|
+
"placeholder": "e.g. Mys7r0nG!P@ssw0rd",
|
|
56
|
+
"minLength": 1,
|
|
57
|
+
"maxLength": 300
|
|
58
|
+
},
|
|
59
|
+
"fingerprint": {
|
|
60
|
+
"title": "Fingerprint",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"required": true,
|
|
63
|
+
"description": "After logging in and selecting \"Trust this device\", paste in the device fingerprint generated through the <a href=\"https://raw.githack.com/mrjackyliang/homebridge-adt-pulse/main/fingerprint/index.html\" target=\"_blank\">ADT Pulse Device Fingerprint Detector</a>.",
|
|
64
|
+
"placeholder": "e.g. VGhpc0lzQVNlY3VyZVBhc3N3b3JkMTIzIQ==",
|
|
65
|
+
"minLength": 1,
|
|
66
|
+
"maxLength": 5120
|
|
67
|
+
},
|
|
68
|
+
"mode": {
|
|
69
|
+
"title": "Operational Mode",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"required": true,
|
|
72
|
+
"description": "Choose the operational mode for the plugin. Debug mode is enabled only when Homebridge debug mode is on; there is no separate setting for this.",
|
|
73
|
+
"oneOf": [
|
|
74
|
+
{
|
|
75
|
+
"title": "Normal",
|
|
76
|
+
"enum": [
|
|
77
|
+
"normal"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"title": "Paused",
|
|
82
|
+
"enum": [
|
|
83
|
+
"paused"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"title": "Reset (danger)",
|
|
88
|
+
"enum": [
|
|
89
|
+
"reset"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"default": "normal"
|
|
94
|
+
},
|
|
95
|
+
"speed": {
|
|
96
|
+
"title": "Operational Speed",
|
|
97
|
+
"type": "number",
|
|
98
|
+
"required": true,
|
|
99
|
+
"description": "Choose the operational speed for the plugin. Designed to enhance the performance of devices with older hardware. May result in slower device updates.",
|
|
100
|
+
"oneOf": [
|
|
101
|
+
{
|
|
102
|
+
"title": "Normal Speed (1x)",
|
|
103
|
+
"enum": [
|
|
104
|
+
1
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"title": "Moderate Speed (0.75x)",
|
|
109
|
+
"enum": [
|
|
110
|
+
0.75
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"title": "Slower Speed (0.5x)",
|
|
115
|
+
"enum": [
|
|
116
|
+
0.5
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"title": "Slowest Speed (0.25x)",
|
|
121
|
+
"enum": [
|
|
122
|
+
0.25
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"default": 1
|
|
127
|
+
},
|
|
128
|
+
"sensors": {
|
|
129
|
+
"title": "Sensors",
|
|
130
|
+
"type": "array",
|
|
131
|
+
"required": true,
|
|
132
|
+
"description": "Define your sensors here. Sensors include devices like \"Door/Window Sensor\" or \"Motion Sensor\". <strong class=\"font-weight-bold\">Please note that Z-Wave accessories are not supported.</strong> Ensure at least one sensor is specified for proper functionality.",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
10
136
|
"name": {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
137
|
+
"title": "Name",
|
|
138
|
+
"type": "string",
|
|
139
|
+
"required": false,
|
|
140
|
+
"description": "<strong class=\"font-weight-bold\">Optional.</strong> Provide a display name for this sensor to differentiate it from the names assigned by ADT technicians during installation.",
|
|
141
|
+
"placeholder": "e.g. Family Room Couch Window 1",
|
|
142
|
+
"minLength": 1,
|
|
143
|
+
"maxLength": 50
|
|
144
|
+
},
|
|
145
|
+
"adtName": {
|
|
146
|
+
"title": "ADT Sensor Name",
|
|
147
|
+
"type": "string",
|
|
148
|
+
"required": true,
|
|
149
|
+
"description": "Specify the <strong class=\"font-weight-bold\">exact name</strong> associated with the sensor you want to add. Double-check the names to ensure they don't include extra characters when copying and pasting.",
|
|
150
|
+
"placeholder": "e.g. Family Room Window (99)",
|
|
151
|
+
"minLength": 1,
|
|
152
|
+
"maxLength": 100
|
|
16
153
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
154
|
+
"adtType": {
|
|
155
|
+
"title": "ADT Sensor Type",
|
|
156
|
+
"type": "string",
|
|
157
|
+
"required": true,
|
|
158
|
+
"description": "Select the <strong class=\"font-weight-bold\">type</strong> associated with the sensor you want to add. Ensure your selection matches the sensor type, as selecting the wrong type may lead to incorrect status detection.",
|
|
159
|
+
"oneOf": [
|
|
160
|
+
{
|
|
161
|
+
"title": "Carbon Monoxide Detector",
|
|
162
|
+
"enum": [
|
|
163
|
+
"co"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"title": "Door/Window Sensor / Door Sensor / Window Sensor",
|
|
168
|
+
"enum": [
|
|
169
|
+
"doorWindow"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"title": "Fire (Smoke/Heat) Detector",
|
|
174
|
+
"enum": [
|
|
175
|
+
"fire"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"title": "Glass Break Detector",
|
|
180
|
+
"enum": [
|
|
181
|
+
"glass"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"title": "Motion Sensor / Motion Sensor (Notable Events Only)",
|
|
186
|
+
"enum": [
|
|
187
|
+
"motion"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"title": "Temperature Sensor",
|
|
192
|
+
"enum": [
|
|
193
|
+
"temperature"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"title": "Water/Flood Sensor",
|
|
198
|
+
"enum": [
|
|
199
|
+
"flood"
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
]
|
|
26
203
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
204
|
+
"adtZone": {
|
|
205
|
+
"title": "ADT Sensor Zone",
|
|
206
|
+
"type": "number",
|
|
207
|
+
"required": true,
|
|
208
|
+
"description": "Specify the <strong class=\"font-weight-bold\">exact zone</strong> associated with the sensor you want to add. Double-check the zone to ensure the correct sensor is added.",
|
|
209
|
+
"placeholder": "e.g. 99",
|
|
210
|
+
"minimum": 1,
|
|
211
|
+
"maximum": 99
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"minItems": 1,
|
|
216
|
+
"maxItems": 148
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"layout": [
|
|
221
|
+
{
|
|
222
|
+
"type": "tabs",
|
|
223
|
+
"tabs": [
|
|
224
|
+
{
|
|
225
|
+
"title": "General",
|
|
226
|
+
"htmlClass": "px-3 pt-3 pb-0",
|
|
227
|
+
"items": [
|
|
228
|
+
{
|
|
229
|
+
"key": "name",
|
|
230
|
+
"type": "text"
|
|
35
231
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"default": "",
|
|
40
|
-
"required": true,
|
|
41
|
-
"description": "MFA Fingerprint from browser registered with ADT Pulse"
|
|
232
|
+
{
|
|
233
|
+
"key": "mode",
|
|
234
|
+
"type": "select"
|
|
42
235
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"type": {
|
|
57
|
-
"title": "Type",
|
|
58
|
-
"type": "string",
|
|
59
|
-
"default": "",
|
|
60
|
-
"oneOf": [
|
|
61
|
-
{
|
|
62
|
-
"title": "Door/Window Sensor",
|
|
63
|
-
"enum": [
|
|
64
|
-
"sensor,doorWindow"
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"title": "Glass Break Detector",
|
|
69
|
-
"enum": [
|
|
70
|
-
"sensor,glass"
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"title": "Motion Sensor",
|
|
75
|
-
"enum": [
|
|
76
|
-
"sensor,motion"
|
|
77
|
-
]
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"title": "Carbon Monoxide Detector",
|
|
81
|
-
"enum": [
|
|
82
|
-
"sensor,co"
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"title": "Fire (Smoke/Heat) Detector",
|
|
87
|
-
"enum": [
|
|
88
|
-
"sensor,fire"
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"required": true,
|
|
93
|
-
"description": "The sensor type for the sensor you would like to override"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"description": "When a sensor cannot be detected accurately, you can manually set the sensor here to override the default detection features"
|
|
236
|
+
{
|
|
237
|
+
"key": "speed",
|
|
238
|
+
"type": "select"
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"title": "Login",
|
|
244
|
+
"htmlClass": "px-3 pt-3 pb-0",
|
|
245
|
+
"items": [
|
|
246
|
+
{
|
|
247
|
+
"key": "subdomain",
|
|
248
|
+
"type": "select"
|
|
98
249
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"default": "us",
|
|
103
|
-
"oneOf": [
|
|
104
|
-
{
|
|
105
|
-
"title": "United States",
|
|
106
|
-
"enum": [
|
|
107
|
-
"us"
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"title": "Canada",
|
|
112
|
-
"enum": [
|
|
113
|
-
"ca"
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"required": false,
|
|
118
|
-
"description": "Select a country where ADT Pulse will connect to"
|
|
250
|
+
{
|
|
251
|
+
"key": "username",
|
|
252
|
+
"type": "text"
|
|
119
253
|
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
254
|
+
{
|
|
255
|
+
"key": "password",
|
|
256
|
+
"type": "password"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"key": "fingerprint",
|
|
260
|
+
"type": "password"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"type": "help",
|
|
264
|
+
"helpvalue": "<div class=\"alert alert-primary\" role=\"alert\">If you wish, you can optionally view the \"Device Details\" tab to see what information the device fingerprint contains about your browser.</div>"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"title": "Devices",
|
|
270
|
+
"htmlClass": "px-3 pt-3 pb-0",
|
|
271
|
+
"items": [
|
|
272
|
+
{
|
|
273
|
+
"key": "sensors",
|
|
274
|
+
"htmlClass": "p-10",
|
|
275
|
+
"buttonText": "Add Sensor",
|
|
276
|
+
"items": [
|
|
277
|
+
{
|
|
278
|
+
"type": "div",
|
|
279
|
+
"htmlClass": "my-3",
|
|
280
|
+
"items": [
|
|
131
281
|
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
20
|
|
135
|
-
]
|
|
282
|
+
"key": "sensors[].name",
|
|
283
|
+
"type": "text"
|
|
136
284
|
},
|
|
137
285
|
{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
30
|
|
141
|
-
]
|
|
286
|
+
"key": "sensors[].adtName",
|
|
287
|
+
"type": "text"
|
|
142
288
|
},
|
|
143
289
|
{
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
40
|
|
147
|
-
]
|
|
290
|
+
"key": "sensors[].adtType",
|
|
291
|
+
"type": "select"
|
|
148
292
|
},
|
|
149
293
|
{
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
50
|
|
153
|
-
]
|
|
294
|
+
"key": "sensors[].adtZone",
|
|
295
|
+
"type": "number"
|
|
154
296
|
}
|
|
155
|
-
|
|
156
|
-
"required": false,
|
|
157
|
-
"pattern": "^([1-5])([0])$",
|
|
158
|
-
"description": "Higher levels mean more logs will show. Turn on Homebridge Debug Mode for levels 40 and 50. Recommended setting is \"Info (Level 30)\""
|
|
159
|
-
},
|
|
160
|
-
"logActivity": {
|
|
161
|
-
"title": "Log Activity",
|
|
162
|
-
"type": "boolean",
|
|
163
|
-
"default": true,
|
|
164
|
-
"required": false
|
|
165
|
-
},
|
|
166
|
-
"removeObsoleteZones": {
|
|
167
|
-
"title": "Remove Obsolete Zones",
|
|
168
|
-
"type": "boolean",
|
|
169
|
-
"default": true,
|
|
170
|
-
"required": false
|
|
171
|
-
},
|
|
172
|
-
"pausePlugin": {
|
|
173
|
-
"title": "Pause Plugin",
|
|
174
|
-
"type": "boolean",
|
|
175
|
-
"default": false,
|
|
176
|
-
"required": false
|
|
177
|
-
},
|
|
178
|
-
"resetAll": {
|
|
179
|
-
"title": "Reset Plugin \uD83D\uDED1",
|
|
180
|
-
"type": "boolean",
|
|
181
|
-
"default": false,
|
|
182
|
-
"required": false
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
"layout": [
|
|
187
|
-
{
|
|
188
|
-
"key": "name"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"display": "flex",
|
|
192
|
-
"flex-flow": "row nowrap",
|
|
193
|
-
"justify-content": "space-between",
|
|
194
|
-
"items": [
|
|
195
|
-
{
|
|
196
|
-
"key": "username",
|
|
197
|
-
"flex": "1 0 0px"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"key": "password",
|
|
201
|
-
"flex": "1 0 0px"
|
|
297
|
+
]
|
|
202
298
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
"key": "fingerprint"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"key": "overrideSensors",
|
|
210
|
-
"buttonText": "Add Sensor",
|
|
211
|
-
"items": [
|
|
212
|
-
"overrideSensors[].name",
|
|
213
|
-
"overrideSensors[].type"
|
|
214
|
-
]
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"key": "country"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"key": "logLevel"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"key": "logActivity"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"key": "removeObsoleteZones"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"key": "pausePlugin"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"key": "resetAll"
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
]
|
|
233
302
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"form": null,
|
|
307
|
+
"display": null
|
|
237
308
|
}
|
package/package.json
CHANGED