homebridge-philips-airplus-cloud 0.5.0 → 0.5.1

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,10 @@
2
2
 
3
3
  The Home Assistant integration in `custom_components/` is unchanged from upstream and keeps its own history.
4
4
 
5
+ ## 0.5.1 — 2026-11-21
6
+
7
+ - Fix: login and device discovery failed with HTTP 403 ("User is not authorized to access this resource…"). The Philips/Versuni API now rejects requests with the User-Agent the plugin used, `okhttp/4.12.0 (Android 14; Pixel 7)`, before even checking the login. The plugin now sends `okhttp/4.12.0`, as the upstream Home Assistant integration does since 1.1.7. The same API is used on every reconnect, so existing installations should update too.
8
+
5
9
  ## 0.5.0 — 2026-11-21
6
10
 
7
11
  - New option **Filter alerts** (`filterAlerts`, default off): one contact sensor per filter, "Replace filter" and "Clean pre-filter", that opens when the filter drops to the alert threshold. The Home app never notifies about filter status, but it can notify when a contact sensor opens. A warning is also written to the Homebridge log.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-philips-airplus-cloud",
3
3
  "displayName": "Philips Air+",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "description": "Homebridge plugin for Philips Air+ / PureProtect air purifiers via the Philips (Versuni) cloud — the same MQTT protocol used by the Air+ app and Google Home.",
6
6
  "main": "src/index.js",
7
7
  "license": "MIT",
package/src/constants.js CHANGED
@@ -12,7 +12,10 @@ const DEVICE_ENDPOINT = `${API_BASE_URL}/da/user/self/device`;
12
12
  const SIGNATURE_ENDPOINT = `${API_BASE_URL}/da/user/self/signature`;
13
13
  const USER_SELF_ENDPOINT = `${API_BASE_URL}/da/user/self`;
14
14
 
15
- const HTTP_USER_AGENT = 'okhttp/4.12.0 (Android 14; Pixel 7)';
15
+ // "okhttp/4.12.0 (Android 14; Pixel 7)" is rejected with HTTP 403 by the
16
+ // DaConnect API (before authentication), so do not use it. Same fix as
17
+ // upstream NikGro/philips-air-plus-homeassistant 2a9cfe3.
18
+ const HTTP_USER_AGENT = 'okhttp/4.12.0';
16
19
 
17
20
  const GIGYA_API_KEY = '4_JGZWlP8eQHpEqkvQElolbA';
18
21
  const GIGYA_API_URL = 'https://cdc.accounts.home.id';