matterbridge-zigbee2mqtt 2.4.7-dev.1 → 2.5.0-dev.2

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.
@@ -7,12 +7,14 @@
7
7
  "name": {
8
8
  "description": "Plugin name",
9
9
  "type": "string",
10
- "readOnly": true
10
+ "readOnly": true,
11
+ "ui:widget": "hidden"
11
12
  },
12
13
  "type": {
13
14
  "description": "Plugin type",
14
15
  "type": "string",
15
- "readOnly": true
16
+ "readOnly": true,
17
+ "ui:widget": "hidden"
16
18
  },
17
19
  "host": {
18
20
  "description": "MQTT server host (IP address or hostname without mqtt://)",
@@ -25,7 +27,8 @@
25
27
  },
26
28
  "password": {
27
29
  "description": "MQTT server authentication password",
28
- "type": "string"
30
+ "type": "string",
31
+ "ui:widget": "password"
29
32
  },
30
33
  "port": {
31
34
  "description": "MQTT server port (default 1883)",
@@ -43,12 +46,12 @@
43
46
  "default": "zigbee2mqtt"
44
47
  },
45
48
  "zigbeeFrontend": {
46
- "description": "Zigbee frontend host to prefix the configUrl",
49
+ "description": "Zigbee frontend host to prefix the configUrl (i.e. http://192.168.1.100:8080)",
47
50
  "type": "string",
48
51
  "default": "http://localhost:8080"
49
52
  },
50
- "blackList": {
51
- "description": "The devices in the list will not be exposed.",
53
+ "whiteList": {
54
+ "description": "Only the devices in the list will be exposed. If the list is empty, all the devices will be exposed.",
52
55
  "type": "array",
53
56
  "items": {
54
57
  "type": "string"
@@ -56,8 +59,8 @@
56
59
  "uniqueItems": true,
57
60
  "selectFrom": "name"
58
61
  },
59
- "whiteList": {
60
- "description": "Only the devices in the list will be exposed.",
62
+ "blackList": {
63
+ "description": "The devices in the list will not be exposed. If the list is empty, no devices will be excluded.",
61
64
  "type": "array",
62
65
  "items": {
63
66
  "type": "string"
@@ -116,16 +119,39 @@
116
119
  "selectDeviceEntityFrom": "name"
117
120
  }
118
121
  },
122
+ "scenesType": {
123
+ "description": "Device type to use to expose scenes",
124
+ "type": "string",
125
+ "oneOf": [
126
+ {
127
+ "title": "Light",
128
+ "enum": ["light"]
129
+ },
130
+ {
131
+ "title": "Outlet",
132
+ "enum": ["outlet"]
133
+ },
134
+ {
135
+ "title": "Switch",
136
+ "enum": ["switch"]
137
+ },
138
+ {
139
+ "title": "Mounted Switch",
140
+ "enum": ["mounted_switch"]
141
+ }
142
+ ],
143
+ "default": "outlet"
144
+ },
145
+ "scenesPrefix": {
146
+ "description": "Add the device/group friendly name before the scene name.",
147
+ "type": "boolean",
148
+ "default": true
149
+ },
119
150
  "postfix": {
120
151
  "description": "Add this unique postfix (3 characters max) to each device serial to avoid collision with other instances (you may loose the configuration of the devices in your controller when changing this value).",
121
152
  "type": "string",
122
153
  "default": ""
123
154
  },
124
- "postfixHostname": {
125
- "description": "DEPRECATED: unique postfix added to each device identifier to avoid collision with other instances (you may loose the configuration of the devices in your controller when changing this value). Use postfix instead.",
126
- "type": "boolean",
127
- "default": true
128
- },
129
155
  "debug": {
130
156
  "description": "Enable the debug for the plugin (development only)",
131
157
  "type": "boolean",
@@ -134,7 +160,8 @@
134
160
  "unregisterOnShutdown": {
135
161
  "description": "Unregister all devices on shutdown (development only)",
136
162
  "type": "boolean",
137
- "default": false
163
+ "default": false,
164
+ "ui:widget": "hidden"
138
165
  }
139
166
  }
140
167
  }
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "matterbridge-zigbee2mqtt",
3
- "version": "2.4.7-dev.1",
3
+ "version": "2.5.0-dev.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-zigbee2mqtt",
9
- "version": "2.4.7-dev.1",
9
+ "version": "2.5.0-dev.2",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "moment": "2.30.1",
13
- "mqtt": "5.10.4",
13
+ "mqtt": "5.13.0",
14
14
  "node-ansi-logger": "3.0.1",
15
15
  "node-persist-manager": "1.0.8"
16
16
  },
@@ -23,40 +23,27 @@
23
23
  }
