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

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,12 @@
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
+ ## [1.2.4](https://github.com/jabrown93/homebridge-philips-hue-sync-box/compare/v1.2.3...v1.2.4) (2025-06-29)
7
+
8
+ ### Bug Fixes
9
+
10
+ * support old "TV"(uppercase) default config. Fixes [#188](https://github.com/jabrown93/homebridge-philips-hue-sync-box/issues/188) ([#191](https://github.com/jabrown93/homebridge-philips-hue-sync-box/issues/191)) ([554b167](https://github.com/jabrown93/homebridge-philips-hue-sync-box/commit/554b167ab95d33d567a5babf762232e2a750e3a1))
11
+
6
12
  ## [1.2.3](https://github.com/jabrown93/homebridge-philips-hue-sync-box/compare/v1.2.2...v1.2.3) (2025-02-04)
7
13
 
8
14
  ### Bug Fixes
package/README.md CHANGED
@@ -117,7 +117,7 @@ You have to create new credentials to communicate with the Philips Hue Sync Box:
117
117
  Hints:
118
118
 
119
119
  - One way to do this is to enter the following into the Terminal:
120
- `curl -H -k "Content-Type: application/json" -X POST -d '{"appName": "homebridge", "appSecret":"MDAwMTExMDAwMTExMDAwMTExMDAwMTExMDAwMTExMDA=", "instanceName": "homebridge"}' https://<SYNC-BOX-IP>/api/v1/registrations`,
120
+ `curl -k -H "Content-Type: application/json" -X POST -d '{"appName": "homebridge", "appSecret":"MDAwMTExMDAwMTExMDAwMTExMDAwMTExMDAwMTExMDA=", "instanceName": "homebridge"}' https://<SYNC-BOX-IP>/api/v1/registrations`,
121
121
  replacing `<SYNC-BOX-IP>` with the IP address of your Sync Box.
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
@@ -269,49 +269,49 @@ http://<YOUR-HOST-IP-ADDRESS>:<apiPort>/state
269
269
 
270
270
  The response is a JSON object, looking like this:
271
271
 
272
- ```
272
+ ```json
273
273
  {
274
- "hue": {
275
- "bridgeUniqueId": "ID1",
276
- "bridgeIpAddress": "192.168.1.2",
277
- "groupId": "1",
278
- "groups": {
279
- "1": {
280
- "name": "Living Room TV area",
281
- "numLights": 1,
282
- "active": true,
283
- "owner": "HueSyncBox (ID2)"
284
- },
285
- "2": {
286
- "name": "Bedroom TV area",
287
- "numLights": 2,
288
- "active": false
289
- }
290
- },
291
- "connectionState": "streaming"
292
- },
293
- "execution": {
294
- "mode": "video",
295
- "syncActive": true,
296
- "hdmiActive": true,
297
- "hdmiSource": "input4",
298
- "hueTarget": "1",
299
- "brightness": 200,
300
- "lastSyncMode": "video",
301
- "video": {
302
- "intensity": "moderate",
303
- "backgroundLighting": true
304
- },
305
- "game": {
306
- "intensity": "intense",
307
- "backgroundLighting": false
308
- },
309
- "music": {
310
- "intensity": "high",
311
- "palette": "melancholicEnergetic"
312
- },
313
- "preset": null
314
- }
274
+ "hue": {
275
+ "bridgeUniqueId": "ID1",
276
+ "bridgeIpAddress": "192.168.1.2",
277
+ "groupId": "1",
278
+ "groups": {
279
+ "1": {
280
+ "name": "Living Room TV area",
281
+ "numLights": 1,
282
+ "active": true,
283
+ "owner": "HueSyncBox (ID2)"
284
+ },
285
+ "2": {
286
+ "name": "Bedroom TV area",
287
+ "numLights": 2,
288
+ "active": false
289
+ }
290
+ },
291
+ "connectionState": "streaming"
292
+ },
293
+ "execution": {
294
+ "mode": "video",
295
+ "syncActive": true,
296
+ "hdmiActive": true,
297
+ "hdmiSource": "input4",
298
+ "hueTarget": "1",
299
+ "brightness": 200,
300
+ "lastSyncMode": "video",
301
+ "video": {
302
+ "intensity": "moderate",
303
+ "backgroundLighting": true
304
+ },
305
+ "game": {
306
+ "intensity": "intense",
307
+ "backgroundLighting": false
308
+ },
309
+ "music": {
310
+ "intensity": "high",
311
+ "palette": "melancholicEnergetic"
312
+ },
313
+ "preset": null
314
+ }
315
315
  }
316
316
  ```
317
317
 
@@ -325,49 +325,49 @@ http://<YOUR-HOST-IP-ADDRESS>:<apiPort>/state
325
325
 
326
326
  The body of the request has to be JSON and can contain any/some/all of the following values:
327
327
 
328
- ```
328
+ ```json5
329
329
  {
330
- "hue": {
331
- "bridgeUniqueId": "ID1",
332
- "bridgeIpAddress": "192.168.1.2",
333
- "groupId": "1",
334
- "groups": {
335
- "1": {
336
- "name": "Living Room TV area",
337
- "numLights": 1,
338
- "active": true,
339
- "owner": "HueSyncBox (ID2)"
340
- },
341
- "56169ef5-be8e-4866-adce-ff3800aca35e": {
342
- "name": "Bedroom TV area",
343
- "numLights": 2,
344
- "active": false
345
- }
346
- },
347
- "connectionState": "streaming"
348
- },
349
- "execution": {
350
- "mode": "video",
351
- "syncActive": true,
352
- "hdmiActive": true,
353
- "hdmiSource": "input4",
354
- "hueTarget": "1",
355
- "brightness": 200,
356
- "lastSyncMode": "video",
357
- "video": {
358
- "intensity": "moderate",
359
- "backgroundLighting": true
360
- },
361
- "game": {
362
- "intensity": "intense",
363
- "backgroundLighting": false
364
- },
365
- "music": {
366
- "intensity": "high",
367
- "palette": "melancholicEnergetic"
368
- },
369
- "preset": null
370
- }
330
+ hue: {
331
+ bridgeUniqueId: 'ID1',
332
+ bridgeIpAddress: '192.168.1.2',
333
+ groupId: '1',
334
+ groups: {
335
+ '12345678-be8e-4866-adce-ff3800aca123': {
336
+ name: 'Living Room TV area',
337
+ numLights: 1,
338
+ active: true,
339
+ owner: 'HueSyncBox (ID2)',
340
+ },
341
+ '56169ef5-be8e-4866-adce-ff3800aca35e': {
342
+ name: 'Bedroom TV area',
343
+ numLights: 2,
344
+ active: false,
345
+ },
346
+ },
347
+ connectionState: 'streaming',
348
+ },
349
+ execution: {
350
+ mode: 'video',
351
+ syncActive: true,
352
+ hdmiActive: true,
353
+ 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.
355
+ brightness: 200,
356
+ lastSyncMode: 'video',
357
+ video: {
358
+ intensity: 'moderate',
359
+ backgroundLighting: true,
360
+ },
361
+ game: {
362
+ intensity: 'intense',
363
+ backgroundLighting: false,
364
+ },
365
+ music: {
366
+ intensity: 'high',
367
+ palette: 'melancholicEnergetic',
368
+ },
369
+ preset: null,
370
+ },
371
371
  }
372
372
  ```
373
373
 
@@ -100,10 +100,22 @@
100
100
  "type": "string",
101
101
  "default": "tv",
102
102
  "oneOf": [
103
- { "title": "TV", "enum": ["tv"] },
104
- { "title": "Set Top Box", "enum": ["settopbox"] },
105
- { "title": "TV Stick", "enum": ["tvstick"] },
106
- { "title": "Audio Receiver", "enum": ["audioreceiver"] }
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
+ }
107
119
  ]
