@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 +7 -1
- package/lib/platform.js +5 -2
- package/package.json +1 -1
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.
|
|
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').
|
|
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