@homebridge-plugins/homebridge-ewelink 12.4.0 → 12.5.0

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
@@ -2,13 +2,29 @@
2
2
 
3
3
  All notable changes to homebridge-ewelink will be documented in this file.
4
4
 
5
- This project tries to adhere to [Semantic Versioning](http://semver.org/). In practice, this means that the version number will be incremented based on the following:
5
+ ## v12.5.0 (2025-07-12)
6
6
 
7
- - `MAJOR` version when a minimum supported version of `homebridge` or `node` is increased to a new major version, or when a breaking change is made to the plugin config
8
- - `MINOR` version when a new device type is added, or when a new feature is added that is backwards-compatible
9
- - `PATCH` version when backwards-compatible bug fixes are implemented
7
+ ⚠️ This plugin no longer officially supports Node `v16` and `v18`, however there is no reason why it shouldn't work on these versions.
10
8
 
11
- ## 12.4.0 (2025-02-24)
9
+ ### Notable Changes
10
+
11
+ - set `strictValidation` to `true` in the config schema file
12
+
13
+ ### Other Changes
14
+
15
+ - github repo maintenance
16
+
17
+ ## v12.4.1 (2025-03-22)
18
+
19
+ ### Changed
20
+
21
+ - updated dependencies
22
+
23
+ ### Fixed
24
+
25
+ - fix hap-nodejs permissions for hb2
26
+
27
+ ## v12.4.0 (2025-02-24)
12
28
 
13
29
  ### Added
14
30
 
@@ -19,14 +35,14 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
19
35
 
20
36
  - updated dependencies
21
37
 
22
- ## 12.3.3 (2024-10-12)
38
+ ## v12.3.3 (2024-10-12)
23
39
 
24
40
  ### Changed
25
41
 
26
42
  - added `homepage` to `package.json`
27
43
  - updated dependencies
28
44
 
29
- ## 12.3.2 (2024-10-12)
45
+ ## v12.3.2 (2024-10-12)
30
46
 
31
47
  ### Changed
32
48
 
@@ -37,7 +53,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
37
53
 
38
54
  - fixed cases where the plugin would crash when a device update fails
39
55
 
40
- ## 12.3.1 (2024-07-15)
56
+ ## v12.3.1 (2024-07-15)
41
57
 
42
58
  ### Changed
43
59
 
@@ -47,14 +63,14 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
47
63
 
48
64
  - fix `hap-nodejs` api refs
49
65
 
50
- ## 12.3.0 (2024-07-13)
66
+ ## v12.3.0 (2024-07-13)
51
67
 
52
68
  ### Added
53
69
 
54
70
  - Support for ZigBee Bridge Ultra with UIID `243`
55
71
  - Support for Sonoff TX-4 Ultimate with UIID `212`
56
72
 
57
- ## 12.2.1 (2024-07-13)
73
+ ## v12.2.1 (2024-07-13)
58
74
 
59
75
  ### Changed
60
76
 
@@ -62,7 +78,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
62
78
  - Updated dependencies
63
79
  - Bump `node` recommended versions to v18.20.4 or v20.15.1
64
80
 
65
- ## 12.2.0 (2024-03-27)
81
+ ## v12.2.0 (2024-03-27)
66
82
 
67
83
  ### Added
68
84
 
@@ -79,7 +95,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
79
95
 
80
96
  - Fix UIID 182/190 power readings
81
97
 
82
- ## 12.1.0 (2023-12-16)
98
+ ## v12.1.0 (2023-12-16)
83
99
 
84
100
  ### Added
85
101
 
@@ -93,7 +109,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
93
109
  - Bump `node` recommended versions to v18.19.0 or v20.10.0
94
110
  - Updated dependencies
95
111
 
96
- ## 12.0.0 (2023-10-24)
112
+ ## v12.0.0 (2023-10-24)
97
113
 
98
114
  ### Added
99
115
 
@@ -109,7 +125,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
109
125
 
110
126
  - Support for node 16
111
127
 
112
- ## 11.0.2 (2023-08-28)
128
+ ## v11.0.2 (2023-08-28)
113
129
 
114
130
  ⚠️ Note this will be the last version of the plugin to support Node 16.
115
131
  - Node 16 moves to 'end of life' on 2023-09-11 ([more info](https://nodejs.org/en/blog/announcements/nodejs16-eol))
@@ -120,14 +136,14 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
120
136
 
121
137
  - Update `axios` to `v1.5.0`
122
138
 
123
- ## 11.0.1 (2023-08-19)
139
+ ## v11.0.1 (2023-08-19)
124
140
 
125
141
  ### Changed
126
142
 
127
143
  - Bump `node` recommended versions to v16.20.2 or v18.17.1 or v20.5.1
128
144
  - Some code refactoring
129
145
 
130
- ## 11.0.0 (2023-07-24)
146
+ ## v11.0.0 (2023-07-24)
131
147
 
132
148
  ### Added
133
149
 
@@ -149,7 +165,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
149
165
  - Bump `node` recommended versions to v16.20.1 or v18.17.0 or v20.5.0
150
166
  - Updated dependencies
151
167
 
152
- ## 10.4.0 (2023-01-07)
168
+ ## v10.4.0 (2023-01-07)
153
169
 
154
170
  ### Added
155
171
 
@@ -166,7 +182,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
166
182
 
167
183
  - Power readings for POWR320 now show correctly
168
184
 
169
- ## 10.3.0 (2022-11-11)
185
+ ## v10.3.0 (2022-11-11)
170
186
 
171
187
  ### Added
172
188
 
@@ -177,7 +193,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
177
193
  - Bump `node` recommended versions to v14.21.1 or v16.18.1 or v18.12.1
178
194
  - Bump `ws` to v8.11.0
179
195
 
180
- ## 10.2.0 (2022-10-09)
196
+ ## v10.2.0 (2022-10-09)
181
197
 
182
198
  ### Added
183
199
 
@@ -197,7 +213,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
197
213
 
198
214
  - Incorrectly exposing Sonoff M5 devices as programmable switches
199
215
 
200
- ## 10.1.0 (2022-09-25)
216
+ ## v10.1.0 (2022-09-25)
201
217
 
202
218
  ### Added
203
219
 
@@ -219,7 +235,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
219
235
  - Bump `ws` to v8.9.0
220
236
  - Updated dev dependencies
221
237
 
222
- ## 10.0.0 (2022-07-08)
238
+ ## v10.0.0 (2022-07-08)
223
239
 
224
240
  ⚠️ After updating to this version:
225
241
  - Each time you start the plugin, you will be logged out the eWeLink app, and so I would recommend:
@@ -234,7 +250,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
234
250
 
235
251
  - Bump `node` recommended versions to v14.20.0 or v16.16.0
236
252
 
237
- ## 9.1.0 (2022-07-07)
253
+ ## v9.1.0 (2022-07-07)
238
254
 
239
255
  ⚠️ This update may remove some devices from your Homebridge instance. Unfortunately this is out my control. See [this link](https://github.com/homebridge-plugins/homebridge-ewelink/issues/385#issuecomment-1176457283).
240
256
 
@@ -247,7 +263,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
247
263
  - Bump `ws` to v8.8.0
248
264
  - Updated dev dependencies
249
265
 
250
- ## 9.0.1 (2022-06-08)
266
+ ## v9.0.1 (2022-06-08)
251
267
 
252
268
  ### Changed
253
269
 
@@ -257,7 +273,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
257
273
 
258
274
  - A potential issue showing errors in the logs
259
275
 
260
- ## 9.0.0 (2022-05-29)
276
+ ## v9.0.0 (2022-05-29)
261
277
 
262
278
  ### Potentially Breaking Changes
263
279
 
@@ -269,7 +285,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
269
285
  - Changed to ESM package
270
286
  - Bump `node` recommended versions to v14.19.3 or v16.15.0
271
287
 
272
- ## 8.15.0 (2022-05-02)
288
+ ## v8.15.0 (2022-05-02)
273
289
 
274
290
  ### Added
275
291
 
@@ -286,7 +302,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
286
302
  - Bump `ws` to v8.6.0
287
303
  - Bump `node` recommended versions to v14.19.1 or v16.15.0
288
304
 
289
- ## 8.14.0 (2022-04-17)
305
+ ## v8.14.0 (2022-04-17)
290
306
 
291
307
  ### Added
292
308
 
@@ -295,20 +311,20 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
295
311
  - Sonoff MINIR3 (UIID 138 devices) (also supports LAN mode)
296
312
  - Sonoff S-Mate (UIID 177 devices) as a Stateless Programmable Sensor
297
313
 
298
- ## 8.13.2 (2022-04-03)
314
+ ## v8.13.2 (2022-04-03)
299
315
 
300
316
  ### Changed
301
317
 
302
318
  - Updated dependencies
303
319
 
304
- ## 8.13.1 (2022-03-20)
320
+ ## v8.13.1 (2022-03-20)
305
321
 
306
322
  ### Changed
307
323
 
308
324
  - Bump `axios` to v0.26.1
309
325
  - Bump `node` recommended versions to v14.19.1 or v16.14.2
310
326
 
311
- ## 8.13.0 (2022-02-23)
327
+ ## v8.13.0 (2022-02-23)
312
328
 
313
329
  ### Added
314
330
 
@@ -318,7 +334,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
318
334
 
319
335
  - Bump `axios` to v0.26.0
320
336
 
321
- ## 8.12.0 (2022-02-12)
337
+ ## v8.12.0 (2022-02-12)
322
338
 
323
339
  ### Added
324
340
 
@@ -332,7 +348,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
332
348
  - Bump `homebridge` recommended version to v1.4.0
333
349
  - Bump `ws` to v8.5.0
334
350
 
335
- ## 8.11.2 (2022-01-23)
351
+ ## v8.11.2 (2022-01-23)
336
352
 
337
353
  ### Changed
338
354
 
@@ -342,7 +358,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
342
358
 
343
359
  - Fix LAN mode support for iFan04
344
360
 
345
- ## 8.11.1 (2022-01-15)
361
+ ## v8.11.1 (2022-01-15)
346
362
 
347
363
  ### Changed
348
364
 
@@ -352,7 +368,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
352
368
 
353
369
  - `undefined` log message on web socket error
354
370
 
355
- ## 8.11.0 (2022-01-13)
371
+ ## v8.11.0 (2022-01-13)
356
372
 
357
373
  ### Added
358
374
 
@@ -367,7 +383,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
367
383
 
368
384
  - Minor colour temperature issue for Mangotek RLD60C0E27 (UIID 33)
369
385
 
370
- ## 8.10.0 (2022-01-07)
386
+ ## v8.10.0 (2022-01-07)
371
387
 
372
388
  ### Added
373
389
 
@@ -379,20 +395,20 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
379
395
 
380
396
  - Plugin crash for older versions of Homebridge
381
397
 
382
- ## 8.9.1 (2022-01-05)
398
+ ## v8.9.1 (2022-01-05)
383
399
 
384
400
  ### Changed
385
401
 
386
402
  - Plugin will log HAPNodeJS version on startup
387
403
  - Bump `homebridge` recommended version to v1.3.9
388
404
 
389
- ## 8.9.0 (2021-12-27)
405
+ ## v8.9.0 (2021-12-27)
390
406
 
391
407
  ### Added
392
408
 
393
409
  - Option to show both 'Heat' and 'Cool' modes for the TH10/16 thermostat simulation
394
410
 
395
- ## 8.8.0 (2021-12-21)
411
+ ## v8.8.0 (2021-12-21)
396
412
 
397
413
  ### Added
398
414
 
@@ -410,13 +426,13 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
410
426
  - Some config options rearranged for easier access
411
427
  - Bump `ws` to v8.4.0
412
428
 
413
- ## 8.7.1 (2021-12-09)
429
+ ## v8.7.1 (2021-12-09)
414
430
 
415
431
  ### Fixed
416
432
 
417
433
  - Show 'Hide Channels' and 'Inched Channels' in config schema form even when no 'Show As' is selected
418
434
 
419
- ## 8.7.0 (2021-12-08)
435
+ ## v8.7.0 (2021-12-08)
420
436
 
421
437
  ### Added
422
438
 
@@ -435,7 +451,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
435
451
 
436
452
  - Potential uncaught errors updating subdevices of an RF bridge
437
453
 
438
- ## 8.6.0 (2021-11-18)
454
+ ## v8.6.0 (2021-11-18)
439
455
 
440
456
  ### Added
441
457
 
@@ -447,20 +463,20 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
447
463
 
448
464
  - An issue initialising a 2-Garage-Door simulation
449
465
 
450
- ## 8.5.0 (2021-11-03)
466
+ ## v8.5.0 (2021-11-03)
451
467
 
452
468
  ### Added
453
469
 
454
470
  - Ability to use a contact sensor simulation to show the correct state of a garage door/lock simulation
455
471
 
456
- ## 8.4.2 (2021-10-31)
472
+ ## v8.4.2 (2021-10-31)
457
473
 
458
474
  ### Changed
459
475
 
460
476
  - Bump `node` recommended versions to v14.18.1 or v16.13.0
461
477
  - Bump `axios` to v0.24.0
462
478
 
463
- ## 8.4.1 (2021-10-20)
479
+ ## v8.4.1 (2021-10-20)
464
480
 
465
481
  ### Changed
466
482
 
@@ -470,7 +486,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
470
486
 
471
487
  - An Eve app 'no data' gap for garage and contact sensor devices when restarting the plugin
472
488
 
473
- ## 8.4.0 (2021-10-16)
489
+ ## v8.4.0 (2021-10-16)
474
490
 
475
491
  ### Added
476
492
 
@@ -488,31 +504,31 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
488
504
 
489
505
  - An error when trying to unregister a hidden accessory from Homebridge
490
506
 
491
- ## 8.3.6 (2021-10-01)
507
+ ## v8.3.6 (2021-10-01)
492
508
 
493
509
  ### Changed
494
510
 
495
511
  - Bump `ws` to v8.2.3
496
512
 
497
- ## 8.3.5 (2021-10-01)
513
+ ## v8.3.5 (2021-10-01)
498
514
 
499
515
  ### Changed
500
516
 
501
517
  - Bump `axios` to v0.22.0
502
518
 
503
- ## 8.3.4 (2021-09-30)
519
+ ## v8.3.4 (2021-09-30)
504
520
 
505
521
  ### Changed
506
522
 
507
523
  - Recommended node versions bumped to v14.18.0 or v16.10.0
508
524
 
509
- ## 8.3.3 (2021-09-14)
525
+ ## v8.3.3 (2021-09-14)
510
526
 
511
527
  ## Fixed
512
528
 
513
529
  - Fixed an issue where an irrigation valve simulation would not turn off after the set time
514
530
 
515
- ## 8.3.2 (2021-09-09)
531
+ ## v8.3.2 (2021-09-09)
516
532
 
517
533
  ### Changed
518
534
 
@@ -520,7 +536,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
520
536
  - Bump `axios` to v0.21.4
521
537
  - Bump `ws` to v8.2.2
522
538
 
523
- ## 8.3.1 (2021-09-05)
539
+ ## v8.3.1 (2021-09-05)
524
540
 
525
541
  ### Changed
526
542
 
@@ -528,7 +544,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
528
544
  - Bump `axios` to v0.21.3
529
545
  - Bump `ws` to v8.2.1
530
546
 
531
- ## 8.3.0 (2021-08-26)
547
+ ## v8.3.0 (2021-08-26)
532
548
 
533
549
  ### Added
534
550
 
@@ -540,7 +556,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
540
556
 
541
557
  - 'Status By Inching' switches will no longer revert to 'off' when Homebridge is restarted
542
558
 
543
- ## 8.2.1 (2021-08-22)
559
+ ## v8.2.1 (2021-08-22)
544
560
 
545
561
  ### Changed
546
562
 
@@ -551,33 +567,33 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
551
567
  - An issue preventing DUALR3 from initialising
552
568
  - Fix for uiid `112`
553
569
 
554
- ## 8.2.0 (2021-08-22)
570
+ ## v8.2.0 (2021-08-22)
555
571
 
556
572
  ### Added
557
573
 
558
574
  - Support for UIIDs `138` `139` `140` `141`
559
575
 
560
- ## 8.1.0 (2021-08-17)
576
+ ## v8.1.0 (2021-08-17)
561
577
 
562
578
  ### Added
563
579
 
564
580
  - `inchChannels` option for multi-channel switches and outlets (where the plugin will set on/off status based on inching)
565
581
  - `language` option to have the plugin log in French, thanks to @jp-lno
566
582
 
567
- ## 8.0.2 (2021-08-12)
583
+ ## v8.0.2 (2021-08-12)
568
584
 
569
585
  ### Changed
570
586
 
571
587
  - **Platform Versions**
572
588
  - Recommended node version bumped to v14.17.5
573
589
 
574
- ## 8.0.1 (2021-08-04)
590
+ ## v8.0.1 (2021-08-04)
575
591
 
576
592
  ### Changed
577
593
 
578
594
  - Improved battery calculations for DW2 sensors
579
595
 
580
- ## 8.0.0 (2021-07-29)
596
+ ## v8.0.0 (2021-07-29)
581
597
 
582
598
  ### Important Note
583
599
 
@@ -618,7 +634,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
618
634
  - ⚠️ `ignoredDevices` configuration setting - now use the `ignoreDevice` option in the device type sections
619
635
  - ⚠️ `groups` configuration setting - now use the `showAs` option in the device type sections
620
636
 
621
- ## 7.1.0 (2021-07-10)
637
+ ## v7.1.0 (2021-07-10)
622
638
 
623
639
  ### Added
624
640
 
@@ -632,13 +648,13 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
632
648
  - A device can now be ignored/removed from Homebridge by the `ignoreDevice` setting in the device configuration sections
633
649
  - Bump `ws` dependency to v7.5.3
634
650
 
635
- ## 7.0.2 (2021-07-08)
651
+ ## v7.0.2 (2021-07-08)
636
652
 
637
653
  ### Changes
638
654
 
639
655
  - Revert node version bump to v14.17.3 (back to v14.17.2)
640
656
 
641
- ### 7.0.1 (2021-07-08)
657
+ ### v7.0.1 (2021-07-08)
642
658
 
643
659
  ### Changes
644
660
 
@@ -648,7 +664,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
648
664
 
649
665
  - An issue preventing garage doors and locks with a defined sensor from initialising
650
666
 
651
- ## 7.0.0 (2021-07-08)
667
+ ## v7.0.0 (2021-07-08)
652
668
 
653
669
  ### Important Notes
654
670
 
@@ -753,7 +769,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
753
769
  - `switchDevices[].showAsOutlet` removed - use `switchDevices[].showAs` instead
754
770
  - `ContactSensorState` and other unneeded characteristics from garage (simulation) services
755
771
 
756
- ## 6.8.0 (2021-06-14)
772
+ ## v6.8.0 (2021-06-14)
757
773
 
758
774
  ### Added
759
775
 
@@ -780,14 +796,14 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
780
796
 
781
797
  - Fix a logging issue for the zigbee contact sensor
782
798
 
783
- ## 6.7.1 (2021-05-27)
799
+ ## v6.7.1 (2021-05-27)
784
800
 
785
801
  ### Fixed
786
802
 
787
803
  - Fixes an issue with sensors with a garage simulation
788
804
  - Fixes an issue with TH10/16 devices with web socket timeouts
789
805
 
790
- ## 6.7.0 (2021-05-26)
806
+ ## v6.7.0 (2021-05-26)
791
807
 
792
808
  ### Added
793
809
 
@@ -807,7 +823,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
807
823
 
808
824
  - Fix internal API auth issue when using a base64 encoded password
809
825
 
810
- ## 6.6.0 (2021-05-10)
826
+ ## v6.6.0 (2021-05-10)
811
827
 
812
828
  ### Added
813
829
 
@@ -832,7 +848,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
832
848
 
833
849
  - Fixes an issue where the web socket would not close on plugin shutdown
834
850
 
835
- ## 6.5.1 (2021-05-07)
851
+ ## v6.5.1 (2021-05-07)
836
852
 
837
853
  ### Changed
838
854
 
@@ -843,7 +859,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
843
859
 
844
860
  - Fixes an initialisation issue with the 'garage' and 'obstruction detection' switch simulations
845
861
 
846
- ## 6.5.0 (2021-05-06)
862
+ ## v6.5.0 (2021-05-06)
847
863
 
848
864
  ### Added
849
865
 
@@ -854,7 +870,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
854
870
  - Any higher integer to enable the API on this fixed port
855
871
  - Documentation for the API can be seen at the base url (Homebridge IP + API port)
856
872
 
857
- ## 6.4.0 (2021-05-04)
873
+ ## v6.4.0 (2021-05-04)
858
874
 
859
875
  ### Added
860
876
 
@@ -874,7 +890,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
874
890
  - Accessory 'identify' function will now add an entry to the log
875
891
  - Backend refactoring, function and variable name changes
876
892
 
877
- ## 6.3.0 (2021-04-28)
893
+ ## v6.3.0 (2021-04-28)
878
894
 
879
895
  ### Added
880
896
 
@@ -887,7 +903,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
887
903
  - Increase ws timeout from 5 to 6 seconds
888
904
  - Decrease lan-only timeout from 10 to 9 seconds
889
905
 
890
- ## 6.2.2 (2021-04-27)
906
+ ## v6.2.2 (2021-04-27)
891
907
 
892
908
  ### Changed
893
909
 
@@ -897,14 +913,14 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
897
913
  - Automatically retry eWeLink login on startup in case of certain error codes
898
914
  - Update package description (remove 'with original firmware' as this is redundant for eWeLink devices)
899
915
 
900
- ## 6.2.1 (2021-04-18)
916
+ ## v6.2.1 (2021-04-18)
901
917
 
902
918
  ### Changed
903
919
 
904
920
  - Trim new lines and spaces from password when decoded from base64
905
921
  - Updated dependencies (`ws`)
906
922
 
907
- ## 6.2.0 (2021-04-16)
923
+ ## v6.2.0 (2021-04-16)
908
924
 
909
925
  ### Added
910
926
 
@@ -925,19 +941,19 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
925
941
 
926
942
  - Fix characteristic NaN warning for `LastActivation`
927
943
 
928
- ## 6.1.2 (2021-04-14)
944
+ ## v6.1.2 (2021-04-14)
929
945
 
930
946
  ### Fixed
931
947
 
932
948
  - Remove any existing humidity sensor for TH10/16 if DS18B20 sensor is used
933
949
 
934
- ## 6.1.1 (2021-04-13)
950
+ ## v6.1.1 (2021-04-13)
935
951
 
936
952
  ### Fixed
937
953
 
938
954
  - Fixed an unhandled rejection error when controlling certain CCT bulbs
939
955
 
940
- ## 6.1.0 (2021-04-12)
956
+ ## v6.1.0 (2021-04-12)
941
957
 
942
958
  ### Added
943
959
 
@@ -950,20 +966,20 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
950
966
  - No more characteristic warnings for `LastActivation` for motion and contact sensors
951
967
  - Removed logs for 'not triggered' if device has since been triggered again
952
968
 
953
- ## 6.0.3 (2021-04-08)
969
+ ## v6.0.3 (2021-04-08)
954
970
 
955
971
  ### Fixed
956
972
 
957
973
  - Revert 'No Response' messages for **DW2** devices as they go on and offline
958
974
  - Fixed the interval time length for calculating total energy consumption for relevant devices
959
975
 
960
- ## 6.0.2 (2021-04-07)
976
+ ## v6.0.2 (2021-04-07)
961
977
 
962
978
  ### Changed
963
979
 
964
980
  - Revert 'No Response' messages for **DW2** devices as they go on and offline
965
981
 
966
- ## 6.0.1 (2021-04-07)
982
+ ## v6.0.1 (2021-04-07)
967
983
 
968
984
  ### Requirements
969
985
 
@@ -986,7 +1002,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
986
1002
 
987
1003
  - Fixes a caching issue with the iFan accessory
988
1004
 
989
- ## 5.6.0 (2021-03-25)
1005
+ ## v5.6.0 (2021-03-25)
990
1006
 
991
1007
  ### Added
992
1008
 
@@ -1001,7 +1017,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1001
1017
  - A new web socket address will be requested if the provided address causes errors
1002
1018
  - In particular this should fix the `ENOTFOUND as-pconnect4.coolkit.cc` error that some users in the Asia continent were receiving
1003
1019
 
1004
- ## 5.5.1 (2021-03-21)
1020
+ ## v5.5.1 (2021-03-21)
1005
1021
 
1006
1022
  ### Changed
1007
1023
 
@@ -1009,7 +1025,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1009
1025
  - More welcome messages
1010
1026
  - Updated `plugin-ui-utils` dependency
1011
1027
 
1012
- ## 5.5.0 (2021-03-17)
1028
+ ## v5.5.0 (2021-03-17)
1013
1029
 
1014
1030
  ### Added
1015
1031
 
@@ -1026,7 +1042,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1026
1042
  - Updated links on plugin-ui to match GitHub wiki
1027
1043
  - [backend] Eve characteristics abstracted into separate file for better efficiency
1028
1044
 
1029
- ## 5.4.0 (2021-03-14)
1045
+ ## v5.4.0 (2021-03-14)
1030
1046
 
1031
1047
  ### Added
1032
1048
 
@@ -1038,7 +1054,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1038
1054
 
1039
1055
  - Attempt to fix outlet polling updates so the device reports updated info rather than the previous info.
1040
1056
 
1041
- ## 5.3.0 (2021-03-10)
1057
+ ## v5.3.0 (2021-03-10)
1042
1058
 
1043
1059
  ### Added
1044
1060
 
@@ -1051,7 +1067,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1051
1067
  - For this reason, the `exposeContactSensor` setting is now redundant and so has been removed
1052
1068
  - Outlet intervals for energy calculation and updates will stop on Homebridge shutdown
1053
1069
 
1054
- ## 5.2.0 (2021-03-08)
1070
+ ## v5.2.0 (2021-03-08)
1055
1071
 
1056
1072
  ### Added
1057
1073
 
@@ -1069,13 +1085,13 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1069
1085
 
1070
1086
  - Fixes a `multiple callback` error with CCT bulb accessories
1071
1087
 
1072
- ## 5.1.1 (2021-03-02)
1088
+ ## v5.1.1 (2021-03-02)
1073
1089
 
1074
1090
  ### Fixed
1075
1091
 
1076
1092
  - Fixes an issue sending LAN updates to multi-channel devices
1077
1093
 
1078
- ## 5.1.0 (2021-03-02)
1094
+ ## v5.1.0 (2021-03-02)
1079
1095
 
1080
1096
  ### Added
1081
1097
 
@@ -1093,46 +1109,46 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1093
1109
 
1094
1110
  - Less strict threshold for determining a 'significant' colour change for disabling Adaptive Lighting
1095
1111
 
1096
- ## 5.0.6 (2021-02-26)
1112
+ ## v5.0.6 (2021-02-26)
1097
1113
 
1098
1114
  ### Fixed
1099
1115
 
1100
1116
  - Removes the extra _Switch_ service that was accidentally added to certain bulbs
1101
1117
 
1102
- ## 5.0.5 (2021-02-25)
1118
+ ## v5.0.5 (2021-02-25)
1103
1119
 
1104
1120
  ### Changed
1105
1121
 
1106
1122
  - Reverse the polarity of the leak sensor simulation
1107
1123
  - You can expose a DW2 sensor as a leak sensor using [this guide](https://www.youtube.com/watch?v=YFu2LZfrrqs) as an Accessory Simulation
1108
1124
 
1109
- ## 5.0.4 (2021-02-24)
1125
+ ## v5.0.4 (2021-02-24)
1110
1126
 
1111
1127
  ### Changed
1112
1128
 
1113
1129
  - Plugin will check that certain Accessory Simulations have been setup with the device type
1114
1130
  - Hide IP address field in plugin settings if plugin `mode` is set to `wan`
1115
1131
 
1116
- ## 5.0.3 (2021-02-24)
1132
+ ## v5.0.3 (2021-02-24)
1117
1133
 
1118
1134
  ### Changed
1119
1135
 
1120
1136
  - Remove old _Switch_ services when setting up Accessory Simulations
1121
1137
  - Add the type of Accessory Simulation to the logged options on restart
1122
1138
 
1123
- ## 5.0.2 (2021-02-24)
1139
+ ## v5.0.2 (2021-02-24)
1124
1140
 
1125
1141
  ### Fixed
1126
1142
 
1127
1143
  - Fixes an issue initialising Accessory Simulation Lock devices
1128
1144
 
1129
- ## 5.0.1 (2021-02-24)
1145
+ ## v5.0.1 (2021-02-24)
1130
1146
 
1131
1147
  ### Fixed
1132
1148
 
1133
1149
  - Fixes an issue initialising Contact Sensor devices
1134
1150
 
1135
- ## 5.0.0 (2021-02-24)
1151
+ ## v5.0.0 (2021-02-24)
1136
1152
 
1137
1153
  - ⚠️ This release includes an overhaul of the settings in particular to specific device configuration
1138
1154
  - The following options have been replaced:
@@ -1173,25 +1189,25 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1173
1189
 
1174
1190
  - Fixes a characteristic warning for _MotionDetected_ for Zigbee Motion Sensors
1175
1191
 
1176
- ## 4.7.6 (2021-02-17)
1192
+ ## v4.7.6 (2021-02-17)
1177
1193
 
1178
1194
  ### Fixed
1179
1195
 
1180
1196
  - Fixes an issue with the DW2 detecting garage door states
1181
1197
 
1182
- ## 4.7.5 (2021-02-15)
1198
+ ## v4.7.5 (2021-02-15)
1183
1199
 
1184
1200
  ### Changed
1185
1201
 
1186
1202
  - Fixes an issue with the DW2 detecting garage door states
1187
1203
 
1188
- ## 4.7.4 (2021-02-15)
1204
+ ## v4.7.4 (2021-02-15)
1189
1205
 
1190
1206
  ### Fixed
1191
1207
 
1192
1208
  - Fixes an issue when using custom RF sensors
1193
1209
 
1194
- ## 4.7.3 (2021-02-13)
1210
+ ## v4.7.3 (2021-02-13)
1195
1211
 
1196
1212
  ### Changed
1197
1213
 
@@ -1202,14 +1218,14 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1202
1218
  - Lighter colours appear brighter
1203
1219
  - Solid red is now easier to obtain via the Home app
1204
1220
 
1205
- ## 4.7.2 (2021-02-12)
1221
+ ## v4.7.2 (2021-02-12)
1206
1222
 
1207
1223
  ### Fixed
1208
1224
 
1209
1225
  - Fixes a bug where config items separated by a comma weren't adhered to properly
1210
1226
  - Stop subsequent warning messages if a device fails to initialise
1211
1227
 
1212
- ## 4.7.1 (2021-02-11)
1228
+ ## v4.7.1 (2021-02-11)
1213
1229
 
1214
1230
  ### Changed
1215
1231
 
@@ -1223,7 +1239,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1223
1239
 
1224
1240
  - Fixed a bug when initialising lock accessory simulations
1225
1241
 
1226
- ## 4.7.0 (2021-02-10)
1242
+ ## v4.7.0 (2021-02-10)
1227
1243
 
1228
1244
  ### Added
1229
1245
 
@@ -1257,14 +1273,14 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1257
1273
  - Fixed a bug where Adaptive Lighting would not be disabled if the colour was changed from the eWeLink app
1258
1274
  - Fixed an issue with the 'Lock' Accessory Simulation where the status would never update as 'Unlocked'
1259
1275
 
1260
- ## 4.6.1 (2021-02-02)
1276
+ ## v4.6.1 (2021-02-02)
1261
1277
 
1262
1278
  ### Changed
1263
1279
 
1264
1280
  - Extra debug logging for WS reconnection status
1265
1281
  - Updated `ws` dependency to v7.4.3
1266
1282
 
1267
- ## 4.6.0 (2021-01-30)
1283
+ ## v4.6.0 (2021-01-30)
1268
1284
 
1269
1285
  ### Added
1270
1286
 
@@ -1277,7 +1293,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1277
1293
  - Increase the timeout for LAN control to 10 seconds for LAN only settings
1278
1294
  - Show LAN update errors in the log
1279
1295
 
1280
- ## 4.5.1 (2021-01-28)
1296
+ ## v4.5.1 (2021-01-28)
1281
1297
 
1282
1298
  ### Changed
1283
1299
 
@@ -1288,7 +1304,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1288
1304
 
1289
1305
  - Fixes an issue where RF sensors would not use a custom defined type (again!)
1290
1306
 
1291
- ## 4.5.0 (2021-01-28)
1307
+ ## v4.5.0 (2021-01-28)
1292
1308
 
1293
1309
  ### Added
1294
1310
 
@@ -1304,25 +1320,25 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1304
1320
  - Fix for TH10/16 devices (shown as thermostat) where the plugin would not show the current state of the device
1305
1321
  - Fix for the display of watts/amps/volts for outlets that support this
1306
1322
 
1307
- ## 4.4.5 (2021-01-24)
1323
+ ## v4.4.5 (2021-01-24)
1308
1324
 
1309
1325
  ### Fixed
1310
1326
 
1311
1327
  - Fix where the battery for DW2 device would not update
1312
1328
 
1313
- ## 4.4.4 (2021-01-24)
1329
+ ## v4.4.4 (2021-01-24)
1314
1330
 
1315
1331
  ### Changed
1316
1332
 
1317
1333
  - Backend - better handling of errors
1318
1334
 
1319
- ## 4.4.3 (2021-01-20)
1335
+ ## v4.4.3 (2021-01-20)
1320
1336
 
1321
1337
  ### Fixed
1322
1338
 
1323
1339
  - Fixes an issue where RF sensors would not use a custom defined type
1324
1340
 
1325
- ## 4.4.2 (2021-01-20)
1341
+ ## v4.4.2 (2021-01-20)
1326
1342
 
1327
1343
  ### Changed
1328
1344
 
@@ -1332,13 +1348,13 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1332
1348
 
1333
1349
  - Fixes an issue when adding new RF bridge devices
1334
1350
 
1335
- ## 4.4.1 (2021-01-20)
1351
+ ## v4.4.1 (2021-01-20)
1336
1352
 
1337
1353
  ### Changed
1338
1354
 
1339
1355
  - Fakegato logging disabled in Homebridge `debug` mode, can be explicitly enabled with `debugFakegato`
1340
1356
 
1341
- ## 4.4.0 (2021-01-14)
1357
+ ## v4.4.0 (2021-01-14)
1342
1358
 
1343
1359
  ### Added
1344
1360
 
@@ -1354,7 +1370,7 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
1354
1370
 
1355
1371
  - Removed `Obstruction Detected` tests
1356
1372
 
1357
- ## 4.3.0 (2021-01-12)
1373
+ ## v4.3.0 (2021-01-12)
1358
1374
 
1359
1375
  ### Added
1360
1376
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Ben Potter
3
+ Copyright (c) Ben Potter
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -7,13 +7,13 @@
7
7
 
8
8
  Homebridge plugin to integrate eWeLink devices into HomeKit
9
9
 
10
- [![npm](https://img.shields.io/npm/v/homebridge-ewelink/latest?label=latest)](https://www.npmjs.com/package/homebridge-ewelink)
11
- [![npm](https://img.shields.io/npm/v/homebridge-ewelink/beta?label=beta)](https://github.com/homebridge-plugins/homebridge-ewelink/wiki/Beta-Version)
10
+ [![npm](https://img.shields.io/npm/v/@homebridge-plugins/homebridge-ewelink/latest?label=latest)](https://www.npmjs.com/package/@homebridge-plugins/homebridge-ewelink)
11
+ [![npm](https://img.shields.io/npm/v/@homebridge-plugins/homebridge-ewelink/beta?label=beta)](https://github.com/homebridge-plugins/homebridge-ewelink/wiki/Beta-Version)
12
12
 
13
13
  [![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
14
14
  [![hoobs-certified](https://badgen.net/badge/HOOBS/certified/yellow?label=hoobs)](https://plugins.hoobs.org/plugin/homebridge-ewelink)
15
15
 
16
- [![npm](https://img.shields.io/npm/dt/homebridge-ewelink)](https://www.npmjs.com/package/homebridge-ewelink)
16
+ [![npm](https://img.shields.io/npm/dt/@homebridge-plugins/homebridge-ewelink)](https://www.npmjs.com/package/@homebridge-plugins/homebridge-ewelink)
17
17
  [![Discord](https://img.shields.io/discord/432663330281226270?color=728ED5&logo=discord&label=hb-discord)](https://discord.com/channels/432663330281226270/742733745743855627)
18
18
 
19
19
  </span>
@@ -29,7 +29,7 @@ Homebridge plugin to integrate eWeLink devices into HomeKit
29
29
  ### Prerequisites
30
30
 
31
31
  - To use this plugin, you will need to already have:
32
- - [Node](https://nodejs.org): latest version of `v18` or `v20` - any other major version is not supported.
32
+ - [Node](https://nodejs.org): latest version of `v20`, `v22` or `v24` - any other major version is not supported.
33
33
  - [Homebridge](https://homebridge.io): `v1.6` - refer to link for more information and installation instructions.
34
34
 
35
35
  ### Setup
@@ -2,6 +2,7 @@
2
2
  "pluginAlias": "eWeLink",
3
3
  "pluginType": "platform",
4
4
  "singular": true,
5
+ "strictValidation": true,
5
6
  "customUi": true,
6
7
  "customUiPath": "./lib/homebridge-ui",
7
8
  "headerDisplay": "<p align=\"center\"><img width=\"60%\" src=\"https://user-images.githubusercontent.com/43026681/101325266-63126600-3863-11eb-9382-4a2924f0e540.png\"></p><p align=\"center\">For help and support please visit our <a href=\"https://github.com/homebridge-plugins/homebridge-ewelink/wiki\">GitHub Wiki</a>. We hope you find this plugin useful!</p>",
package/eslint.config.js CHANGED
@@ -8,8 +8,6 @@ export default antfu(
8
8
  rules: {
9
9
  'curly': ['error', 'multi-line'],
10
10
  'new-cap': 'off',
11
- 'import/extensions': ['error', 'ignorePackages'],
12
- 'import/order': 0,
13
11
  'jsdoc/check-alignment': 'warn',
14
12
  'jsdoc/check-line-alignment': 'warn',
15
13
  'jsdoc/require-returns-check': 0,
@@ -51,7 +51,7 @@ export default function (homebridge) {
51
51
  super('S2R1', S2R1Characteristic.UUID)
52
52
  this.setProps({
53
53
  format: homebridge.hap.Formats.DATA,
54
- perms: [homebridge.hap.Perms.READ, homebridge.hap.Perms.NOTIFY, homebridge.hap.Perms.HIDDEN],
54
+ perms: [homebridge.hap.Perms.PAIRED_READ, homebridge.hap.Perms.NOTIFY, homebridge.hap.Perms.HIDDEN],
55
55
  })
56
56
  }
57
57
  }
@@ -63,7 +63,7 @@ export default function (homebridge) {
63
63
  super('S2R2', S2R2Characteristic.UUID)
64
64
  this.setProps({
65
65
  format: homebridge.hap.Formats.DATA,
66
- perms: [homebridge.hap.Perms.READ, homebridge.hap.Perms.NOTIFY, homebridge.hap.Perms.HIDDEN],
66
+ perms: [homebridge.hap.Perms.PAIRED_READ, homebridge.hap.Perms.NOTIFY, homebridge.hap.Perms.HIDDEN],
67
67
  })
68
68
  }
69
69
  }
@@ -75,7 +75,7 @@ export default function (homebridge) {
75
75
  super('S2W1', S2W1Characteristic.UUID)
76
76
  this.setProps({
77
77
  format: homebridge.hap.Formats.DATA,
78
- perms: [homebridge.hap.Perms.WRITE, homebridge.hap.Perms.HIDDEN],
78
+ perms: [homebridge.hap.Perms.PAIRED_WRITE, homebridge.hap.Perms.HIDDEN],
79
79
  })
80
80
  }
81
81
  }
@@ -87,7 +87,7 @@ export default function (homebridge) {
87
87
  super('S2W2', S2W2Characteristic.UUID)
88
88
  this.setProps({
89
89
  format: homebridge.hap.Formats.DATA,
90
- perms: [homebridge.hap.Perms.WRITE, homebridge.hap.Perms.HIDDEN],
90
+ perms: [homebridge.hap.Perms.PAIRED_WRITE, homebridge.hap.Perms.HIDDEN],
91
91
  })
92
92
  }
93
93
  }
@@ -223,10 +223,10 @@
223
223
  try {
224
224
  const currentConfig = await homebridge.getPluginConfig()
225
225
  showIntro = () => {
226
+ homebridge.disableSaveButton?.()
226
227
  const introContinue = document.getElementById('introContinue')
227
228
  introContinue.addEventListener('click', () => {
228
229
  homebridge.showSpinner()
229
- homebridge.disableSaveButton?.()
230
230
  document.getElementById('pageIntro').style.display = 'none'
231
231
  document.getElementById('menuWrapper').style.display = 'inline-flex'
232
232
  showSettings()
@@ -13,7 +13,7 @@ export default class {
13
13
  self.hapChar.call(this, 'Invert Switch', self.uuids.invertSwitch)
14
14
  this.setProps({
15
15
  format: api.hap.Formats.BOOL,
16
- perms: [api.hap.Perms.READ, api.hap.Perms.WRITE, api.hap.Perms.NOTIFY],
16
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.PAIRED_WRITE, api.hap.Perms.NOTIFY],
17
17
  })
18
18
  this.value = this.getDefaultValue()
19
19
  }
@@ -21,7 +21,7 @@ export default class {
21
21
  self.hapChar.call(this, 'Festive Scene', self.uuids.festiveScene)
22
22
  this.setProps({
23
23
  format: api.hap.Formats.BOOL,
24
- perms: [api.hap.Perms.READ, api.hap.Perms.WRITE, api.hap.Perms.NOTIFY],
24
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.PAIRED_WRITE, api.hap.Perms.NOTIFY],
25
25
  })
26
26
  this.value = this.getDefaultValue()
27
27
  }
@@ -24,7 +24,7 @@ export default class {
24
24
  maxValue: 100000,
25
25
  minValue: 0,
26
26
  minStep: 1,
27
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
27
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
28
28
  })
29
29
  this.value = this.getDefaultValue()
30
30
  }
@@ -36,7 +36,7 @@ export default class {
36
36
  maxValue: 100000000000,
37
37
  minValue: 0,
38
38
  minStep: 0.01,
39
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
39
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
40
40
  })
41
41
  this.value = this.getDefaultValue()
42
42
  }
@@ -48,7 +48,7 @@ export default class {
48
48
  maxValue: 100000000000,
49
49
  minValue: 0,
50
50
  minStep: 1,
51
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
51
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
52
52
  })
53
53
  this.value = this.getDefaultValue()
54
54
  }
@@ -60,7 +60,7 @@ export default class {
60
60
  maxValue: 100000000000,
61
61
  minValue: 0,
62
62
  minStep: 0.1,
63
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
63
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
64
64
  })
65
65
  this.value = this.getDefaultValue()
66
66
  }
@@ -69,7 +69,7 @@ export default class {
69
69
  this.setProps({
70
70
  format: api.hap.Formats.UINT32,
71
71
  unit: api.hap.Units.seconds,
72
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY, api.hap.Perms.WRITE],
72
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY, api.hap.Perms.PAIRED_WRITE],
73
73
  })
74
74
  this.value = this.getDefaultValue()
75
75
  }
@@ -78,7 +78,7 @@ export default class {
78
78
  this.setProps({
79
79
  format: api.hap.Formats.UINT32,
80
80
  unit: api.hap.Units.SECONDS,
81
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
81
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
82
82
  })
83
83
  this.value = this.getDefaultValue()
84
84
  }
@@ -87,7 +87,7 @@ export default class {
87
87
  this.setProps({
88
88
  format: api.hap.Formats.UINT32,
89
89
  unit: api.hap.Units.SECONDS,
90
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY, api.hap.Perms.WRITE],
90
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY, api.hap.Perms.PAIRED_WRITE],
91
91
  })
92
92
  this.value = this.getDefaultValue()
93
93
  }
@@ -96,7 +96,7 @@ export default class {
96
96
  this.setProps({
97
97
  format: api.hap.Formats.UINT32,
98
98
  unit: api.hap.Units.SECONDS,
99
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY, api.hap.Perms.WRITE],
99
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY, api.hap.Perms.PAIRED_WRITE],
100
100
  })
101
101
  this.value = this.getDefaultValue()
102
102
  }
@@ -104,7 +104,7 @@ export default class {
104
104
  self.hapChar.call(this, 'Times Opened', self.uuids.timesOpened)
105
105
  this.setProps({
106
106
  format: api.hap.Formats.UINT32,
107
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
107
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
108
108
  })
109
109
  this.value = this.getDefaultValue()
110
110
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Homebridge eWeLink",
4
4
  "alias": "eWeLink",
5
5
  "type": "module",
6
- "version": "12.4.0",
6
+ "version": "12.5.0",
7
7
  "description": "Homebridge plugin to integrate eWeLink devices into HomeKit.",
8
8
  "author": {
9
9
  "name": "bwp91",
@@ -54,22 +54,21 @@
54
54
  "main": "lib/index.js",
55
55
  "engines": {
56
56
  "homebridge": "^1.6.0 || ^2.0.0-beta.0",
57
- "node": "^18.20.7 || ^20.18.3 || ^22.14.0"
57
+ "node": "^20 || ^22 || ^24"
58
58
  },
59
59
  "scripts": {
60
- "lint": "eslint . --fix",
61
- "rebuild": "rm -rf package-lock.json && rm -rf node_modules && npm install"
60
+ "lint": "eslint . --max-warnings=0",
61
+ "lint:fix": "npm run lint -- --fix"
62
62
  },
63
63
  "dependencies": {
64
- "@homebridge/plugin-ui-utils": "^2.0.1",
65
- "axios": "^1.7.9",
64
+ "@homebridge/plugin-ui-utils": "^2.1.0",
65
+ "axios": "^1.10.0",
66
66
  "node-persist": "^4.0.4",
67
67
  "p-queue": "^8.1.0",
68
- "websocket-as-promised": "^3.0.0",
69
- "ws": "^8.18.1"
68
+ "websocket-as-promised": "^3.0.1",
69
+ "ws": "^8.18.3"
70
70
  },
71
71
  "devDependencies": {
72
- "@antfu/eslint-config": "^4.3.0",
73
- "eslint": "^9.21.0"
72
+ "@antfu/eslint-config": "^4.16.2"
74
73
  }
75
74
  }