homebridge-philips-hue-sync-box 1.2.4 → 2.0.0

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
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.0](https://github.com/jabrown93/homebridge-philips-hue-sync-box/compare/v1.2.4...v2.0.0) (2025-11-16)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * Add support for Node 24 and drop Node 18 support (#283)
11
+
12
+ ### Features
13
+
14
+ * Add support for Node 24 and drop Node 18 support ([#283](https://github.com/jabrown93/homebridge-philips-hue-sync-box/issues/283)) ([f2b5ed8](https://github.com/jabrown93/homebridge-philips-hue-sync-box/commit/f2b5ed82aed380c5781ef5cac11f5e5a4d8569db))
15
+ * **deps:** update all non-major dependencies ([#218](https://github.com/jabrown93/homebridge-philips-hue-sync-box/issues/218)) ([5ee467f](https://github.com/jabrown93/homebridge-philips-hue-sync-box/commit/5ee467f572429ab4f05ccca858a9f26c7f60ea3d))
16
+ * **deps:** update dependency homebridge-config-ui-x to v5.7.0 ([#220](https://github.com/jabrown93/homebridge-philips-hue-sync-box/issues/220)) ([65f8b12](https://github.com/jabrown93/homebridge-philips-hue-sync-box/commit/65f8b120bbc117460bfb712e07835068598d084a))
17
+
6
18
  ## [1.2.4](https://github.com/jabrown93/homebridge-philips-hue-sync-box/compare/v1.2.3...v1.2.4) (2025-06-29)
7
19
 
8
20
  ### Bug Fixes
package/README.md CHANGED
@@ -107,11 +107,11 @@ You have to create new credentials to communicate with the Philips Hue Sync Box:
107
107
  - Make sure synchronization is stopped
108
108
  - Make an HTTP POST request to `https://<SYNC-BOX-IP>/api/v1/registrations`
109
109
  - The body of the request has to be JSON:
110
- `{ "appName": "homebridge", "appSecret": "MDAwMTExMDAwMTExMDAwMTExMDAwMTExMDAwMTExMDA=", "instanceName": "homebridge" }`
110
+ `{ "appName": "homebridge", "instanceName": "homebridge" }`
111
111
  - The first response to the request will be `{ "code": 16, "message": "Invalid State" }`
112
- - IMPORTANT: Now, click and hold the button of the Sync Box until the LED switches to green. Immediately release the
112
+ - IMPORTANT: Within 5 seconds, press and hold the button of the Sync Box until the LED switches to green. Immediately release the
113
113
  button as soon as the LED is green! It will switch to white again.
114
- - Immediately make the request again
114
+ - Within 5 seconds, make the same HTTP POST request again
115
115
  - The response contains an `accessToken` string
116
116
 
117
117
  Hints:
@@ -122,12 +122,25 @@ Hints:
122
122
  - Another way may be to use tools like **Postman**. Set the request method to `POST` and enter
123
123
  `https://<SYNC-BOX-IP>/api/v1/registrations` as the request URL (replace `<SYNC-BOX-IP>` with the IP address of your
124
124
  Sync Box). Next, open the tab "Body", set the type to "raw" and select "JSON" as the content type in the dropdown.
125
- Then, enter
126
- `{ "appName": "homebridge", "appSecret": "MDAwMTExMDAwMTExMDAwMTExMDAwMTExMDAwMTExMDA=", "instanceName": "homebridge" }`
125
+ Then, enter `{ "appName": "homebridge", "instanceName": "homebridge" }`
127
126
  into the text box for the body. Click on the "Send" button at the top right to send the request. If an issue occurs
128
127
  due to a certificate error, you can disable certificate verification in Postman. Go to the global settings, open the
129
128
  tab "General" and disable the toggle switch for "SSL certificate verification".
130
129
 
130
+ The official Hue documentation for retrieving the Sync Box access token can be
131
+ found [here](https://developers.meethue.com/develop/hue-entertainment/hue-hdmi-sync-box-api/#Getting%20Started) (free
132
+ account required).
133
+
134
+ A token can be validated using the following curl command (replace `<SYNC-BOX-IP>` and `<ACCESS-TOKEN>` with your
135
+ values):
136
+
137
+ ```shell
138
+ curl -k -H "Authorization: Bearer <ACCESS-TOKEN>" https://<SYNC-BOX-IP>/api/v1/
139
+ ```
140
+
141
+ **Please do not open issues regarding the access token or "Invalid Token" errors in plugin logs, the
142
+ plugin has no control over the access token. The issues will be immediately closed**
143
+
131
144
  ### Multiple Sync Boxes
132
145
 
133
146
  **WARNING: If you currently have a sync box setup, setting a `uuidSeed` will remove all of the accessories and create
@@ -351,7 +364,8 @@ The body of the request has to be JSON and can contain any/some/all of the follo
351
364
  syncActive: true,
352
365
  hdmiActive: true,
353
366
  hdmiSource: 'input4',
354
- hueTarget: '12345678-be8e-4866-adce-ff3800aca123', // this must be the ID of the group you want to sync from hue.groups. Any other value will cause an error.
367
+ hueTarget: '12345678-be8e-4866-adce-ff3800aca123',
368
+ // this must be the ID of the group you want to sync from hue.groups. Any other value will cause an error.
355
369
  brightness: 200,
356
370
  lastSyncMode: 'video',
357
371
  video: {
@@ -1,9 +1,27 @@
1
1
  {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
2
3
  "pluginAlias": "PhilipsHueSyncBoxPlatform",
3
4
  "pluginType": "platform",
4
5
  "headerDisplay": "Homebridge plugin for the Philips Hue Sync Box. Important: TV accessories must be added to HomeKit manually, the logs show the pin for adding them (should be the same pin as for the plugin).",
5
6
  "footerDisplay": "For help please visit the [GitHub repository](https://github.com/jabrown93/homebridge-philips-hue-sync-box).",
6
7
  "strictValidation": true,
8
+ "definitions": {
9
+ "homeKitType": {
10
+ "type": "string",
11
+ "default": "tv",
12
+ "oneOf": [
13
+ { "title": "TV", "enum": ["tv", "TV"] },
14
+ { "title": "Set Top Box", "enum": ["settopbox"] },
15
+ { "title": "TV Stick", "enum": ["tvstick"] },
16
+ { "title": "Audio Receiver", "enum": ["audioreceiver"] }
17
+ ]
18
+ },
19
+ "lightbulbOption": {
20
+ "type": "boolean",
21
+ "default": false,
22
+ "description": "Enables an integrated lightbulb for the TV Accessory."
23
+ }
24
+ },
7
25
  "schema": {
8
26
  "type": "object",
9
27
  "properties": {
@@ -27,22 +45,10 @@
27
45
  "default": "video",
28
46
  "description": "The mode that is used when switching the Sync Box on via HomeKit. Possible values are 'video', 'music', 'game' or 'lastSyncMode'.",
29
47
  "oneOf": [
30
- {
31
- "title": "Video",
32
- "enum": ["video"]
33
- },
34
- {
35
- "title": "Music",
36
- "enum": ["music"]
37
- },
38
- {
39
- "title": "Game",
40
- "enum": ["game"]
41
- },
42
- {
43
- "title": "Last Sync Mode",
44
- "enum": ["lastSyncMode"]
45
- }
48
+ { "title": "Video", "enum": ["video"] },
49
+ { "title": "Music", "enum": ["music"] },
50
+ { "title": "Game", "enum": ["game"] },
51
+ { "title": "Last Sync Mode", "enum": ["lastSyncMode"] }
46
52
  ]
47
53
  },
48
54
  "defaultOffMode": {
@@ -52,14 +58,8 @@
52
58
  "default": "passthrough",
53
59
  "description": "The mode that is used when switching the Sync Box off via HomeKit. Possible values are 'powersave' or 'passthrough'.",
54
60
  "oneOf": [
55
- {
56
- "title": "Passthrough",
57
- "enum": ["passthrough"]
58
- },
59
- {
60
- "title": "Power Save",
61
- "enum": ["powersave"]
62
- }
61
+ { "title": "Passthrough", "enum": ["passthrough"] },
62
+ { "title": "Power Save", "enum": ["powersave"] }
63
63
  ]
64
64
  },
65
65
  "baseAccessory": {
@@ -68,191 +68,22 @@
68
68
  "default": "lightbulb",
69
69
  "required": true,
70
70
  "oneOf": [
71
- {
72
- "title": "Lightbulb",
73
- "enum": ["lightbulb"]
74
- },
75
- {
76
- "title": "Switch",
77
- "enum": ["switch"]
78
- },
79
- {
80
- "title": "None",
81
- "enum": ["none"]
82
- }
83
- ]
84
- },
85
- "tvAccessory": {
86
- "title": "Enable HDMI TV",
87
- "type": "boolean",
88
- "default": false,
89
- "required": false,
90
- "description": "Enables a TV Accessory for switching the inputs of the Sync Box."
91
- },
92
- "tvAccessoryConfiguredName": {
93
- "title": "Set name for the HDMI TV",
94
- "type": "string",
95
- "required": false,
96
- "description": "Sets custom name for the HDMI TV. Overwrites names configured HomeKit."
97
- },
98
- "tvAccessoryType": {
99
- "title": "HDMI TV HomeKit Type",
100
- "type": "string",
101
- "default": "tv",
102
- "oneOf": [
103
- {
104
- "title": "TV",
105
- "enum": ["tv", "TV"]
106
- },
107
- {
108
- "title": "Set Top Box",
109
- "enum": ["settopbox"]
110
- },
111
- {
112
- "title": "TV Stick",
113
- "enum": ["tvstick"]
114
- },
115
- {
116
- "title": "Audio Receiver",
117
- "enum": ["audioreceiver"]
118
- }
119
- ]
120
- },
121
- "tvAccessoryLightbulb": {
122
- "title": "Enable lightbulb for HDMI TV",
123
- "type": "boolean",
124
- "default": false,
125
- "required": false,
126
- "description": "Enables an integrated lightbulb for the TV Accessory."
127
- },
128
- "modeTvAccessory": {
129
- "title": "Enable Mode TV",
130
- "type": "boolean",
131
- "default": false,
132
- "required": false,
133
- "description": "Enables a TV Accessory for switching the modes of the Sync Box."
134
- },
135
- "modeTvAccessoryConfiguredName": {
136
- "title": "Set name for Mode TV",
137
- "type": "string",
138
- "required": false,
139
- "description": "Sets custom name for the Mode TV. Overwrites names configured HomeKit."
140
- },
141
- "modeTvAccessoryType": {
142
- "title": "Mode TV HomeKit Type",
143
- "type": "string",
144
- "default": "tv",
145
- "oneOf": [
146
- {
147
- "title": "TV",
148
- "enum": ["tv", "TV"]
149
- },
150
- {
151
- "title": "Set Top Box",
152
- "enum": ["settopbox"]
153
- },
154
- {
155
- "title": "TV Stick",
156
- "enum": ["tvstick"]
157
- },
158
- {
159
- "title": "Audio Receiver",
160
- "enum": ["audioreceiver"]
161
- }
162
- ]
163
- },
164
- "modeTvAccessoryLightbulb": {
165
- "title": "Enable lightbulb for Mode TV",
166
- "type": "boolean",
167
- "default": false,
168
- "required": false,
169
- "description": "Enables an integrated lightbulb for the TV Accessory."
170
- },
171
- "intensityTvAccessory": {
172
- "title": "Enable Intensity TV",
173
- "type": "boolean",
174
- "default": false,
175
- "required": false,
176
- "description": "Enables a TV Accessory for switching the intensity of the Sync Box."
177
- },
178
- "intensityTvAccessoryConfiguredName": {
179
- "title": "Set name for Intensity TV",
180
- "type": "string",
181
- "required": false,
182
- "description": "Sets custom name for the Intensity TV. Overwrites names configured HomeKit."
183
- },
184
- "intensityTvAccessoryType": {
185
- "title": "Intensity TV HomeKit Type",
186
- "type": "string",
187
- "default": "tv",
188
- "oneOf": [
189
- {
190
- "title": "TV",
191
- "enum": ["tv", "TV"]
192
- },
193
- {
194
- "title": "Set Top Box",
195
- "enum": ["settopbox"]
196
- },
197
- {
198
- "title": "TV Stick",
199
- "enum": ["tvstick"]
200
- },
201
- {
202
- "title": "Audio Receiver",
203
- "enum": ["audioreceiver"]
204
- }
71
+ { "title": "Lightbulb", "enum": ["lightbulb"] },
72
+ { "title": "Switch", "enum": ["switch"] },
73
+ { "title": "None", "enum": ["none"] }
205
74
  ]
206
75
  },
76
+ "tvAccessoryType": { "$ref": "#/definitions/homeKitType" },
77
+ "modeTvAccessoryType": { "$ref": "#/definitions/homeKitType" },
78
+ "intensityTvAccessoryType": { "$ref": "#/definitions/homeKitType" },
79
+ "entertainmentTvAccessoryType": { "$ref": "#/definitions/homeKitType" },
80
+ "tvAccessoryLightbulb": { "$ref": "#/definitions/lightbulbOption" },
81
+ "modeTvAccessoryLightbulb": { "$ref": "#/definitions/lightbulbOption" },
207
82
  "intensityTvAccessoryLightbulb": {
208
- "title": "Enable lightbulb for Intensity TV",
209
- "type": "boolean",
210
- "default": false,
211
- "required": false,
212
- "description": "Enables an integrated lightbulb for the TV Accessory."
213
- },
214
- "entertainmentTvAccessory": {
215
- "title": "Enable Entertainment Area TV",
216
- "type": "boolean",
217
- "default": false,
218
- "required": false,
219
- "description": "Enables a TV Accessory for switching the entertainment area of the Sync Box."
220
- },
221
- "entertainmentTvAccessoryConfiguredName": {
222
- "title": "Set name for Entertainment Area TV",
223
- "type": "string",
224
- "required": false,
225
- "description": "Sets custom name for the Entertainment Area TV. Overwrites names configured HomeKit."
226
- },
227
- "entertainmentTvAccessoryType": {
228
- "title": "Entertainment Area TV HomeKit Type",
229
- "type": "string",
230
- "default": "tv",
231
- "oneOf": [
232
- {
233
- "title": "TV",
234
- "enum": ["tv", "TV"]
235
- },
236
- {
237
- "title": "Set Top Box",
238
- "enum": ["settopbox"]
239
- },
240
- {
241
- "title": "TV Stick",
242
- "enum": ["tvstick"]
243
- },
244
- {
245
- "title": "Audio Receiver",
246
- "enum": ["audioreceiver"]
247
- }
248
- ]
83
+ "$ref": "#/definitions/lightbulbOption"
249
84
  },
250
85
  "entertainmentTvAccessoryLightbulb": {
251
- "title": "Enable lightbulb for Entertainment Area TV",
252
- "type": "boolean",
253
- "default": false,
254
- "required": false,
255
- "description": "Enables an integrated lightbulb for the TV Accessory."
86
+ "$ref": "#/definitions/lightbulbOption"
256
87
  },
257
88
  "updateIntervalInSeconds": {
258
89
  "title": "Update Interval",
@@ -277,7 +108,7 @@
277
108
  "apiServerPort": {
278
109
  "title": "API Port",
279
110
  "type": "integer",
280
- "default": "40220",
111
+ "default": 40220,
281
112
  "required": false,
282
113
  "description": "The port that the API (if enabled) runs on"
283
114
  },
@@ -285,7 +116,7 @@
285
116
  "title": "API Token",
286
117
  "type": "string",
287
118
  "required": false,
288
- "description": " The token that has to be included in each request of the API. Is required if the API is enabled and has no default value."
119
+ "description": "The token that has to be included in each request of the API. Is required if the API is enabled and has no default value."
289
120
  }
290
121
  }
291
122
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-philips-hue-sync-box",
3
3
  "displayName": "Philips Hue Sync Box",
4
- "version": "1.2.4",
4
+ "version": "2.0.0",
5
5
  "description": "Homebridge plugin for the Philips Hue Sync Box.",
6
6
  "keywords": [
7
7
  "homebridge-plugin",
@@ -69,39 +69,39 @@
69
69
  "node-fetch": "^3.3.2"
70
70
  },
71
71
  "devDependencies": {
72
- "@commitlint/cli": "^19.8.1",
73
- "@commitlint/config-conventional": "^19.8.1",
74
- "@eslint/eslintrc": "^3.3.1",
75
- "@eslint/js": "^9.17.0",
76
- "@semantic-release/changelog": "^6.0.3",
77
- "@semantic-release/commit-analyzer": "^13.0.1",
78
- "@semantic-release/exec": "^7.1.0",
79
- "@semantic-release/git": "^10.0.1",
80
- "@semantic-release/github": "^11.0.3",
81
- "@semantic-release/npm": "^12.0.2",
82
- "@semantic-release/release-notes-generator": "^14.0.3",
83
- "@types/async-lock": "^1.4.2",
84
- "@types/node": "^24.0.7",
85
- "@typescript-eslint/eslint-plugin": "^8.18.2",
86
- "@typescript-eslint/parser": "^8.18.2",
87
- "conventional-changelog-conventionalcommits": "^9.0.0",
88
- "cross-env": "^7.0.3",
89
- "eslint": "^9.30.0",
90
- "homebridge": "^1.10.0",
91
- "homebridge-config-ui-x": "^4.77.0",
92
- "husky": "^9.1.7",
93
- "lint-staged": "^16.1.2",
94
- "nodemon": "^3.1.10",
95
- "npm-run-all": "^4.1.5",
96
- "prettier": "^3.6.2",
97
- "rimraf": "^6.0.1",
98
- "ts-node": "^10.9.2",
99
- "typescript": "^5.8.3",
100
- "typescript-eslint": "^8.35.0"
72
+ "@commitlint/cli": "20.1.0",
73
+ "@commitlint/config-conventional": "20.0.0",
74
+ "@eslint/eslintrc": "3.3.1",
75
+ "@eslint/js": "9.39.1",
76
+ "@semantic-release/changelog": "6.0.3",
77
+ "@semantic-release/commit-analyzer": "13.0.1",
78
+ "@semantic-release/exec": "7.1.0",
79
+ "@semantic-release/git": "10.0.1",
80
+ "@semantic-release/github": "12.0.2",
81
+ "@semantic-release/npm": "13.1.1",
82
+ "@semantic-release/release-notes-generator": "14.1.0",
83
+ "@types/async-lock": "1.4.2",
84
+ "@types/node": "24.9.1",
85
+ "@typescript-eslint/eslint-plugin": "8.46.3",
86
+ "@typescript-eslint/parser": "8.46.3",
87
+ "conventional-changelog-conventionalcommits": "9.1.0",
88
+ "cross-env": "10.1.0",
89
+ "eslint": "9.39.1",
90
+ "homebridge": "1.11.1",
91
+ "homebridge-config-ui-x": "5.9.0",
92
+ "husky": "9.1.7",
93
+ "lint-staged": "16.2.6",
94
+ "nodemon": "3.1.10",
95
+ "npm-run-all2": "8.0.4",
96
+ "prettier": "3.6.2",
97
+ "rimraf": "6.1.0",
98
+ "ts-node": "10.9.2",
99
+ "typescript": "5.9.3",
100
+ "typescript-eslint": "8.46.3"
101
101
  },
102
102
  "engines": {
103
103
  "homebridge": "^1.8.0 || ^2.0.0-beta.0",
104
- "node": "^18.20.4 || ^20.18.0 || ^22.10.0"
104
+ "node": "^20.18.1 || ^22.10.0 || ^24.11.0"
105
105
  },
106
106
  "publishConfig": {
107
107
  "access": "public"