homebridge-withings-environment-data 1.3.2 → 1.3.3

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
@@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## [1.3.3] - 2026-08-04
10
+
11
+ ### Fixed
12
+ - Stale data now correctly shows a fault on the sensors' `StatusFault`
13
+ characteristic too, not just "No Response" in the Home app. A
14
+ successful poll always cleared the fault, even when the reading itself
15
+ was stale, so anything reading `StatusFault` directly instead of
16
+ calling the characteristic's get handler (e.g. Homebridge's own
17
+ accessory list) kept showing the sensors as fine
18
+
9
19
  ## [1.3.2] - 2026-08-04
10
20
 
11
21
  ### Added
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Withings Environment Data v1.3.2
1
+ # Withings Environment Data v1.3.3
2
2
 
3
3
  **This Homebridge plugin has been 100% vibe coded with Claude.**
4
4
 
package/index.js CHANGED
@@ -354,6 +354,16 @@ class WithingsEnvironmentDataPlatform {
354
354
  // quiet (no one's stood on it) while polls keep succeeding fine, so this
355
355
  // is checked every cycle against whatever the newest reading actually is.
356
356
  await this.checkStaleData();
357
+
358
+ // A successful poll above already cleared the fault via setFault(false),
359
+ // even though the reading it just fetched can itself be stale. Re-assert
360
+ // the fault in that case so anything reading StatusFault directly (e.g.
361
+ // Homebridge's own accessory list, which shows cached values rather than
362
+ // invoking the onGet handlers the way the Home app does) reflects
363
+ // staleness too, not just throwIfStale()'s "No Response" to HomeKit.
364
+ if (this.isDataStale()) {
365
+ this.setFault(true);
366
+ }
357
367
  }
358
368
 
359
369
  async sendNtfyNotification(message, title = 'Homebridge: Getting Withings Environment Data Failed!') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-withings-environment-data",
3
3
  "displayName": "Withings Environment Data",
4
- "version": "1.3.2",
4
+ "version": "1.3.3",
5
5
  "description": "Homebridge plugin exposing ambient CO2/air-quality and room temperature readings from a Withings WS-50 scale as HomeKit sensors",
6
6
  "main": "index.js",
7
7
  "files": [