zigbee-herdsman-converters 21.0.0 → 21.2.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 +39 -0
- package/devices/adeo.d.ts.map +1 -1
- package/devices/adeo.js +4 -1
- package/devices/adeo.js.map +1 -1
- package/devices/bosch.d.ts.map +1 -1
- package/devices/bosch.js +3 -1
- package/devices/bosch.js.map +1 -1
- package/devices/dowsing_reynolds.d.ts +4 -0
- package/devices/dowsing_reynolds.d.ts.map +1 -0
- package/devices/dowsing_reynolds.js +15 -0
- package/devices/dowsing_reynolds.js.map +1 -0
- package/devices/index.d.ts.map +1 -1
- package/devices/index.js +2 -0
- package/devices/index.js.map +1 -1
- package/devices/innr.d.ts.map +1 -1
- package/devices/innr.js +14 -0
- package/devices/innr.js.map +1 -1
- package/devices/lonsonho.d.ts.map +1 -1
- package/devices/lonsonho.js +12 -0
- package/devices/lonsonho.js.map +1 -1
- package/devices/philips.js +3 -3
- package/devices/philips.js.map +1 -1
- package/devices/saswell.d.ts.map +1 -1
- package/devices/saswell.js +2 -0
- package/devices/saswell.js.map +1 -1
- package/devices/schneider_electric.d.ts.map +1 -1
- package/devices/schneider_electric.js +25 -25
- package/devices/schneider_electric.js.map +1 -1
- package/devices/sunricher.d.ts.map +1 -1
- package/devices/sunricher.js +135 -103
- package/devices/sunricher.js.map +1 -1
- package/devices/third_reality.d.ts.map +1 -1
- package/devices/third_reality.js +7 -11
- package/devices/third_reality.js.map +1 -1
- package/devices/tuya.d.ts.map +1 -1
- package/devices/tuya.js +44 -51
- package/devices/tuya.js.map +1 -1
- package/devices/yandex.js +2 -2
- package/devices/yandex.js.map +1 -1
- package/lib/modernExtend.d.ts +9 -0
- package/lib/modernExtend.d.ts.map +1 -1
- package/lib/modernExtend.js +11 -0
- package/lib/modernExtend.js.map +1 -1
- package/lib/tuya.d.ts +5 -1
- package/lib/tuya.d.ts.map +1 -1
- package/lib/tuya.js +42 -36
- package/lib/tuya.js.map +1 -1
- package/package.json +1 -1
package/devices/tuya.js
CHANGED
|
@@ -793,47 +793,6 @@ const definitions = [
|
|
|
793
793
|
toZigbee: [],
|
|
794
794
|
exposes: [e.gas(), e.tamper()],
|
|
795
795
|
},
|
|
796
|
-
{
|
|
797
|
-
fingerprint: [
|
|
798
|
-
{
|
|
799
|
-
modelID: 'TS0601',
|
|
800
|
-
manufacturerName: '_TZE204_wktrysab',
|
|
801
|
-
},
|
|
802
|
-
],
|
|
803
|
-
model: 'WLS098-ZIGBEE',
|
|
804
|
-
vendor: 'Tuya',
|
|
805
|
-
description: '8 gang wall touch switch board',
|
|
806
|
-
fromZigbee: [tuya.fz.datapoints],
|
|
807
|
-
toZigbee: [tuya.tz.datapoints],
|
|
808
|
-
onEvent: tuya.onEventSetTime,
|
|
809
|
-
configure: tuya.configureMagicPacket,
|
|
810
|
-
exposes: [...Array.from({ length: 8 }, (_, i) => tuya.exposes.switch().withEndpoint(`l${i + 1}`))],
|
|
811
|
-
endpoint: (device) => {
|
|
812
|
-
return {
|
|
813
|
-
l1: 1,
|
|
814
|
-
l2: 1,
|
|
815
|
-
l3: 1,
|
|
816
|
-
l4: 1,
|
|
817
|
-
l5: 1,
|
|
818
|
-
l6: 1,
|
|
819
|
-
l7: 1,
|
|
820
|
-
l8: 1,
|
|
821
|
-
};
|
|
822
|
-
},
|
|
823
|
-
meta: {
|
|
824
|
-
multiEndpoint: true,
|
|
825
|
-
tuyaDatapoints: [
|
|
826
|
-
[1, 'state_l1', tuya.valueConverter.onOff],
|
|
827
|
-
[2, 'state_l2', tuya.valueConverter.onOff],
|
|
828
|
-
[3, 'state_l3', tuya.valueConverter.onOff],
|
|
829
|
-
[4, 'state_l4', tuya.valueConverter.onOff],
|
|
830
|
-
[5, 'state_l5', tuya.valueConverter.onOff],
|
|
831
|
-
[6, 'state_l6', tuya.valueConverter.onOff],
|
|
832
|
-
[0x65, 'state_l7', tuya.valueConverter.onOff],
|
|
833
|
-
[0x66, 'state_l8', tuya.valueConverter.onOff],
|
|
834
|
-
],
|
|
835
|
-
},
|
|
836
|
-
},
|
|
837
796
|
{
|
|
838
797
|
zigbeeModel: ['TS0205'],
|
|
839
798
|
model: 'TS0205',
|
|
@@ -942,6 +901,10 @@ const definitions = [
|
|
|
942
901
|
catch {
|
|
943
902
|
/* Fails for some*/
|
|
944
903
|
}
|
|
904
|
+
const endpoint = device.getEndpoint(1);
|
|
905
|
+
if (endpoint.binds.some((b) => b.cluster.name === 'genPollCtrl')) {
|
|
906
|
+
await endpoint.unbind('genPollCtrl', coordinatorEndpoint);
|
|
907
|
+
}
|
|
945
908
|
},
|
|
946
909
|
},
|
|
947
910
|
{
|
|
@@ -5072,10 +5035,11 @@ const definitions = [
|
|
|
5072
5035
|
},
|
|
5073
5036
|
},
|
|
5074
5037
|
{
|
|
5075
|
-
fingerprint:
|
|
5038
|
+
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_9mjy74mp', '_TZE200_rtrmfadk']),
|
|
5076
5039
|
model: 'TRV602',
|
|
5077
5040
|
vendor: 'Tuya',
|
|
5078
5041
|
description: 'Thermostatic radiator valve.',
|
|
5042
|
+
whiteLabel: [tuya.whitelabel('Moes', 'TRV801', 'Thermostatic radiator valve', ['_TZE204_9mjy74mp'])],
|
|
5079
5043
|
onEvent: tuya.onEventSetLocalTime,
|
|
5080
5044
|
fromZigbee: [tuya.fz.datapoints],
|
|
5081
5045
|
toZigbee: [tuya.tz.datapoints],
|
|
@@ -5355,6 +5319,7 @@ const definitions = [
|
|
|
5355
5319
|
tuya.whitelabel('Nous', 'A1Z', 'Smart plug (with power monitoring)', ['_TZ3000_ksw8qtmt']),
|
|
5356
5320
|
tuya.whitelabel('Elivco', 'LSPA9', 'Smart plug (with power monitoring)', ['_TZ3000_okaz9tjs']),
|
|
5357
5321
|
tuya.whitelabel('PSMART', 'T440', 'Smart wallsocket (with power monitoring)', ['_TZ3000_y4ona9me']),
|
|
5322
|
+
tuya.whitelabel('Nous', 'A6Z', 'Outdoor smart socket', ['_TZ3000_266azbg3']),
|
|
5358
5323
|
],
|
|
5359
5324
|
ota: true,
|
|
5360
5325
|
extend: [
|
|
@@ -9739,6 +9704,10 @@ const definitions = [
|
|
|
9739
9704
|
{ modelID: 'TS0601', manufacturerName: '_TZE200_vmcgja59' },
|
|
9740
9705
|
{ modelID: 'TS0601', manufacturerName: '_TZE204_dvosyycn' },
|
|
9741
9706
|
{ modelID: 'TS0601', manufacturerName: '_TZE200_wktrysab' },
|
|
9707
|
+
{
|
|
9708
|
+
modelID: 'TS0601',
|
|
9709
|
+
manufacturerName: '_TZE204_wktrysab',
|
|
9710
|
+
},
|
|
9742
9711
|
],
|
|
9743
9712
|
model: 'TS0601_switch_8',
|
|
9744
9713
|
vendor: 'Tuya',
|
|
@@ -11482,7 +11451,7 @@ const definitions = [
|
|
|
11482
11451
|
],
|
|
11483
11452
|
},
|
|
11484
11453
|
{
|
|
11485
|
-
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_kobbcyum']),
|
|
11454
|
+
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_kobbcyum', '_TZE284_kobbcyum', '_TZE284_hecsejsb']),
|
|
11486
11455
|
model: 'TOWSMR1',
|
|
11487
11456
|
vendor: 'Tongou',
|
|
11488
11457
|
description: 'Single-phase multifunction RCBO (DIN Module)',
|
|
@@ -12993,14 +12962,21 @@ const definitions = [
|
|
|
12993
12962
|
.climate()
|
|
12994
12963
|
.withLocalTemperature(ea.STATE)
|
|
12995
12964
|
.withSystemMode(['cool', 'heat', 'fan_only'], ea.STATE_SET)
|
|
12996
|
-
.withSetpoint('current_heating_setpoint', 5, 45,
|
|
12997
|
-
.withFanMode(['auto', 'high', 'medium', 'low'], ea.STATE_SET)
|
|
12998
|
-
.withLocalTemperatureCalibration(-9, 9, 0.
|
|
12965
|
+
.withSetpoint('current_heating_setpoint', 5, 45, 0.5, ea.STATE_SET)
|
|
12966
|
+
.withFanMode(['auto', 'high', 'medium', 'low', 'off'], ea.STATE_SET)
|
|
12967
|
+
.withLocalTemperatureCalibration(-9, 9, 0.1, ea.STATE_SET),
|
|
12968
|
+
e
|
|
12969
|
+
.numeric('deadzone_temperature', ea.STATE_SET)
|
|
12970
|
+
.withValueMax(5)
|
|
12971
|
+
.withValueMin(1)
|
|
12972
|
+
.withValueStep(1)
|
|
12973
|
+
.withPreset('default', 1, 'Default value')
|
|
12974
|
+
.withDescription('The difference between the local temperature that triggers heating and the set temperature'),
|
|
12999
12975
|
e.min_temperature().withValueMin(5).withValueMax(15),
|
|
13000
12976
|
e.max_temperature().withValueMin(35).withValueMax(45),
|
|
13001
12977
|
e.child_lock(),
|
|
13002
12978
|
e.humidity(),
|
|
13003
|
-
e.binary('manual_mode', ea.STATE_SET, '
|
|
12979
|
+
e.binary('manual_mode', ea.STATE_SET, 'Auto', 'Manual').withDescription('Manual = Manual or Schedule = Auto'),
|
|
13004
12980
|
],
|
|
13005
12981
|
meta: {
|
|
13006
12982
|
tuyaDatapoints: [
|
|
@@ -13008,13 +12984,30 @@ const definitions = [
|
|
|
13008
12984
|
[2, 'system_mode', tuya.valueConverterBasic.lookup({ cool: tuya.enum(0), heat: tuya.enum(1), fan_only: tuya.enum(2) })],
|
|
13009
12985
|
[16, 'current_heating_setpoint', tuya.valueConverter.divideBy10],
|
|
13010
12986
|
[19, 'max_temperature', tuya.valueConverter.divideBy10],
|
|
12987
|
+
[18, 'max_temperature_f', tuya.valueConverter.raw],
|
|
12988
|
+
[20, 'min_temperature_f', tuya.valueConverter.raw],
|
|
12989
|
+
[21, 'local_temperature_f', tuya.valueConverter.raw],
|
|
13011
12990
|
[24, 'local_temperature', tuya.valueConverter.divideBy10],
|
|
13012
12991
|
[26, 'min_temperature', tuya.valueConverter.divideBy10],
|
|
13013
|
-
[102, 'local_temperature_calibration', tuya.valueConverter.
|
|
13014
|
-
[
|
|
12992
|
+
[102, 'local_temperature_calibration', tuya.valueConverter.localTempCalibration1],
|
|
12993
|
+
[103, 'local_temperature_calibration_f', tuya.valueConverter.raw],
|
|
12994
|
+
[104, 'deadzone_temperature', tuya.valueConverter.raw],
|
|
12995
|
+
[105, 'deadzone_temperature_f', tuya.valueConverter.raw],
|
|
12996
|
+
[
|
|
12997
|
+
28,
|
|
12998
|
+
'fan_mode',
|
|
12999
|
+
tuya.valueConverterBasic.lookup({
|
|
13000
|
+
auto: tuya.enum(0),
|
|
13001
|
+
high: tuya.enum(1),
|
|
13002
|
+
medium: tuya.enum(2),
|
|
13003
|
+
low: tuya.enum(3),
|
|
13004
|
+
off: tuya.enum(4),
|
|
13005
|
+
}),
|
|
13006
|
+
],
|
|
13015
13007
|
[40, 'child_lock', tuya.valueConverter.lockUnlock],
|
|
13016
|
-
[
|
|
13017
|
-
[
|
|
13008
|
+
[44, 'current_heating_setpoint_f', tuya.valueConverter.raw],
|
|
13009
|
+
[46, 'temperature_scale', tuya.valueConverter.raw],
|
|
13010
|
+
[101, 'manual_mode', tuya.valueConverterBasic.lookup({ Auto: tuya.enum(0), Manual: tuya.enum(1), Tempoary: tuya.enum(2) })],
|
|
13018
13011
|
],
|
|
13019
13012
|
},
|
|
13020
13013
|
},
|