zigbee-herdsman-converters 15.0.22 → 15.0.23

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.
@@ -148,7 +148,7 @@ const fzLocal = {
148
148
  type: ['attributeReport', 'readResponse'],
149
149
  convert: (model, msg, publish, options, meta) => {
150
150
  const result = {linkquality: msg.linkquality};
151
- if (msg.data['4919']) result['transmit_power'] = msg.data['4919'] + 1;
151
+ if (msg.data['4919']) result['transmit_power'] = msg.data['4919'];
152
152
  return result;
153
153
  },
154
154
  },
@@ -4,6 +4,18 @@ const reporting = require('../lib/reporting');
4
4
  const extend = require('../lib/extend');
5
5
  const e = exposes.presets;
6
6
 
7
+ const fzLocal = {
8
+ WS01_rain: {
9
+ cluster: 'ssIasZone',
10
+ type: 'commandStatusChangeNotification',
11
+ convert: (model, msg, publish, options, meta) => {
12
+ const zoneStatus = msg.data.zonestatus;
13
+ if (msg.endpoint.ID != 1) return;
14
+ return {rain: (zoneStatus & 1) > 0};
15
+ },
16
+ },
17
+ };
18
+
7
19
  module.exports = [
8
20
  {
9
21
  zigbeeModel: ['SA-003-Zigbee'],
@@ -160,4 +172,13 @@ module.exports = [
160
172
  device.skipDefaultResponse = true;
161
173
  },
162
174
  },
175
+ {
176
+ zigbeeModel: ['WS01'],
177
+ model: 'WS01',
178
+ vendor: 'eWeLink',
179
+ description: 'Rainfall sensor',
180
+ fromZigbee: [fzLocal.WS01_rain],
181
+ toZigbee: [],
182
+ exposes: [e.rain()],
183
+ },
163
184
  ];
package/devices/lidl.js CHANGED
@@ -531,7 +531,7 @@ module.exports = [
531
531
  model: 'HG06106B',
532
532
  vendor: 'Lidl',
533
533
  description: 'Livarno Lux E14 candle RGB',
534
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true}),
534
+ ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, disablePowerOnBehavior: true}),
535
535
  meta: {applyRedFix: true, enhancedHue: false},