108
120
  },
109
121
  "tvAccessoryLightbulb": {
@@ -133,7 +145,7 @@
133
145
  "oneOf": [
134
146
  {
135
147
  "title": "TV",
136
- "enum": ["tv"]
148
+ "enum": ["tv", "TV"]
137
149
  },
138
150
  {
139
151
  "title": "Set Top Box",
@@ -176,7 +188,7 @@
176
188
  "oneOf": [
177
189
  {
178
190
  "title": "TV",
179
- "enum": ["tv"]
191
+ "enum": ["tv", "TV"]
180
192
  },
181
193
  {
182
194
  "title": "Set Top Box",
@@ -219,7 +231,7 @@
219
231
  "oneOf": [
220
232
  {
221
233
  "title": "TV",
222
- "enum": ["tv"]
234
+ "enum": ["tv", "TV"]
223
235
  },
224
236
  {
225
237
  "title": "Set Top Box",
@@ -1 +1 @@
1
- {"version":3,"file":"baseTv.d.ts","sourceRoot":"","sources":["../../src/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Q,EAAE,MAAM,GACf,OAAO;IAgDV,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,IAC9B,OAAO,mBAAmB;IAQpC,SAAS,CAAC,OAAO;IAajB,SAAS,CAAC,QAAQ,CAAC,6BAA6B,IAAI,MAAM;CAC3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC;;GAEG;8BACkB,GAAG;AAAxB,wBAEE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC;;GAEG;yBACa,KAAK,GAAG;AAAxB,wBAEE"}
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.3",
4
+ "version": "1.2.4",
5
5
  "description": "Homebridge plugin for the Philips Hue Sync Box.",
6
6
  "keywords": [
7
7
  "homebridge-plugin",
@@ -65,40 +65,39 @@
65
65
  "dependencies": {
66
66
  "async-lock": "^1.4.1",
67
67
  "fetch-retry": "^6.0.0",
68
- "homebridge-lib": "^7.1.1",
68
+ "homebridge-lib": "^7.1.6",
69
69
  "node-fetch": "^3.3.2"
70
70
  },
71
71
  "devDependencies": {
72
- "@commitlint/cli": "^19.6.1",
73
- "@commitlint/config-conventional": "^19.6.0",
74
- "@eslint/eslintrc": "^3.2.0",
72
+ "@commitlint/cli": "^19.8.1",
73
+ "@commitlint/config-conventional": "^19.8.1",
74
+ "@eslint/eslintrc": "^3.3.1",
75
75
  "@eslint/js": "^9.17.0",
76
76
  "@semantic-release/changelog": "^6.0.3",
77
77
  "@semantic-release/commit-analyzer": "^13.0.1",
78
- "@semantic-release/exec": "^7.0.3",
78
+ "@semantic-release/exec": "^7.1.0",
79
79
  "@semantic-release/git": "^10.0.1",
80
- "@semantic-release/github": "^11.0.1",
81
- "@semantic-release/npm": "^12.0.1",
80
+ "@semantic-release/github": "^11.0.3",
81
+ "@semantic-release/npm": "^12.0.2",
82
82
  "@semantic-release/release-notes-generator": "^14.0.3",
83
83
  "@types/async-lock": "^1.4.2",
84
- "@types/eslint__js": "^8.42.3",
85
- "@types/node": "^22.10.5",
84
+ "@types/node": "^24.0.7",
86
85
  "@typescript-eslint/eslint-plugin": "^8.18.2",
87
86
  "@typescript-eslint/parser": "^8.18.2",
88
- "conventional-changelog-conventionalcommits": "^8.0.0",
87
+ "conventional-changelog-conventionalcommits": "^9.0.0",
89
88
  "cross-env": "^7.0.3",
90
- "eslint": "^9.17.0",
91
- "homebridge": "^1.8.5",
92
- "homebridge-config-ui-x": "^4.68.0",
89
+ "eslint": "^9.30.0",
90
+ "homebridge": "^1.10.0",
91
+ "homebridge-config-ui-x": "^4.77.0",
93
92
  "husky": "^9.1.7",
94
- "lint-staged": "^15.3.0",
95
- "nodemon": "^3.1.9",
93
+ "lint-staged": "^16.1.2",
94
+ "nodemon": "^3.1.10",
96
95
  "npm-run-all": "^4.1.5",
97
- "prettier": "^3.4.2",
96
+ "prettier": "^3.6.2",
98
97
  "rimraf": "^6.0.1",
99
98
  "ts-node": "^10.9.2",
100
- "typescript": "^5.7.2",
101
- "typescript-eslint": "^8.19.1"
99
+ "typescript": "^5.8.3",
100
+ "typescript-eslint": "^8.35.0"
102
101
  },
103
102
  "engines": {
104
103
  "homebridge": "^1.8.0 || ^2.0.0-beta.0",