matterbridge-example-dynamic-platform 2.0.1 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -21,9 +21,19 @@ All notable changes to this project will be documented in this file.
21
21
 
22
22
  If you like this project and find it useful, please consider giving it a star on GitHub at <https://github.com/Luligu/matterbridge-example-dynamic-platform> and sponsoring it.
23
23
 
24
- <a href="https://www.buymeacoffee.com/luligugithub">
25
- <img src="bmc-button.svg" alt="Buy me a coffee" width="120">
26
- </a>
24
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
25
+
26
+ ## [2.0.2] - 2025-12-05
27
+
28
+ ### Changed
29
+
30
+ - [package]: Updated dependencies.
31
+ - [package]: Updated to the current Matterbridge signatures.
32
+ - [package]: Requires Matterbridge v.3.4.0.
33
+ - [package]: Updated tests to use the Matterbridge Jest module.
34
+ - [package]: Bumped package to automator v.2.1.0.
35
+
36
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
27
37
 
28
38
  ## [2.0.1] - 2025-11-13
29
39
 
@@ -34,9 +44,7 @@ If you like this project and find it useful, please consider giving it a star on
34
44
  - [jest]: Updated jestHelpers to v.1.0.12.
35
45
  - [workflows]: Use shallow clones and --no-fund --no-audit for faster builds.
36
46
 
37
- <a href="https://www.buymeacoffee.com/luligugithub">
38
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
39
- </a>
47
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
40
48
 
41
49
  ## [2.0.0] - 2025-10-24
42
50
 
@@ -47,9 +55,7 @@ If you like this project and find it useful, please consider giving it a star on
47
55
  - [package]: Bumped package to automator version 2.0.9
48
56
  - [jest]: Updated jestHelpers to v. 1.0.9.
49
57
 
50
- <a href="https://www.buymeacoffee.com/luligugithub">
51
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
52
- </a>
58
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
53
59
 
54
60
  ## [1.4.0] - 2025-10-15
55
61
 
@@ -73,9 +79,7 @@ If you like this project and find it useful, please consider giving it a star on
73
79
  - [template]: Updated bug_report.md.
74
80
  - [jest]: Updated jestHelpers to v. 1.0.6.
75
81
 
76
- <a href="https://www.buymeacoffee.com/luligugithub">
77
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
78
- </a>
82
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
79
83
 
80
84
  ## [1.3.12] - 2025-09-14
81
85
 
@@ -90,9 +94,7 @@ If you like this project and find it useful, please consider giving it a star on
90
94
  - [package]: Updated to Automator v. 2.0.6.
91
95
  - [workflows]: Ignore any .md anywhere.
92
96
 
93
- <a href="https://www.buymeacoffee.com/luligugithub">
94
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
95
- </a>
97
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
96
98
 
97
99
  ## [1.3.11] - 2025-09-09
98
100
 
@@ -101,9 +103,7 @@ If you like this project and find it useful, please consider giving it a star on
101
103
  - [package]: Updated dependencies.
102
104
  - [platform]: Removed attributes setting when is managed by the Matterbridge servers. This add support for **Apple Home Adaptive Lighting**. See <https://github.com/Luligu/matterbridge/discussions/390>.
103
105
 
104
- <a href="https://www.buymeacoffee.com/luligugithub">
105
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
106
- </a>
106
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
107
107
 
108
108
  ## [1.3.10] - 2025-09-06
109
109
 
@@ -118,9 +118,7 @@ If you like this project and find it useful, please consider giving it a star on
118
118
  - [package]: Updated dependencies.
119
119
  - [package]: Required matterbridge 3.2.6.
120
120
 
121
- <a href="https://www.buymeacoffee.com/luligugithub">
122
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
123
- </a>
121
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
124
122
 
125
123
  ## [1.3.9] - 2025-08-30
126
124
 
@@ -146,9 +144,7 @@ If you like this project and find it useful, please consider giving it a star on
146
144
  - [devContainer]: Updated devContainer with repository name for the container and shallow clone matterbridge for speed and memory optimization.
147
145
  - [package]: Required matterbridge 3.2.5.
148
146
 
149
- <a href="https://www.buymeacoffee.com/luligugithub">
150
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
151
- </a>
147
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
152
148
 
153
149
  ## [1.3.8] - 2025-08-20
154
150
 
