@homebridge-plugins/homebridge-ewelink 12.15.0 → 12.15.1-beta.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,6 +2,12 @@
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
+
5
11
  ## v12.15.0 (2026-07-12)
6
12
 
7
13
  ### 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
- if (!platformConsts.paramsToKeep.includes(param.replace(/\d/g, ''))) {
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
  })
@@ -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
- if (!platformConsts.paramsToKeep.includes(param.replace(/\d/g, ''))) {
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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Homebridge eWeLink",
4
4
  "alias": "eWeLink",
5
5
  "type": "module",
6
- "version": "12.15.0",
6
+ "version": "12.15.1-beta.0",
7
7
  "description": "Homebridge plugin to integrate eWeLink devices into HomeKit.",
8
8
  "author": {
9
9
  "name": "bwp91",