@homebridge-plugins/homebridge-meross 10.15.1 → 10.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 -0
- package/lib/platform.js +15 -11
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@homebridge-plugins/homebridge-meross` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## v10.15.2 (2026-06-03)
|
|
6
|
+
|
|
7
|
+
### Changes
|
|
8
|
+
|
|
9
|
+
- fix(platform): do not serialize hidden accessories to the cache
|
|
10
|
+
- chore: dependency updates
|
|
11
|
+
|
|
5
12
|
## v10.15.1 (2026-05-05)
|
|
6
13
|
|
|
7
14
|
### Changed
|
package/lib/platform.js
CHANGED
|
@@ -645,8 +645,7 @@ export default class {
|
|
|
645
645
|
accessory = subAcc
|
|
646
646
|
} else {
|
|
647
647
|
// Update any changes to the accessory to the platform
|
|
648
|
-
this.
|
|
649
|
-
this.devicesInHB.set(subAcc.UUID, subAcc)
|
|
648
|
+
this.saveAccessoryUpdate(subAcc)
|
|
650
649
|
}
|
|
651
650
|
})
|
|
652
651
|
}
|
|
@@ -742,8 +741,7 @@ export default class {
|
|
|
742
741
|
subAcc.control = new deviceTypes.deviceGarageSub(this, subAcc, accessory)
|
|
743
742
|
|
|
744
743
|
// Update any changes to the accessory to the platform
|
|
745
|
-
this.
|
|
746
|
-
this.devicesInHB.set(subAcc.UUID, subAcc)
|
|
744
|
+
this.saveAccessoryUpdate(subAcc)
|
|
747
745
|
})
|
|
748
746
|
} else {
|
|
749
747
|
accessory = this.devicesInHB.get(hbUUID) || this.addAccessory(device)
|
|
@@ -830,8 +828,7 @@ export default class {
|
|
|
830
828
|
this.applyAccessoryLogging(accessoryLight)
|
|
831
829
|
|
|
832
830
|
// Update any changes to the accessory to the platform
|
|
833
|
-
this.
|
|
834
|
-
this.devicesInHB.set(accessoryLight.UUID, accessoryLight)
|
|
831
|
+
this.saveAccessoryUpdate(accessoryLight)
|
|
835
832
|
|
|
836
833
|
// Set up the main accessory for the baby monitor
|
|
837
834
|
accessory.control = new deviceTypes.deviceBaby(this, accessory, accessoryLight)
|
|
@@ -964,8 +961,7 @@ export default class {
|
|
|
964
961
|
}
|
|
965
962
|
|
|
966
963
|
// Update any changes to the accessory to the platform
|
|
967
|
-
this.
|
|
968
|
-
this.devicesInHB.set(subAcc.UUID, subAcc)
|
|
964
|
+
this.saveAccessoryUpdate(subAcc)
|
|
969
965
|
|
|
970
966
|
// Log the subdevice id so a user can use it to ignore device if wanted
|
|
971
967
|
this.log(
|
|
@@ -1020,8 +1016,7 @@ export default class {
|
|
|
1020
1016
|
accessory.logDebug(`${platformLang.jsonInfo}: ${JSON.stringify(device)}`)
|
|
1021
1017
|
|
|
1022
1018
|
// Update any changes to the accessory to the platform
|
|
1023
|
-
this.
|
|
1024
|
-
this.devicesInHB.set(accessory.UUID, accessory)
|
|
1019
|
+
this.saveAccessoryUpdate(accessory)
|
|
1025
1020
|
} catch (err) {
|
|
1026
1021
|
// Catch any errors during device initialisation
|
|
1027
1022
|
const eText = parseError(err, [
|
|
@@ -1126,7 +1121,9 @@ export default class {
|
|
|
1126
1121
|
}
|
|
1127
1122
|
|
|
1128
1123
|
updateAccessory(accessory) {
|
|
1129
|
-
|
|
1124
|
+
if (!accessory.context.hidden) {
|
|
1125
|
+
this.api.updatePlatformAccessories([accessory])
|
|
1126
|
+
}
|
|
1130
1127
|
if (accessory.context.isOnline) {
|
|
1131
1128
|
this.log('[%s] %s.', accessory.displayName, platformLang.repOnline)
|
|
1132
1129
|
} else {
|
|
@@ -1134,6 +1131,13 @@ export default class {
|
|
|
1134
1131
|
}
|
|
1135
1132
|
}
|
|
1136
1133
|
|
|
1134
|
+
saveAccessoryUpdate(accessory) {
|
|
1135
|
+
if (!accessory.context.hidden) {
|
|
1136
|
+
this.api.updatePlatformAccessories([accessory])
|
|
1137
|
+
}
|
|
1138
|
+
this.devicesInHB.set(accessory.UUID, accessory)
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1137
1141
|
removeAccessory(accessory) {
|
|
1138
1142
|
try {
|
|
1139
1143
|
// Remove an accessory from Homebridge
|
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.15.
|
|
5
|
+
"version": "10.15.2",
|
|
6
6
|
"description": "Homebridge plugin to integrate Meross devices into HomeKit.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "bwp91",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"lint:fix": "npm run lint -- --fix"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@homebridge/plugin-ui-utils": "^2.2.
|
|
60
|
-
"axios": "^1.
|
|
59
|
+
"@homebridge/plugin-ui-utils": "^2.2.4",
|
|
60
|
+
"axios": "^1.17.0",
|
|
61
61
|
"mqtt": "^5.15.1",
|
|
62
62
|
"node-persist": "^4.0.4",
|
|
63
|
-
"p-queue": "^9.
|
|
63
|
+
"p-queue": "^9.3.0",
|
|
64
64
|
"p-timeout": "^7.0.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@antfu/eslint-config": "^
|
|
67
|
+
"@antfu/eslint-config": "^9.0.0"
|
|
68
68
|
}
|
|
69
69
|
}
|