zigbee-herdsman-converters 25.75.0 → 25.76.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 +21 -0
- package/dist/devices/adeo.d.ts.map +1 -1
- package/dist/devices/adeo.js +7 -0
- package/dist/devices/adeo.js.map +1 -1
- package/dist/devices/hive.d.ts.map +1 -1
- package/dist/devices/hive.js +2 -1
- package/dist/devices/hive.js.map +1 -1
- package/dist/devices/philips.d.ts.map +1 -1
- package/dist/devices/philips.js +7 -0
- package/dist/devices/philips.js.map +1 -1
- package/dist/devices/sonoff.d.ts +6 -0
- package/dist/devices/sonoff.d.ts.map +1 -1
- package/dist/devices/sonoff.js +155 -3
- package/dist/devices/sonoff.js.map +1 -1
- package/dist/devices/third_reality.js +3 -3
- package/dist/devices/third_reality.js.map +1 -1
- package/dist/devices/tuya.d.ts.map +1 -1
- package/dist/devices/tuya.js +194 -8
- package/dist/devices/tuya.js.map +1 -1
- package/dist/devices/wirenboard.d.ts.map +1 -1
- package/dist/devices/wirenboard.js +13 -0
- package/dist/devices/wirenboard.js.map +1 -1
- package/dist/models-index.json +1 -1
- package/package.json +1 -1
package/dist/devices/sonoff.d.ts
CHANGED
|
@@ -22,6 +22,12 @@ export interface SonoffEwelink {
|
|
|
22
22
|
energyToday: number;
|
|
23
23
|
energyMonth: number;
|
|
24
24
|
energyYesterday: number;
|
|
25
|
+
setCalibrationAction: number[];
|
|
26
|
+
calibrationStatus: number;
|
|
27
|
+
calibrationProgress: number;
|
|
28
|
+
minBrightnessThreshold: number;
|
|
29
|
+
transitionTime: number;
|
|
30
|
+
dimmingLightRate: number;
|
|
25
31
|
};
|
|
26
32
|
commands: {
|
|
27
33
|
protocolData: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sonoff.d.ts","sourceRoot":"","sources":["../../src/devices/sonoff.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAC,oBAAoB,EAAyC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C;QACvB,gBAAgB,EAAE,MAAM,CAAC;QACzB,0BAA0B,EAAE,MAAM,CAAC;QACnC,4BAA4B,EAAE,MAAM,CAAC;QACrC,cAAc,EAAE,MAAM,CAAC;QACvB,qBAAqB,EAAE,MAAM,CAAC;QAC9B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,mBAAmB,EAAE,MAAM,CAAC;QAE5B,sBAAsB,EAAE,MAAM,CAAC;QAC/B,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;QACxB,oBAAoB,EAAE,MAAM,EAAE,CAAC;QAC/B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,mBAAmB,EAAE,MAAM,CAAC;QAC5B,sBAAsB,EAAE,MAAM,CAAC;QAC/B,cAAc,EAAE,MAAM,CAAC;QACvB,gBAAgB,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,QAAQ,EAAE;QACN,YAAY,EAAE;YAAC,IAAI,EAAE,MAAM,EAAE,CAAA;SAAC,CAAC;KAClC,CAAC;IACF,gBAAgB,EAAE,KAAK,CAAC;CAC3B;AAs9BD,eAAO,MAAM,WAAW,EAAE,oBAAoB,EAk7D7C,CAAC"}
|
package/dist/devices/sonoff.js
CHANGED
|
@@ -134,13 +134,19 @@ const sonoffExtend = {
|
|
|
134
134
|
energyToday: { ID: 0x7009, type: zigbee_herdsman_1.Zcl.DataType.UINT32 },
|
|
135
135
|
energyMonth: { ID: 0x700a, type: zigbee_herdsman_1.Zcl.DataType.UINT32 },
|
|
136
136
|
energyYesterday: { ID: 0x700b, type: zigbee_herdsman_1.Zcl.DataType.UINT32 },
|
|
137
|
+
setCalibrationAction: { ID: 0x001d, type: zigbee_herdsman_1.Zcl.DataType.CHAR_STR },
|
|
138
|
+
calibrationStatus: { ID: 0x001e, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
|
|
139
|
+
calibrationProgress: { ID: 0x0020, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
|
|
140
|
+
minBrightnessThreshold: { ID: 0x4001, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
|
|
141
|
+
dimmingLightRate: { ID: 0x4003, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
|
|
142
|
+
transitionTime: { ID: 0x001f, type: zigbee_herdsman_1.Zcl.DataType.UINT32 },
|
|
137
143
|
},
|
|
138
144
|
commands: {
|
|
139
145
|
protocolData: { ID: 0x01, parameters: [{ name: "data", type: zigbee_herdsman_1.Zcl.BuffaloZclDataType.LIST_UINT8 }] },
|
|
140
146
|
},
|
|
141
147
|
commandsResponse: {},
|
|
142
148
|
}),
|
|
143
|
-
inchingControlSet: (args = {}) => {
|
|
149
|
+
inchingControlSet: (args = {}, maxTime = 3599.5) => {
|
|
144
150
|
const { endpointNames = undefined } = args;
|
|
145
151
|
const clusterName = "customClusterEwelink";
|
|
146
152
|
const commandName = "protocolData";
|
|
@@ -154,7 +160,7 @@ const sonoffExtend = {
|
|
|
154
160
|
.withDescription("Delay time for executing a inching action.")
|
|
155
161
|
.withUnit("seconds")
|
|
156
162
|
.withValueMin(0.5)
|
|
157
|
-
.withValueMax(
|
|
163
|
+
.withValueMax(maxTime)
|
|
158
164
|
.withValueStep(0.5))
|
|
159
165
|
.withFeature(e.binary("inching_mode", ea.SET, "ON", "OFF").withDescription("Set inching off or inching on mode.").withValueToggle("ON")), endpointNames);
|
|
160
166
|
const toZigbee = [
|
|
@@ -1788,7 +1794,7 @@ exports.definitions = [
|
|
|
1788
1794
|
.climate()
|
|
1789
1795
|
.withSetpoint("occupied_heating_setpoint", 4, 35, 0.5)
|
|
1790
1796
|
.withLocalTemperature()
|
|
1791
|
-
.withLocalTemperatureCalibration(-12.
|
|
1797
|
+
.withLocalTemperatureCalibration(-12.7, 12.7, 0.2)
|
|
1792
1798
|
.withSystemMode(["off", "auto", "heat"], ea.ALL, "Mode of the thermostat")
|
|
1793
1799
|
.withRunningState(["idle", "heat"], ea.STATE_GET),
|
|
1794
1800
|
e.battery(),
|
|
@@ -2706,5 +2712,151 @@ exports.definitions = [
|
|
|
2706
2712
|
]);
|
|
2707
2713
|
},
|
|
2708
2714
|
},
|
|
2715
|
+
{
|
|
2716
|
+
zigbeeModel: ["MINI-ZBDIM"],
|
|
2717
|
+
model: "MINI-ZBDIM",
|
|
2718
|
+
vendor: "SONOFF",
|
|
2719
|
+
description: "Zigbee smart mini dimmer switch",
|
|
2720
|
+
extend: [
|
|
2721
|
+
m.light({
|
|
2722
|
+
effect: false,
|
|
2723
|
+
powerOnBehavior: true,
|
|
2724
|
+
configureReporting: true,
|
|
2725
|
+
}),
|
|
2726
|
+
m.numeric({
|
|
2727
|
+
name: "current",
|
|
2728
|
+
cluster: "customClusterEwelink",
|
|
2729
|
+
attribute: "acCurrentCurrentValue",
|
|
2730
|
+
description: "Current",
|
|
2731
|
+
unit: "A",
|
|
2732
|
+
valueStep: 0.01,
|
|
2733
|
+
scale: 1000,
|
|
2734
|
+
access: "STATE_GET",
|
|
2735
|
+
}),
|
|
2736
|
+
m.numeric({
|
|
2737
|
+
name: "voltage",
|
|
2738
|
+
cluster: "customClusterEwelink",
|
|
2739
|
+
attribute: "acCurrentVoltageValue",
|
|
2740
|
+
description: "Voltage",
|
|
2741
|
+
unit: "V",
|
|
2742
|
+
scale: 1000,
|
|
2743
|
+
access: "STATE_GET",
|
|
2744
|
+
}),
|
|
2745
|
+
m.numeric({
|
|
2746
|
+
name: "power",
|
|
2747
|
+
cluster: "customClusterEwelink",
|
|
2748
|
+
attribute: "acCurrentPowerValue",
|
|
2749
|
+
description: "Active power",
|
|
2750
|
+
unit: "W",
|
|
2751
|
+
scale: 1000,
|
|
2752
|
+
access: "STATE_GET",
|
|
2753
|
+
reporting: { min: "10_SECONDS", max: "MAX", change: 0 },
|
|
2754
|
+
}),
|
|
2755
|
+
sonoffExtend.addCustomClusterEwelink(),
|
|
2756
|
+
m.binary({
|
|
2757
|
+
name: "delayed_power_on_state",
|
|
2758
|
+
cluster: "customClusterEwelink",
|
|
2759
|
+
attribute: "delayedPowerOnState",
|
|
2760
|
+
description: "Delayed Power-on State",
|
|
2761
|
+
entityCategory: "config",
|
|
2762
|
+
valueOff: [false, 0],
|
|
2763
|
+
valueOn: [true, 1],
|
|
2764
|
+
}),
|
|
2765
|
+
m.numeric({
|
|
2766
|
+
name: "delayed_power_on_time",
|
|
2767
|
+
cluster: "customClusterEwelink",
|
|
2768
|
+
attribute: "delayedPowerOnTime",
|
|
2769
|
+
description: "Delayed Power-on time",
|
|
2770
|
+
entityCategory: "config",
|
|
2771
|
+
valueMin: 0.5,
|
|
2772
|
+
valueMax: 3599.5,
|
|
2773
|
+
valueStep: 0.5,
|
|
2774
|
+
unit: "seconds",
|
|
2775
|
+
scale: 2,
|
|
2776
|
+
}),
|
|
2777
|
+
sonoffExtend.inchingControlSet({}, 86399.5),
|
|
2778
|
+
m.enumLookup({
|
|
2779
|
+
name: "external_trigger_mode",
|
|
2780
|
+
lookup: { edge: 0, pulse: 1, "double pulse": 3, "triple pulse": 4 },
|
|
2781
|
+
cluster: "customClusterEwelink",
|
|
2782
|
+
attribute: "externalTriggerMode",
|
|
2783
|
+
access: "ALL",
|
|
2784
|
+
entityCategory: "config",
|
|
2785
|
+
description: "External trigger mode, which can be one of edge, pulse,double pulse,triple pulse." +
|
|
2786
|
+
"The appropriate triggering mode can be selected according to the type of external switch to achieve a better use experience.",
|
|
2787
|
+
}),
|
|
2788
|
+
m.enumLookup({
|
|
2789
|
+
name: "set_calibration_action",
|
|
2790
|
+
lookup: { start: [0x03, 0x01, 0x01, 0x01], stop: [0x03, 0x01, 0x01, 0x02], clear: [0x03, 0x01, 0x01, 0x03] },
|
|
2791
|
+
cluster: "customClusterEwelink",
|
|
2792
|
+
attribute: "setCalibrationAction",
|
|
2793
|
+
description: "After calibration, the light adjustment becomes smooth and consistent.. Takes about 2 minutes; device unavailable during calibration.",
|
|
2794
|
+
access: "ALL",
|
|
2795
|
+
entityCategory: "config",
|
|
2796
|
+
}),
|
|
2797
|
+
m.enumLookup({
|
|
2798
|
+
name: "calibration_status",
|
|
2799
|
+
lookup: { uncalibrate: 0, cailbrating: 1, calibration_failed: 2, calibrated: 3 },
|
|
2800
|
+
cluster: "customClusterEwelink",
|
|
2801
|
+
attribute: "calibrationStatus",
|
|
2802
|
+
description: "Calibration status.",
|
|
2803
|
+
access: "STATE_GET",
|
|
2804
|
+
entityCategory: "diagnostic",
|
|
2805
|
+
}),
|
|
2806
|
+
m.numeric({
|
|
2807
|
+
name: "calibration_progress",
|
|
2808
|
+
access: "STATE_GET",
|
|
2809
|
+
cluster: "customClusterEwelink",
|
|
2810
|
+
attribute: "calibrationProgress",
|
|
2811
|
+
description: "Calibration progress.",
|
|
2812
|
+
entityCategory: "diagnostic",
|
|
2813
|
+
valueMin: 0,
|
|
2814
|
+
valueMax: 100,
|
|
2815
|
+
valueStep: 1,
|
|
2816
|
+
unit: "%",
|
|
2817
|
+
}),
|
|
2818
|
+
m.numeric({
|
|
2819
|
+
name: "min_brightness_threshold",
|
|
2820
|
+
access: "ALL",
|
|
2821
|
+
cluster: "customClusterEwelink",
|
|
2822
|
+
attribute: "minBrightnessThreshold",
|
|
2823
|
+
description: "Lowest brightness level mapped to 1 % on the dimmer slider.",
|
|
2824
|
+
entityCategory: "config",
|
|
2825
|
+
valueMin: 1,
|
|
2826
|
+
valueMax: 50,
|
|
2827
|
+
valueStep: 1,
|
|
2828
|
+
unit: "%",
|
|
2829
|
+
scale: 2.55,
|
|
2830
|
+
precision: 0,
|
|
2831
|
+
}),
|
|
2832
|
+
m.numeric({
|
|
2833
|
+
name: "transition_time",
|
|
2834
|
+
access: "ALL",
|
|
2835
|
+
cluster: "customClusterEwelink",
|
|
2836
|
+
attribute: "transitionTime",
|
|
2837
|
+
description: "Transition time",
|
|
2838
|
+
entityCategory: "config",
|
|
2839
|
+
valueMin: 0,
|
|
2840
|
+
valueMax: 5,
|
|
2841
|
+
valueStep: 0.1,
|
|
2842
|
+
unit: "s",
|
|
2843
|
+
scale: 10,
|
|
2844
|
+
}),
|
|
2845
|
+
m.enumLookup({
|
|
2846
|
+
name: "dimming_light_rate",
|
|
2847
|
+
lookup: { "1x": 1, "2x": 2, "3x": 3, "4x": 4, "5x": 5 },
|
|
2848
|
+
cluster: "customClusterEwelink",
|
|
2849
|
+
attribute: "dimmingLightRate",
|
|
2850
|
+
description: "Speed of brightness change via external switch.",
|
|
2851
|
+
access: "ALL",
|
|
2852
|
+
entityCategory: "config",
|
|
2853
|
+
}),
|
|
2854
|
+
],
|
|
2855
|
+
ota: true,
|
|
2856
|
+
configure: async (device, coordinatorEndpoint) => {
|
|
2857
|
+
const endpoint = device.getEndpoint(1);
|
|
2858
|
+
await endpoint.read("customClusterEwelink", [0x0016, 0x001e, 0x4001, 0x4003], defaultResponseOptions);
|
|
2859
|
+
},
|
|
2860
|
+
},
|
|
2709
2861
|
];
|
|
2710
2862
|
//# sourceMappingURL=sonoff.js.map
|