24
24
  },
25
25
  "node_modules/@babel/runtime": {
26
- "version": "7.26.10",
27
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.10.tgz",
28
- "integrity": "sha512-2WJMeRQPHKSPemqk/awGrAiuFfzBmOIPXKizAsVhWH9YJqLZ0H+HS4c8loHGgW6utJ3E/ejXQUsiGaQy2NZ9Fw==",
26
+ "version": "7.27.1",
27
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.1.tgz",
28
+ "integrity": "sha512-1x3D2xEk2fRo3PAhwQwu5UubzgiVWSXTBfWpVd2Mx2AzRqJuDJCsgaDVZ7HB5iGzDW1Hl1sWN2mFyKjmR9uAog==",
29
29
  "license": "MIT",
30
- "dependencies": {
31
- "regenerator-runtime": "^0.14.0"
32
- },
33
30
  "engines": {
34
31
  "node": ">=6.9.0"
35
32
  }
36
33
  },
37
34
  "node_modules/@types/node": {
38
- "version": "22.13.10",
39
- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz",
40
- "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==",
35
+ "version": "22.15.21",
36
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.21.tgz",
37
+ "integrity": "sha512-EV/37Td6c+MgKAbkcLG6vqZ2zEYHD7bvSrzqqs2RIhbA6w3x+Dqz8MZM3sP6kGTeLrdoOgKZe+Xja7tUB2DNkQ==",
41
38
  "license": "MIT",
42
39
  "dependencies": {
43
- "undici-types": "~6.20.0"
40
+ "undici-types": "~6.21.0"
44
41
  }
45
42
  },
46
43
  "node_modules/@types/readable-stream": {
47
- "version": "4.0.18",
48
- "resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-4.0.18.tgz",
49
- "integrity": "sha512-21jK/1j+Wg+7jVw1xnSwy/2Q1VgVjWuFssbYGTREPUBeZ+rqVFl2udq0IkxzPC0ZhOzVceUbyIACFZKLqKEBlA==",
50
- "license": "MIT",
51
- "dependencies": {
52
- "@types/node": "*",
53
- "safe-buffer": "~5.1.1"
54
- }
55
- },
56
- "node_modules/@types/ws": {
57
- "version": "8.18.0",
58
- "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.0.tgz",
59
- "integrity": "sha512-8svvI3hMyvN0kKCJMvTJP/x6Y/EoQbepff882wL+Sn5QsXb3etnamgrJq4isrBxSJj5L2AuXcI0+bgkoAXGUJw==",
44
+ "version": "4.0.19",
45
+ "resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-4.0.19.tgz",
46
+ "integrity": "sha512-6Tgd3lMocKwOul/kwAAgSebkhdMCLhRvcJ6CKHA6wdql2qNIwK6hw3Y4PZQxn9HcJogoC/1ZOmkFM7OZKH/VrA==",
60
47
  "license": "MIT",
61
48
  "dependencies": {
62
49
  "@types/node": "*"
@@ -172,9 +159,9 @@
172
159
  }
173
160
  },
