@homebridge-plugins/homebridge-ewelink 12.15.0 → 12.15.1-beta.1
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 +7 -0
- package/lib/connection/lan.js +6 -1
- package/lib/connection/ws.js +6 -1
- package/lib/utils/constants.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@homebridge-plugins/homebridge-ewelink` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## v12.15.1 (Pending Release)
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- fix: do not drop the co2 param from incoming device updates (#784)
|
|
10
|
+
- feat: add support for the SONOFF Zigbee irrigation valve (7047) (#778)
|
|
11
|
+
|
|
5
12
|
## v12.15.0 (2026-07-12)
|
|
6
13
|
|
|
7
14
|
### Changed
|
package/lib/connection/lan.js
CHANGED
|
@@ -130,7 +130,12 @@ export default class {
|
|
|
130
130
|
|
|
131
131
|
// Remove any params we don't need
|
|
132
132
|
Object.keys(params).forEach((param) => {
|
|
133
|
-
|
|
133
|
+
// Check the raw name first as some params contain digits (e.g. co2),
|
|
134
|
+
// then the digit-stripped name for numbered params (e.g. channel0)
|
|
135
|
+
if (
|
|
136
|
+
!platformConsts.paramsToKeep.includes(param)
|
|
137
|
+
&& !platformConsts.paramsToKeep.includes(param.replace(/\d/g, ''))
|
|
138
|
+
) {
|
|
134
139
|
delete params[param]
|
|
135
140
|
}
|
|
136
141
|
})
|
package/lib/connection/ws.js
CHANGED
|
@@ -226,7 +226,12 @@ export default class {
|
|
|
226
226
|
// Loop through the device parameters received
|
|
227
227
|
Object.keys(msg.params).forEach((param) => {
|
|
228
228
|
// Remove any params that the plugin doesn't need
|
|
229
|
-
|
|
229
|
+
// Check the raw name first as some params contain digits (e.g. co2),
|
|
230
|
+
// then the digit-stripped name for numbered params (e.g. channel0)
|
|
231
|
+
if (
|
|
232
|
+
!platformConsts.paramsToKeep.includes(param)
|
|
233
|
+
&& !platformConsts.paramsToKeep.includes(param.replace(/\d/g, ''))
|
|
234
|
+
) {
|
|
230
235
|
delete msg.params[param]
|
|
231
236
|
}
|
|
232
237
|
})
|
package/lib/utils/constants.js
CHANGED
|
@@ -363,7 +363,7 @@ export default {
|
|
|
363
363
|
zbSensorWater: [4026, 7019],
|
|
364
364
|
zbSensorSmoke: [5026],
|
|
365
365
|
zbThermostat: [7017],
|
|
366
|
-
zbWaterValve: [7027],
|
|
366
|
+
zbWaterValve: [7027, 7047],
|
|
367
367
|
group: [5000],
|
|
368
368
|
template: [130], // SPM sub unit
|
|
369
369
|
cannotSupport: [0, 65, 118, 119, 120, 121, 204, 223, 20000],
|
|
@@ -580,6 +580,7 @@ export default {
|
|
|
580
580
|
7033: 1, // SNZB-02WD Zigbee Temperature and Humidity Display Sensor
|
|
581
581
|
7038: 1, // SONOFF AirGuard TH Zigbee temperature and humidity sensor (#767)
|
|
582
582
|
7040: 2, // SONOFF MINI DUO 2-gang Zigbee switch (#768)
|
|
583
|
+
7047: 1, // SONOFF Zigbee Irrigation Valve (#778)
|
|
583
584
|
20001: 1, // iHost sub-device single switch
|
|
584
585
|
20004: 4, // iHost sub-device 4-channel switch
|
|
585
586
|
20006: 1, // single-colour dimmable LED controller (#780)
|
package/package.json
CHANGED