536
536
  configure: async (device, coordinatorEndpoint, logger) => {
537
537
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -542,7 +542,8 @@ module.exports = [
542
542
  model: '14153806L',
543
543
  vendor: 'Lidl',
544
544
  description: 'Livarno smart LED ceiling light',
545
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
545
+ ...extend.light_onoff_brightness_colortemp_color(
546
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
546
547
  meta: {applyRedFix: true, enhancedHue: false},
547
548
  configure: async (device, coordinatorEndpoint, logger) => {
548
549
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -553,7 +554,8 @@ module.exports = [
553
554
  model: '14156506L',
554
555
  vendor: 'Lidl',
555
556
  description: 'Livarno Lux smart LED mood light',
556
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
557
+ ...extend.light_onoff_brightness_colortemp_color(
558
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
557
559
  meta: {applyRedFix: true, enhancedHue: false},
558
560
  configure: async (device, coordinatorEndpoint, logger) => {
559
561
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -564,7 +566,8 @@ module.exports = [
564
566
  model: '14156408L',
565
567
  vendor: 'Lidl',
566
568
  description: 'Livarno Lux smart LED ceiling light',
567
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
569
+ ...extend.light_onoff_brightness_colortemp_color(
570
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
568
571
  meta: {applyRedFix: true, enhancedHue: false},
569
572
  configure: async (device, coordinatorEndpoint, logger) => {
570
573
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 16});
@@ -575,7 +578,8 @@ module.exports = [
575
578
  model: 'HG08010',
576
579
  vendor: 'Lidl',
577
580
  description: 'Livarno Home outdoor spotlight',
578
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
581
+ ...extend.light_onoff_brightness_colortemp_color(
582
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
579
583
  meta: {applyRedFix: true, enhancedHue: false},
580
584
  configure: async (device, coordinatorEndpoint, logger) => {
581
585
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -586,7 +590,8 @@ module.exports = [
586
590
  model: 'HG08008',
587
591
  vendor: 'Lidl',
588
592
  description: 'Livarno Home LED ceiling light',
589
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
593
+ ...extend.light_onoff_brightness_colortemp_color(
594
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
590
595
  meta: {applyRedFix: true, enhancedHue: false},
591
596
  configure: async (device, coordinatorEndpoint, logger) => {
592
597
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -597,7 +602,8 @@ module.exports = [
597
602
  model: 'HG08007',
598
603
  vendor: 'TuYa',
599
604
  description: 'Livarno Home outdoor LED band',
600
- extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500], disableColorTempStartup: true}),
605
+ extend: extend.light_onoff_brightness_colortemp_color(
606
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
601
607
  meta: {applyRedFix: true, enhancedHue: false},
602
608
  },
603
609
  {
@@ -605,7 +611,8 @@ module.exports = [
605
611
  model: '14158704L',
606
612
  vendor: 'Lidl',
607
613
  description: 'Livarno Home LED floor lamp, RGBW',
608
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
614
+ ...extend.light_onoff_brightness_colortemp_color(
615
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
609
616
  meta: {applyRedFix: true, enhancedHue: false},
610
617
  configure: async (device, coordinatorEndpoint, logger) => {
611
618
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -616,7 +623,8 @@ module.exports = [
616
623
  model: '14158804L',
617
624
  vendor: 'Lidl',
618
625
  description: 'Livarno Home LED desk lamp RGBW',
619
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
626
+ ...extend.light_onoff_brightness_colortemp_color(
627
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
620
628
  meta: {applyRedFix: true, enhancedHue: false},
621
629
  configure: async (device, coordinatorEndpoint, logger) => {
622
630
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -627,7 +635,8 @@ module.exports = [
627
635
  model: 'HG07834A',
628
636
  vendor: 'Lidl',
629
637
  description: 'Livarno Lux GU10 spot RGB',
630
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
638
+ ...extend.light_onoff_brightness_colortemp_color(
639
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
631
640
  meta: {applyRedFix: true, enhancedHue: false},
632
641
  configure: async (device, coordinatorEndpoint, logger) => {
633
642
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -639,7 +648,8 @@ module.exports = [
639
648
  model: 'HG07834B',
640
649
  vendor: 'Lidl',
641
650
  description: 'Livarno Lux E14 candle RGB',
642
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
651
+ ...extend.light_onoff_brightness_colortemp_color(
652
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
643
653
  meta: {applyRedFix: true, enhancedHue: false},
644
654
  configure: async (device, coordinatorEndpoint, logger) => {
645
655
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -650,7 +660,8 @@ module.exports = [
650
660
  model: 'HG08131C',
651
661
  vendor: 'Lidl',
652
662
  description: 'Livarno Home outdoor E27 bulb in set with flare',
653
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
663
+ ...extend.light_onoff_brightness_colortemp_color(
664
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
654
665
  meta: {applyRedFix: true, enhancedHue: false},
655
666
  configure: async (device, coordinatorEndpoint, logger) => {
656
667
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -661,7 +672,7 @@ module.exports = [
661
672
  model: 'HG06106A',
662
673
  vendor: 'Lidl',
663
674
  description: 'Livarno Lux GU10 spot RGB',
664
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true}),
675
+ ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, disablePowerOnBehavior: true}),
665
676
  meta: {applyRedFix: true, enhancedHue: false},
666
677
  configure: async (device, coordinatorEndpoint, logger) => {
667
678
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -683,7 +694,8 @@ module.exports = [
683
694
  model: 'HG07834C',
684
695
  vendor: 'Lidl',
685
696
  description: 'Livarno Lux E27 bulb RGB',
686
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
697
+ ...extend.light_onoff_brightness_colortemp_color(
698
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
687
699
  meta: {applyRedFix: true, enhancedHue: false},
688
700
  configure: async (device, coordinatorEndpoint, logger) => {
689
701
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -694,7 +706,7 @@ module.exports = [
694
706
  model: 'HG06492A',
695
707
  vendor: 'Lidl',
696
708
  description: 'Livarno Lux GU10 spot CCT',
697
- ...extend.light_onoff_brightness_colortemp({disableColorTempStartup: true}),
709
+ ...extend.light_onoff_brightness_colortemp({disableColorTempStartup: true, disablePowerOnBehavior: true}),
698
710
  configure: async (device, coordinatorEndpoint, logger) => {
699
711
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 16});
700
712
  },
@@ -704,7 +716,8 @@ module.exports = [
704
716
  model: 'HG06492B',
705
717
  vendor: 'Lidl',
706
718
  description: 'Livarno Lux E14 candle CCT',
707
- ...extend.light_onoff_brightness_colortemp({disableColorTempStartup: true, colorTempRange: [153, 500]}),
719
+ ...extend.light_onoff_brightness_colortemp(
720
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}),
708
721
  configure: async (device, coordinatorEndpoint, logger) => {
709
722
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 16});
710
723
  },
@@ -714,7 +727,7 @@ module.exports = [
714
727
  model: 'HG06492C',
715
728
  vendor: 'Lidl',
716
729
  description: 'Livarno Lux E27 bulb CCT',
717
- ...extend.light_onoff_brightness_colortemp({disableColorTempStartup: true}),
730
+ ...extend.light_onoff_brightness_colortemp({disableColorTempStartup: true, disablePowerOnBehavior: true}),
718
731
  configure: async (device, coordinatorEndpoint, logger) => {
719
732
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 16});
720
733
  },
@@ -725,7 +738,7 @@ module.exports = [
725
738
  model: '14147206L',
726
739
  vendor: 'Lidl',
727
740
  description: 'Livarno Lux ceiling light',
728
- ...extend.light_onoff_brightness_colortemp({disableColorTempStartup: true}),
741
+ ...extend.light_onoff_brightness_colortemp({disableColorTempStartup: true, disablePowerOnBehavior: true}),
729
742
  configure: async (device, coordinatorEndpoint, logger) => {
730
743
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 16});
731
744
  },
@@ -735,7 +748,8 @@ module.exports = [
735
748
  model: '14153905L',
736
749
  vendor: 'Lidl',
737
750
  description: 'Livarno Home LED floor lamp',
738
- ...extend.light_onoff_brightness_colortemp({disableColorTempStartup: true, colorTempRange: [153, 333]}),
751
+ ...extend.light_onoff_brightness_colortemp(
752
+ {disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 333]}),
739
753
  configure: async (device, coordinatorEndpoint, logger) => {
740
754
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 16});
741
755
  },
@@ -745,7 +759,7 @@ module.exports = [
745
759
  model: '14148906L',
746
760
  vendor: 'Lidl',
747
761
  description: 'Livarno Lux mood light RGB+CCT',
748
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true}),
762
+ ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, disablePowerOnBehavior: true}),
749
763
  meta: {applyRedFix: true, enhancedHue: false},
750
764
  configure: async (device, coordinatorEndpoint, logger) => {
751
765
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -757,7 +771,7 @@ module.exports = [
757
771
  model: '14149505L/14149506L',
758
772
  vendor: 'Lidl',
759
773
  description: 'Livarno Lux light bar RGB+CCT (black/white)',
760
- ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true}),
774
+ ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, disablePowerOnBehavior: true}),
761
775
  meta: {applyRedFix: true, enhancedHue: false},
762
776
  configure: async (device, coordinatorEndpoint, logger) => {
763
777
  device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
@@ -780,7 +794,7 @@ module.exports = [
780
794
  model: 'HG06463A',
781
795
  vendor: 'Lidl',
782
796
  description: 'Livarno Lux E27 ST64 filament bulb',
783
- extend: extend.light_onoff_brightness({disableEffect: true}),
797
+ extend: extend.light_onoff_brightness({disableEffect: true, disablePowerOnBehavior: true}),
784
798
  meta: {turnsOffAtBrightness1: false},
785
799
  },
786
800
  {
@@ -788,7 +802,7 @@ module.exports = [
788
802
  model: 'HG06463B',
789
803
  vendor: 'Lidl',
790
804
  description: 'Livarno Lux E27 G95 filament bulb',
791
- extend: extend.light_onoff_brightness({disableEffect: true}),
805
+ extend: extend.light_onoff_brightness({disableEffect: true, disablePowerOnBehavior: true}),
792
806
  meta: {turnsOffAtBrightness1: false},
793
807
  },
794
808
  {
@@ -811,7 +825,7 @@ module.exports = [
811
825
  model: 'HG06462A',
812
826
  vendor: 'Lidl',
813
827
  description: 'Livarno Lux E27 A60 filament bulb',
814
- extend: extend.light_onoff_brightness({disableEffect: true}),
828
+ extend: extend.light_onoff_brightness({disableEffect: true, disablePowerOnBehavior: true}),
815
829
  meta: {turnsOffAtBrightness1: false},
816
830
  },
817
831
  {
@@ -831,7 +845,8 @@ module.exports = [
831
845
  model: 'HG08633',
832
846
  vendor: 'Lidl',
833
847
  description: 'Livarno gardenspot RGB',
834
- extend: extend.light_onoff_brightness_colortemp_color({supportsHS: true, preferHS: true, colorTempRange: [153, 500]}),
848
+ extend: extend.light_onoff_brightness_colortemp_color({supportsHS: true, preferHS: true, colorTempRange: [153, 500],
849
+ disableColorTempStartup: true, disablePowerOnBehavior: true}),
835
850
  meta: {enhancedHue: false},
836
851
  },
837
852
  {
@@ -839,7 +854,8 @@ module.exports = [
839
854
  model: 'HG08383B',
840
855
  vendor: 'Lidl',
841
856
  description: 'Livarno outdoor LED light chain',
842
- extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500], disableColorTempStartup: true}),
857
+ extend: extend.light_onoff_brightness_colortemp_color(
858
+ {colorTempRange: [153, 500], disableColorTempStartup: true, disablePowerOnBehavior: true}),
843
859
  meta: {applyRedFix: true, enhancedHue: false},
844
860
  },
845
861
  {
@@ -903,7 +919,8 @@ module.exports = [
903
919
  model: 'HG08383A',
904
920
  vendor: 'Lidl',
905
921
  description: 'Livarno outdoor LED light chain',
906
- extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500], disableColorTempStartup: true}),
922
+ extend: extend.light_onoff_brightness_colortemp_color(
923
+ {colorTempRange: [153, 500], disableColorTempStartup: true, disablePowerOnBehavior: true}),
907
924
  meta: {applyRedFix: true, enhancedHue: false},
908
925
  },
909
926
  ];
package/lib/exposes.js CHANGED
@@ -638,6 +638,7 @@ module.exports = {
638
638
  voltage_phase_b: () => new Numeric('voltage_phase_b', access.STATE).withUnit('V').withDescription('Measured electrical potential value on phase B'),
639
639
  voltage_phase_c: () => new Numeric('voltage_phase_c', access.STATE).withUnit('V').withDescription('Measured electrical potential value on phase C'),
640
640
  water_leak: () => new Binary('water_leak', access.STATE, true, false).withDescription('Indicates whether the device detected a water leak'),
641
+ rain: () => new Binary('rain', access.STATE, true, false).withDescription('Indicates whether the device detected rainfall'),
641
642
  warning: () => new Composite('warning', 'warning', access.SET)
642
643
  .withFeature(new Enum('mode', access.SET, ['stop', 'burglar', 'fire', 'emergency', 'police_panic', 'fire_panic', 'emergency_panic']).withDescription('Mode of the warning (sound effect)'))
643
644
  .withFeature(new Enum('level', access.SET, ['low', 'medium', 'high', 'very_high']).withDescription('Sound level'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "15.0.22",
3
+ "version": "15.0.23",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -38,7 +38,7 @@
38
38
  "buffer-crc32": "^0.2.13",
39
39
  "https-proxy-agent": "^5.0.1",
40
40
  "tar-stream": "^3.0.0",
41
- "zigbee-herdsman": "^0.14.84"
41
+ "zigbee-herdsman": "^0.14.87"
42
42
  },
43
43
  "devDependencies": {
44
44
  "eslint": "*",