174
161
  "node_modules/debug": {
175
- "version": "4.4.0",
176
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
177
- "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
162
+ "version": "4.4.1",
163
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
164
+ "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
178
165
  "license": "MIT",
179
166
  "dependencies": {
180
167
  "ms": "^2.1.3"
@@ -251,6 +238,19 @@
251
238
  "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
252
239
  "license": "ISC"
253
240
  },
241
+ "node_modules/ip-address": {
242
+ "version": "9.0.5",
243
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz",
244
+ "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==",
245
+ "license": "MIT",
246
+ "dependencies": {
247
+ "jsbn": "1.1.0",
248
+ "sprintf-js": "^1.1.3"
249
+ },
250
+ "engines": {
251
+ "node": ">= 12"
252
+ }
253
+ },
254
254
  "node_modules/js-sdsl": {
255
255
  "version": "4.3.0",
256
256
  "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz",
@@ -261,6 +261,12 @@
261
261
  "url": "https://opencollective.com/js-sdsl"
262
262
  }
263
263
  },
264
+ "node_modules/jsbn": {
265
+ "version": "1.1.0",
266
+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
267
+ "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
268
+ "license": "MIT"
269
+ },
264
270
  "node_modules/minimist": {
265
271
  "version": "1.2.8",
266
272
  "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
@@ -280,24 +286,22 @@
280
286
  }
281
287
  },
282
288
  "node_modules/mqtt": {
283
- "version": "5.10.4",
284
- "resolved": "https://registry.npmjs.org/mqtt/-/mqtt-5.10.4.tgz",
285
- "integrity": "sha512-wN+SuhT2/ZaG6NPxca0N6YtRivnMxk6VflxQUEeqDH4erKdj+wPAGhHmcTLzvqfE4sJRxrEJ+XJxUc0No0E7eQ==",
289
+ "version": "5.13.0",
290
+ "resolved": "https://registry.npmjs.org/mqtt/-/mqtt-5.13.0.tgz",
291
+ "integrity": "sha512-pR+z+ChxFl3n8AKLQbTONVOOg/jl4KiKQRBAi78tjd6PksOWvl1nl9L8ZHOZ3MiavZfrUOjok2ddwc1VymGWRg==",
286
292
  "license": "MIT",
287
293
  "dependencies": {
288
- "@types/readable-stream": "^4.0.18",
289
- "@types/ws": "^8.5.14",
290
294
  "commist": "^3.2.0",
291
295
  "concat-stream": "^2.0.0",
292
296
  "debug": "^4.4.0",
293
297
  "help-me": "^5.0.0",
294
298
  "lru-cache": "^10.4.3",
295
299
  "minimist": "^1.2.8",
296
- "mqtt-packet": "^9.0.1",
300
+ "mqtt-packet": "^9.0.2",
297
301
  "number-allocator": "^1.0.14",
298
302
  "readable-stream": "^4.7.0",
299
- "reinterval": "^1.1.0",
300
303
  "rfdc": "^1.4.1",
304
+ "socks": "^2.8.3",
301
305
  "split2": "^4.2.0",
302
306
  "worker-timers": "^7.1.8",
303
307
  "ws": "^8.18.0"
@@ -431,18 +435,6 @@
431
435
  "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
432
436
  }
433
437
  },
434
- "node_modules/regenerator-runtime": {
435
- "version": "0.14.1",
436
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
437
- "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",
438
- "license": "MIT"
439
- },
440
- "node_modules/reinterval": {
441
- "version": "1.1.0",
442
- "resolved": "https://registry.npmjs.org/reinterval/-/reinterval-1.1.0.tgz",
443
- "integrity": "sha512-QIRet3SYrGp0HUHO88jVskiG6seqUGC5iAG7AwI/BV4ypGcuqk9Du6YQBUOUqm9c8pw1eyLoIaONifRua1lsEQ==",
444
- "license": "MIT"
445
- },
446
438
  "node_modules/rfdc": {
447
439
  "version": "1.4.1",
448
440
  "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",
@@ -450,11 +442,49 @@
450
442
  "license": "MIT"
451
443
  },
