@homebridge-plugins/homebridge-meross 10.19.1-beta.1 → 10.19.1-beta.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 +3 -0
- package/lib/device/sensor-presence.js +9 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,9 @@ All notable changes to `@homebridge-plugins/homebridge-meross` will be documente
|
|
|
18
18
|
- fix: apply the smoke sensor's battery reading, instead of failing on every update
|
|
19
19
|
- fix: reject a garage opening time so large it would make the reset timer fire immediately
|
|
20
20
|
- test: record what every device handler builds, so a refactor can be shown to change nothing
|
|
21
|
+
- fix(ms600): stop writing every incoming message to the warning log
|
|
22
|
+
- fix(ms600): accept a light level of zero, so a dark room is reported as dark
|
|
23
|
+
- test: check the device handlers against payloads real devices sent
|
|
21
24
|
|
|
22
25
|
## v10.19.0 (2026-08-01)
|
|
23
26
|
|
|
@@ -165,7 +165,11 @@ export default class {
|
|
|
165
165
|
receiveUpdate(params) {
|
|
166
166
|
try {
|
|
167
167
|
// Log the received data
|
|
168
|
-
|
|
168
|
+
// At debug, like every other handler. This sensor pushes a message every
|
|
169
|
+
// few seconds and the whole message is logged, including the header's
|
|
170
|
+
// `sign` - a value derived from the owner's device key - so at warn level
|
|
171
|
+
// it filled the log with traffic nobody asked to see.
|
|
172
|
+
this.accessory.logDebug(`${platformLang.incMQTT}: ${JSON.stringify(params)}`)
|
|
169
173
|
if (params.payload?.latest?.[0]?.data) {
|
|
170
174
|
this.applyUpdate(params.payload.latest[0].data)
|
|
171
175
|
}
|
|
@@ -175,7 +179,10 @@ export default class {
|
|
|
175
179
|
}
|
|
176
180
|
|
|
177
181
|
applyUpdate(data) {
|
|
178
|
-
|
|
182
|
+
// Compared against undefined rather than checked for truth: zero lux is a
|
|
183
|
+
// real reading from a dark room, and skipping it left the sensor showing
|
|
184
|
+
// whatever the light level was when the lights went out.
|
|
185
|
+
if (data.light?.[0]?.value !== undefined) {
|
|
179
186
|
// Check against the cache and update HomeKit and the cache if needed
|
|
180
187
|
const newLux = data.light[0].value
|
|
181
188
|
if (this.cacheLux !== newLux) {
|
package/package.json
CHANGED