@@ -166,9 +162,7 @@ If you like this project and find it useful, please consider giving it a star on
166
162
  - [package]: Updated dependencies.
167
163
  - [package]: Required matterbridge 3.2.3.
168
164
 
169
- <a href="https://www.buymeacoffee.com/luligugithub">
170
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
171
- </a>
165
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
172
166
 
173
167
  ## [1.3.7] - 2025-08-01
174
168
 
@@ -185,9 +179,7 @@ If you like this project and find it useful, please consider giving it a star on
185
179
  - [platform]: Fixed missed softwareVersion and hardwareVersion. Thanks Tamer.
186
180
  - [platform]: Fixed missed BridgedDeviceBasicInformation cluster for single class devices. Thanks Tamer.
187
181
 
188
- <a href="https://www.buymeacoffee.com/luligugithub">
189
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
190
- </a>
182
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
191
183
 
192
184
  ## [1.3.6] - 2025-07-25
193
185
 
@@ -202,9 +194,7 @@ If you like this project and find it useful, please consider giving it a star on
202
194
  - [package]: Updated dependencies.
203
195
  - [package]: Required matterbridge 3.1.7.
204
196
 
205
- <a href="https://www.buymeacoffee.com/luligugithub">
206
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
207
- </a>
197
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
208
198
 
209
199
  ## [1.3.5] - 2025-07-22
210
200
 
@@ -219,9 +209,7 @@ If you like this project and find it useful, please consider giving it a star on
219
209
  - [package]: Updated dependencies.
220
210
  - [package]: Required matterbridge 3.1.6.
221
211
 
222
- <a href="https://www.buymeacoffee.com/luligugithub">
223
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
224
- </a>
212
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
225
213
 
226
214
  ## [1.3.3] - 2025-07-20
227
215
 
@@ -234,9 +222,7 @@ If you like this project and find it useful, please consider giving it a star on
234
222
  - [package]: Updated dependencies.
235
223
  - [package]: Required matterbridge 3.1.5.
236
224
 
237
- <a href="https://www.buymeacoffee.com/luligugithub">
238
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
239
- </a>
225
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
240
226
 
241
227
  ## [1.3.2] - 2025-07-06
242
228
 
@@ -249,9 +235,7 @@ If you like this project and find it useful, please consider giving it a star on
249
235
  - [package]: Updated dependencies.
250
236
  - [package]: Require matterbridge 3.1.2.
251
237
 
252
- <a href="https://www.buymeacoffee.com/luligugithub">
253
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
254
- </a>
238
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
255
239
 
256
240
  ## [1.3.1] - 2025-07-04
257
241
 
@@ -266,9 +250,7 @@ If you like this project and find it useful, please consider giving it a star on
266
250
  - [platform]: Changed imports from matterbridge/devices.
267
251
  - [package]: Require matterbridge 3.1.1.
268
252
 
269
- <a href="https://www.buymeacoffee.com/luligugithub">
270
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
271
- </a>
253
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
272
254
 
273
255
  ## [1.3.0] - 2025-06-25
274
256
 
@@ -292,9 +274,7 @@ If you like this project and find it useful, please consider giving it a star on
292
274
  - [storage]: Bumped `node-storage-manager` to 2.0.0.
293
275
  - [logger]: Bumped `node-ansi-logger` to 3.1.1.
294
276
 
295
- <a href="https://www.buymeacoffee.com/luligugithub">
296
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
297
- </a>
277
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
298
278
 
299
279
  ## [1.2.4] - 2025-06-13
300
280
 
@@ -309,9 +289,7 @@ If you like this project and find it useful, please consider giving it a star on
309
289
  - [package]: Updated dependencies.
310
290
  - [subscribe]: Prevent attribute setting when context is offline for air purifier and fan.
311
291
 
312
- <a href="https://www.buymeacoffee.com/luligugithub">
313
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
314
- </a>
292
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
315
293
 
316
294
  ## [1.2.3] - 2025-05-25
317
295
 
@@ -326,9 +304,7 @@ If you like this project and find it useful, please consider giving it a star on
326
304
  - [package]: Updated package.
327
305
  - [package]: Updated dependencies.
328
306
 
329
- <a href="https://www.buymeacoffee.com/luligugithub">
330
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
331
- </a>
307
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
332
308
 
333
309
  ## [1.2.2] - 2025-05-19
334
310
 
@@ -343,9 +319,7 @@ If you like this project and find it useful, please consider giving it a star on
343
319
  - [package]: Updated package.