452
444
  "node_modules/safe-buffer": {
453
- "version": "5.1.2",
454
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
455
- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
445
+ "version": "5.2.1",
446
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
447
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
448
+ "funding": [
449
+ {
450
+ "type": "github",
451
+ "url": "https://github.com/sponsors/feross"
452
+ },
453
+ {
454
+ "type": "patreon",
455
+ "url": "https://www.patreon.com/feross"
456
+ },
457
+ {
458
+ "type": "consulting",
459
+ "url": "https://feross.org/support"
460
+ }
461
+ ],
456
462
  "license": "MIT"
457
463
  },
464
+ "node_modules/smart-buffer": {
465
+ "version": "4.2.0",
466
+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
467
+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
468
+ "license": "MIT",
469
+ "engines": {
470
+ "node": ">= 6.0.0",
471
+ "npm": ">= 3.0.0"
472
+ }
473
+ },
474
+ "node_modules/socks": {
475
+ "version": "2.8.4",
476
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz",
477
+ "integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==",
478
+ "license": "MIT",
479
+ "dependencies": {
480
+ "ip-address": "^9.0.5",
481
+ "smart-buffer": "^4.2.0"
482
+ },
483
+ "engines": {
484
+ "node": ">= 10.0.0",
485
+ "npm": ">= 3.0.0"
486
+ }
487
+ },
458
488
  "node_modules/split2": {
459
489
  "version": "4.2.0",
460
490
  "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
@@ -464,6 +494,12 @@
464
494
  "node": ">= 10.x"
465
495
  }
466
496
  },
497
+ "node_modules/sprintf-js": {
498
+ "version": "1.1.3",
499
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
500
+ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
501
+ "license": "BSD-3-Clause"
502
+ },
467
503
  "node_modules/string_decoder": {
468
504
  "version": "1.3.0",
469
505
  "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
@@ -473,26 +509,6 @@
473
509
  "safe-buffer": "~5.2.0"
474
510
  }
475
511
  },
476
- "node_modules/string_decoder/node_modules/safe-buffer": {
477
- "version": "5.2.1",
478
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
479
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
480
- "funding": [
481
- {
482
- "type": "github",
483
- "url": "https://github.com/sponsors/feross"
484
- },
485
- {
486
- "type": "patreon",
487
- "url": "https://www.patreon.com/feross"
488
- },
489
- {
490
- "type": "consulting",
491
- "url": "https://feross.org/support"
492
- }
493
- ],
494
- "license": "MIT"
495
- },
496
512
  "node_modules/tslib": {
497
513
  "version": "2.8.1",
498
514
  "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
@@ -506,9 +522,9 @@
506
522
  "license": "MIT"
507
523
  },
508
524
  "node_modules/undici-types": {
509
- "version": "6.20.0",
510
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
511
- "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",
525
+ "version": "6.21.0",
526
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
527
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
512
528
  "license": "MIT"
513
529
  },
514
530
  "node_modules/util-deprecate": {
@@ -552,9 +568,9 @@
552
568
  }
553
569
  },
554
570
  "node_modules/ws": {
555
- "version": "8.18.1",
556
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.1.tgz",
557
- "integrity": "sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w==",
571
+ "version": "8.18.2",
572
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.2.tgz",
573
+ "integrity": "sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ==",
558
574
  "license": "MIT",
559
575
  "engines": {
560
576
  "node": ">=10.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-zigbee2mqtt",
3
- "version": "2.4.7-dev.1",
3
+ "version": "2.5.0-dev.2",
4
4
  "description": "Matterbridge zigbee2mqtt plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "moment": "2.30.1",
45
- "mqtt": "5.10.4",
45
+ "mqtt": "5.13.0",
46
46
  "node-ansi-logger": "3.0.1",
47
47
  "node-persist-manager": "1.0.8"
48
48
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ // enable isolatedModules just for ts-jest
5
+ "isolatedModules": true
6
+ },
7
+ "include": ["**/*.spec.ts", "**/*.test.ts", "**/__test__/*"]
8
+ }