@homebridge-plugins/homebridge-ewelink 12.19.1-beta.5 → 12.19.1-beta.7

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
@@ -27,6 +27,8 @@ All notable changes to `@homebridge-plugins/homebridge-ewelink` will be document
27
27
  - feat(zigbee): add the second generation trvzb radiator valve, on the existing thermostat
28
28
  - feat(zigbee): add the swv-zf2e two-zone irrigation valve, with a valve for each zone
29
29
  - feat: show pm2.5 and pm10 on the air quality sensors that measure them
30
+ - fix(zigbee): show a curtain motor at rest after a restart, not stuck opening (#810)
31
+ - fix: log the state each device starts from in debug mode, to trace a wrong start (#810)
30
32
 
31
33
  ## v12.19.0 (2026-10-18)
32
34
 
@@ -270,6 +270,18 @@ export default class {
270
270
  }
271
271
  }
272
272
 
273
+ // The state the cloud hands over at startup carries the target but not
274
+ // the position, so a curtain that had finished moving was left at its
275
+ // cached position and shown opening or closing until it next moved
276
+ // (#810). A motor at rest after a restart sits at its target; a real
277
+ // position report corrects this straight away if it is still moving
278
+ if (!params.updateSource && hasProperty(params, 'openPercent') && !hasProperty(params, 'curPercent')) {
279
+ this.cachePos = this.cacheTarg
280
+ if (!this.isGarage) {
281
+ this.service.updateCharacteristic(this.hapChar.CurrentPosition, this.cachePos)
282
+ }
283
+ }
284
+
273
285
  // Get the target door state characteristic for use later
274
286
  let targetChar
275
287
  if (this.isGarage) {
package/lib/platform.js CHANGED
@@ -1873,6 +1873,9 @@ export default class {
1873
1873
 
1874
1874
  // Update accessory characteristics with the latest values
1875
1875
  if (this.wsClient && accessory?.control?.externalUpdate) {
1876
+ // The state the cloud holds at startup, which the device starts from, so a
1877
+ // wrong starting state can be traced back to what the cloud sent (#810)
1878
+ accessory.logDebug(`${this.lang.updRec} ${JSON.stringify(device.params)}`)
1876
1879
  accessory.control.externalUpdate(device.params)
1877
1880
 
1878
1881
  // Mark the online/offline status of certain devices
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Homebridge eWeLink",
4
4
  "alias": "eWeLink",
5
5
  "type": "module",
6
- "version": "12.19.1-beta.5",
6
+ "version": "12.19.1-beta.7",
7
7
  "description": "Homebridge plugin to integrate eWeLink devices into HomeKit.",
8
8
  "author": {
9
9
  "name": "bwp91",