344
320
  - [package]: Updated dependencies.
345
321
 
346
- <a href="https://www.buymeacoffee.com/luligugithub">
347
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
348
- </a>
322
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
349
323
 
350
324
  ## [1.2.1] - 2025-05-15
351
325
 
@@ -355,9 +329,7 @@ If you like this project and find it useful, please consider giving it a star on
355
329
  - [package]: Updated package.
356
330
  - [package]: Updated dependencies.
357
331
 
358
- <a href="https://www.buymeacoffee.com/luligugithub">
359
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
360
- </a>
332
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
361
333
 
362
334
  ## [1.2.0] - 2025-04-30
363
335
 
@@ -381,9 +353,7 @@ If you like this project and find it useful, please consider giving it a star on
381
353
  - [package]: Updated package.
382
354
  - [package]: Updated dependencies.
383
355
 
384
- <a href="https://www.buymeacoffee.com/luligugithub">
385
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
386
- </a>
356
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
387
357
 
388
358
  ## [1.1.9] - 2025-04-07
389
359
 
@@ -400,9 +370,7 @@ If you like this project and find it useful, please consider giving it a star on
400
370
  - [package]: Updated package.
401
371
  - [package]: Updated dependencies.
402
372
 
403
- <a href="https://www.buymeacoffee.com/luligugithub">
404
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
405
- </a>
373
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
406
374
 
407
375
  ## [1.1.8] - 2025-03-05
408
376
 
@@ -412,9 +380,7 @@ If you like this project and find it useful, please consider giving it a star on
412
380
  - [package]: Updated package.
413
381
  - [package]: Updated dependencies.
414
382
 
415
- <a href="https://www.buymeacoffee.com/luligugithub">
416
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
417
- </a>
383
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
418
384
 
419
385
  ## [1.1.7] - 2025-02-11
420
386
 
@@ -430,9 +396,7 @@ If you like this project and find it useful, please consider giving it a star on
430
396
  - [package]: Updated dependencies.
431
397
  - [package]: Require matterbridge 2.1.5.
432
398
 
433
- <a href="https://www.buymeacoffee.com/luligugithub">
434
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
435
- </a>
399
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
436
400
 
437
401
  ## [1.1.6] - 2025-02-02
438
402
 
@@ -441,9 +405,7 @@ If you like this project and find it useful, please consider giving it a star on
441
405
  - [package]: Require matterbridge 2.1.0.
442
406
  - [package]: Updated dependencies.
443
407
 
444
- <a href="https://www.buymeacoffee.com/luligugithub">
445
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
446
- </a>
408
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
447
409
 
448
410
  ## [1.1.4] - 2024-12-21
449
411
 
@@ -460,9 +422,7 @@ If you like this project and find it useful, please consider giving it a star on
460
422
 
461
423
  - [thermostat]: Fixed temperature
462
424
 
463
- <a href="https://www.buymeacoffee.com/luligugithub">
464
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
465
- </a>
425
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
466
426
 
467
427
  ## [1.1.3] - 2024-12-16
468
428
 
@@ -479,9 +439,7 @@ If you like this project and find it useful, please consider giving it a star on
479
439
  - [package]: Require matterbridge 1.6.7.
480
440
  - [package]: Updated dependencies.
481
441
 
482
- <a href="https://www.buymeacoffee.com/luligugithub">
483
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
484
- </a>
442
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
485
443
 
486
444
  ## [1.1.2] - 2024-12-12
487
445
 
@@ -496,9 +454,7 @@ If you like this project and find it useful, please consider giving it a star on
496
454
  - [package]: Updated package.
497
455
  - [package]: Updated dependencies.
498
456
 
499
- <a href="https://www.buymeacoffee.com/luligugithub">
500
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
501
- </a>
457
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
502
458
 
503
459
  ## [1.1.0] - 2024-11-25
504
460
 
@@ -508,9 +464,7 @@ If you like this project and find it useful, please consider giving it a star on
508
464
  - [package]: Require matterbridge 1.6.2
509
465
  - [package]: Updated dependencies.
510
466
 
511
- <a href="https://www.buymeacoffee.com/luligugithub">
512
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
513
- </a>
467
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
514
468
 
515
469
  ## [1.0.24] - 2024-11-10
516
470
 
