@homebridge-plugins/homebridge-ewelink 12.15.1-beta.1 → 12.15.2

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,7 +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)
5
+ ## v12.15.2 (2026-07-14)
6
+
7
+ ### Changed
8
+
9
+ - fix: never pass external accessories to the homebridge cache so saving no longer fails
10
+
11
+ ## v12.15.1 (2026-07-13)
6
12
 
7
13
  ### Changed
8
14
 
package/lib/platform.js CHANGED
@@ -1950,10 +1950,12 @@ export default class {
1950
1950
  // accessory in our in-memory map. Hidden accessories are deliberately never
1951
1951
  // registered (see addAccessory), so they have no associated plugin and would
1952
1952
  // make Homebridge throw when it serialises its accessory cache to disk
1953
- // ('Cannot serialize accessory ... - missing associated plugin'). We still
1953
+ // ('Cannot serialize accessory ... - missing associated plugin'). The same
1954
+ // applies to external accessories (the tv/box/stick simulations), which are
1955
+ // published outside the bridge so have no associated platform. We still
1954
1956
  // keep them in devicesInHB so lookups (e.g. the SW0 master of a multi-channel
1955
1957
  // device) continue to work.
1956
- if (!accessory.context.hidden) {
1958
+ if (!accessory.context.hidden && !accessory.context.isExternal) {
1957
1959
  this.api.updatePlatformAccessories([accessory])
1958
1960
  }
1959
1961
  devicesInHB.set(accessory.UUID, accessory)
@@ -1996,6 +1998,7 @@ export default class {
1996
1998
  switchNumber: hbDeviceId.split('SW')[1].toString(),
1997
1999
  channelCount: platformConsts.supportedDevices[device.extra.uiid],
1998
2000
  hidden: false,
2001
+ isExternal: true,
1999
2002
  }
2000
2003
 
2001
2004
  // Register the accessory
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.1-beta.1",
6
+ "version": "12.15.2",
7
7
  "description": "Homebridge plugin to integrate eWeLink devices into HomeKit.",
8
8
  "author": {
9
9
  "name": "bwp91",