homebridge-philips-air-purifier-complete 3.2.2 → 3.2.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 +12 -0
- package/README.md +8 -0
- package/index.js +17 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,18 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [3.2.3] — 15/06/2026
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Legacy top-level `accessories[]` entries are no longer served by default. The compatibility shim
|
|
14
|
+
now logs a migration error and returns no HomeKit services, which stops old accessory config from
|
|
15
|
+
keeping duplicate or orphaned purifiers alive after migrating to the v3 platform.
|
|
16
|
+
- Added `PHILIPS_AIR_ALLOW_LEGACY_ACCESSORY=1` as a temporary rollback switch for users who need
|
|
17
|
+
one more start on the old accessory path while moving config into `platforms[].devices[]`.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
9
21
|
## [3.2.2] — 15/06/2026
|
|
10
22
|
|
|
11
23
|
### Fixed
|
package/README.md
CHANGED
|
@@ -149,6 +149,14 @@ v3.0.0 changes the plugin type from `accessory` to `platform`. Update your Homeb
|
|
|
149
149
|
|
|
150
150
|
3. Restart Homebridge.
|
|
151
151
|
|
|
152
|
+
From v3.2.3, old top-level `"accessory": "PhilipsAirPurifier"` entries are not loaded by
|
|
153
|
+
default. If Homebridge logs `Loading 1 accessories...` followed by
|
|
154
|
+
`Legacy accessories[] config detected`, the old entry is still present in the full Homebridge
|
|
155
|
+
`config.json` even if this plugin's platform settings modal only shows `{ "platform":
|
|
156
|
+
"PhilipsAirPurifier" }`. Remove the old object from the top-level `"accessories"` array and keep
|
|
157
|
+
the device under `"platforms"[]."devices"` instead. For temporary rollback only, set
|
|
158
|
+
`PHILIPS_AIR_ALLOW_LEGACY_ACCESSORY=1` before starting Homebridge.
|
|
159
|
+
|
|
152
160
|
### Migration examples
|
|
153
161
|
|
|
154
162
|
#### CoAP device
|
package/index.js
CHANGED
|
@@ -875,14 +875,27 @@ class PhilipsAirPurifierAccessory {
|
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
|
|
878
|
-
class PhilipsAirPurifierLegacyAccessory
|
|
878
|
+
class PhilipsAirPurifierLegacyAccessory {
|
|
879
879
|
constructor(log, config, api) {
|
|
880
|
-
|
|
881
|
-
|
|
880
|
+
this.accessory = null;
|
|
881
|
+
|
|
882
|
+
if (process.env.PHILIPS_AIR_ALLOW_LEGACY_ACCESSORY !== '1') {
|
|
883
|
+
log.error('[PhilipsAir] Legacy accessories[] config detected and will not be loaded. Move this entry into platforms[].devices[] and remove the top-level accessories[] entry. Set PHILIPS_AIR_ALLOW_LEGACY_ACCESSORY=1 only as a temporary rollback.');
|
|
884
|
+
return;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
log.warn('[PhilipsAir] Legacy accessories[] config enabled by PHILIPS_AIR_ALLOW_LEGACY_ACCESSORY=1. This compatibility path is deprecated; migrate to platforms[].devices[].');
|
|
888
|
+
this.accessory = new PhilipsAirPurifierAccessory(log, config, api, new LegacyPlatformAccessory(api));
|
|
882
889
|
}
|
|
883
890
|
|
|
884
891
|
getServices() {
|
|
885
|
-
return this.platformAcc.getServices();
|
|
892
|
+
return this.accessory ? this.accessory.platformAcc.getServices() : [];
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
identify() {
|
|
896
|
+
if (this.accessory) {
|
|
897
|
+
this.accessory.identify();
|
|
898
|
+
}
|
|
886
899
|
}
|
|
887
900
|
}
|
|
888
901
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-philips-air-purifier-complete",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"customUi": true,
|
|
5
5
|
"description": "Homebridge plugin for Philips Air Purifier with bundled CoAP control library and Python 3.12+/Node.js 24 support",
|
|
6
6
|
"main": "index.js",
|