@homebridge-plugins/homebridge-meross 10.16.3 → 10.16.4

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-meross` will be documented in this file.
4
4
 
5
+ ## v10.16.4 (2026-07-14)
6
+
7
+ ### Changed
8
+
9
+ - fix: never pass external accessories to the homebridge cache so saving no longer fails (#792)
10
+
5
11
  ## v10.16.3 (2026-07-13)
6
12
 
7
13
  ### Changed
package/lib/platform.js CHANGED
@@ -1092,6 +1092,12 @@ export default class {
1092
1092
  )
1093
1093
  .setCharacteristic(this.api.hap.Characteristic.Identify, true)
1094
1094
 
1095
+ // Mark the accessory as external so it is never passed to
1096
+ // updatePlatformAccessories, since Homebridge 2 adds any accessory passed
1097
+ // there to its cached list, and an external accessory has no associated
1098
+ // platform so every cache save then fails to serialize it (#792)
1099
+ accessory.context.isExternal = true
1100
+
1095
1101
  // Register the accessory
1096
1102
  this.api.publishExternalAccessories(plugin.name, [accessory])
1097
1103
  this.log('[%s] %s.', device.devName, platformLang.devAdd)
@@ -1122,7 +1128,7 @@ export default class {
1122
1128
  }
1123
1129
 
1124
1130
  updateAccessory(accessory) {
1125
- if (!accessory.context.hidden) {
1131
+ if (!accessory.context.hidden && !accessory.context.isExternal) {
1126
1132
  this.api.updatePlatformAccessories([accessory])
1127
1133
  }
1128
1134
  if (accessory.context.isOnline) {
@@ -1133,7 +1139,7 @@ export default class {
1133
1139
  }
1134
1140
 
1135
1141
  saveAccessoryUpdate(accessory) {
1136
- if (!accessory.context.hidden) {
1142
+ if (!accessory.context.hidden && !accessory.context.isExternal) {
1137
1143
  this.api.updatePlatformAccessories([accessory])
1138
1144
  }
1139
1145
  this.devicesInHB.set(accessory.UUID, accessory)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@homebridge-plugins/homebridge-meross",
3
3
  "alias": "Meross",
4
4
  "type": "module",
5
- "version": "10.16.3",
5
+ "version": "10.16.4",
6
6
  "description": "Homebridge plugin to integrate Meross devices into HomeKit.",
7
7
  "author": {
8
8
  "name": "bwp91",