@@ -519,9 +473,7 @@ If you like this project and find it useful, please consider giving it a star on
519
473
  - [package]: Update to matterbridge edge.
520
474
  - [package]: Updated dependencies.
521
475
 
522
- <a href="https://www.buymeacoffee.com/luligugithub">
523
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
524
- </a>
476
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
525
477
 
526
478
  ## [1.0.23] - 2024-10-28
527
479
 
@@ -530,9 +482,7 @@ If you like this project and find it useful, please consider giving it a star on
530
482
  - [package]: Upgrade to matterbridge 1.6.0.
531
483
  - [package]: Updated dependencies.
532
484
 
533
- <a href="https://www.buymeacoffee.com/luligugithub">
534
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
535
- </a>
485
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
536
486
 
537
487
  ## [1.0.22] - 2024-10-01
538
488
 
@@ -541,9 +491,7 @@ If you like this project and find it useful, please consider giving it a star on
541
491
  - [package]: Upgrade to new workflows.
542
492
  - [package]: Updated dependencies.
543
493
 
544
- <a href="https://www.buymeacoffee.com/luligugithub">
545
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
546
- </a>
494
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
547
495
 
548
496
  ## [1.0.21] - 2024-09-19
549
497
 
@@ -555,9 +503,7 @@ If you like this project and find it useful, please consider giving it a star on
555
503
 
556
504
  - [package]: Updated dependencies.
557
505
 
558
- <a href="https://www.buymeacoffee.com/luligugithub">
559
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
560
- </a>
506
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
561
507
 
562
508
  ## [1.0.20] - 2024-09-08
563
509
 
@@ -569,9 +515,7 @@ If you like this project and find it useful, please consider giving it a star on
569
515
 
570
516
  - [package]: Updated dependencies.
571
517
 
572
- <a href="https://www.buymeacoffee.com/luligugithub">
573
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
574
- </a>
518
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
575
519
 
576
520
  ## [1.0.19] - 2024-09-04
577
521
 
@@ -586,9 +530,7 @@ If you like this project and find it useful, please consider giving it a star on
586
530
 
587
531
  - [package]: Updated dependencies.
588
532
 
589
- <a href="https://www.buymeacoffee.com/luligugithub">
590
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
591
- </a>
533
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
592
534
 
593
535
  ## [1.0.18] - 2024-09-03
594
536
 
@@ -608,9 +550,7 @@ If you like this project and find it useful, please consider giving it a star on
608
550
 
609
551
  - [package]: Updated dependencies.
610
552
 
611
- <a href="https://www.buymeacoffee.com/luligugithub">
612
- <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
613
- </a>
553
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
614
554
 
615
555
  <!-- Commented out section
616
556
  ## [1.1.2] - 2024-03-08
package/dist/module.js CHANGED
@@ -110,8 +110,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
110
110
  constructor(matterbridge, log, config) {
111
111
  super(matterbridge, log, config);
112
112
  this.config = config;
113
- if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.3.0')) {
114
- throw new Error(`This plugin requires Matterbridge version >= "3.3.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
113
+ if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.4.0')) {
114
+ throw new Error(`This plugin requires Matterbridge version >= "3.4.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
115
115
  }
116
116
  this.log.info('Initializing platform:', this.config.name);
117
117
  }
@@ -504,6 +504,10 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
504
504
  this.lock?.addCommandHandler('unlockDoor', async () => {
505
505
  this.lock?.log.info('Command unlockDoor called');
506
506
  });
507
+ await this.lock?.subscribeAttribute(DoorLock.Cluster.id, 'operatingMode', (value) => {
508
+ const lookupOperatingMode = ['Normal', 'Vacation', 'Privacy', 'NoRemoteLockUnlock', 'Passage'];
509
+ this.lock?.log.info('Subscribe operatingMode called with:', lookupOperatingMode[value]);
510
+ }, this.lock.log);
507
511
  this.thermoAuto = new MatterbridgeEndpoint([thermostatDevice, bridgedNode, powerSource], { id: 'Thermostat (AutoMode)' }, this.config.debug)
508
512
  .createDefaultIdentifyClusterServer()
509
513
  .createDefaultGroupsClusterServer()
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-example-dynamic-platform",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-example-dynamic-platform",
9
- "version": "2.0.1",
9
+ "version": "2.0.2",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "node-ansi-logger": "3.1.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-example-dynamic-platform",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Matterbridge dynamic plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",