homebridge-philips-hue-sync-box 1.2.3 → 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 +18 -0
- package/README.md +104 -90
- package/config.schema.json +37 -194
- package/dist/accessories/baseTv.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +32 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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
|
+
|
|
18
|
+
## [1.2.4](https://github.com/jabrown93/homebridge-philips-hue-sync-box/compare/v1.2.3...v1.2.4) (2025-06-29)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 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))
|
|
23
|
+
|
|
6
24
|
## [1.2.3](https://github.com/jabrown93/homebridge-philips-hue-sync-box/compare/v1.2.2...v1.2.3) (2025-02-04)
|
|
7
25
|
|
|
8
26
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -107,27 +107,40 @@ 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", "
|
|
110
|
+
`{ "appName": "homebridge", "instanceName": "homebridge" }`
|
|
111
111
|
- The first response to the request will be `{ "code": 16, "message": "Invalid State" }`
|
|
112
|
-
- IMPORTANT:
|
|
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
|
-
-
|
|
114
|
+
- Within 5 seconds, make the same HTTP POST request again
|
|
115
115
|
- The response contains an `accessToken` string
|
|
116
116
|
|
|
117
117
|
Hints:
|
|
118
118
|
|
|
119
119
|
- One way to do this is to enter the following into the Terminal:
|
|
120
|
-
`curl -
|
|
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
|
|
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
|
|
@@ -269,49 +282,49 @@ http://<YOUR-HOST-IP-ADDRESS>:<apiPort>/state
|
|
|
269
282
|
|
|
270
283
|
The response is a JSON object, looking like this:
|
|
271
284
|
|
|
272
|
-
```
|
|
285
|
+
```json
|
|
273
286
|
{
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
287
|
+
"hue": {
|
|
288
|
+
"bridgeUniqueId": "ID1",
|
|
289
|
+
"bridgeIpAddress": "192.168.1.2",
|
|
290
|
+
"groupId": "1",
|
|
291
|
+
"groups": {
|
|
292
|
+
"1": {
|
|
293
|
+
"name": "Living Room TV area",
|
|
294
|
+
"numLights": 1,
|
|
295
|
+
"active": true,
|
|
296
|
+
"owner": "HueSyncBox (ID2)"
|
|
297
|
+
},
|
|
298
|
+
"2": {
|
|
299
|
+
"name": "Bedroom TV area",
|
|
300
|
+
"numLights": 2,
|
|
301
|
+
"active": false
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"connectionState": "streaming"
|
|
305
|
+
},
|
|
306
|
+
"execution": {
|
|
307
|
+
"mode": "video",
|
|
308
|
+
"syncActive": true,
|
|
309
|
+
"hdmiActive": true,
|
|
310
|
+
"hdmiSource": "input4",
|
|
311
|
+
"hueTarget": "1",
|
|
312
|
+
"brightness": 200,
|
|
313
|
+
"lastSyncMode": "video",
|
|
314
|
+
"video": {
|
|
315
|
+
"intensity": "moderate",
|
|
316
|
+
"backgroundLighting": true
|
|
317
|
+
},
|
|
318
|
+
"game": {
|
|
319
|
+
"intensity": "intense",
|
|
320
|
+
"backgroundLighting": false
|
|
321
|
+
},
|
|
322
|
+
"music": {
|
|
323
|
+
"intensity": "high",
|
|
324
|
+
"palette": "melancholicEnergetic"
|
|
325
|
+
},
|
|
326
|
+
"preset": null
|
|
327
|
+
}
|
|
315
328
|
}
|
|
316
329
|
```
|
|
317
330
|
|
|
@@ -325,49 +338,50 @@ http://<YOUR-HOST-IP-ADDRESS>:<apiPort>/state
|
|
|
325
338
|
|
|
326
339
|
The body of the request has to be JSON and can contain any/some/all of the following values:
|
|
327
340
|
|
|
328
|
-
```
|
|
341
|
+
```json5
|
|
329
342
|
{
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
343
|
+
hue: {
|
|
344
|
+
bridgeUniqueId: 'ID1',
|
|
345
|
+
bridgeIpAddress: '192.168.1.2',
|
|
346
|
+
groupId: '1',
|
|
347
|
+
groups: {
|
|
348
|
+
'12345678-be8e-4866-adce-ff3800aca123': {
|
|
349
|
+
name: 'Living Room TV area',
|
|
350
|
+
numLights: 1,
|
|
351
|
+
active: true,
|
|
352
|
+
owner: 'HueSyncBox (ID2)',
|
|
353
|
+
},
|
|
354
|
+
'56169ef5-be8e-4866-adce-ff3800aca35e': {
|
|
355
|
+
name: 'Bedroom TV area',
|
|
356
|
+
numLights: 2,
|
|
357
|
+
active: false,
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
connectionState: 'streaming',
|
|
361
|
+
},
|
|
362
|
+
execution: {
|
|
363
|
+
mode: 'video',
|
|
364
|
+
syncActive: true,
|
|
365
|
+
hdmiActive: true,
|
|
366
|
+
hdmiSource: 'input4',
|
|
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.
|
|
369
|
+
brightness: 200,
|
|
370
|
+
lastSyncMode: 'video',
|
|
371
|
+
video: {
|
|
372
|
+
intensity: 'moderate',
|
|
373
|
+
backgroundLighting: true,
|
|
374
|
+
},
|
|
375
|
+
game: {
|
|
376
|
+
intensity: 'intense',
|
|
377
|
+
backgroundLighting: false,
|
|
378
|
+
},
|
|
379
|
+
music: {
|
|
380
|
+
intensity: 'high',
|
|
381
|
+
palette: 'melancholicEnergetic',
|
|
382
|
+
},
|
|
383
|
+
preset: null,
|
|
384
|
+
},
|
|
371
385
|
}
|
|
372
386
|
```
|
|
373
387
|
|
package/config.schema.json
CHANGED
|
@@ -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
|
-
|
|
32
|
-
|
|
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
|
-
|
|
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,179 +68,22 @@
|
|
|
68
68
|
"default": "lightbulb",
|
|
69
69
|
"required": true,
|
|
70
70
|
"oneOf": [
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
{ "title": "TV", "enum": ["tv"] },
|
|
104
|
-
{ "title": "Set Top Box", "enum": ["settopbox"] },
|
|
105
|
-
{ "title": "TV Stick", "enum": ["tvstick"] },
|
|
106
|
-
{ "title": "Audio Receiver", "enum": ["audioreceiver"] }
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
"tvAccessoryLightbulb": {
|
|
110
|
-
"title": "Enable lightbulb for HDMI TV",
|
|
111
|
-
"type": "boolean",
|
|
112
|
-
"default": false,
|
|
113
|
-
"required": false,
|
|
114
|
-
"description": "Enables an integrated lightbulb for the TV Accessory."
|
|
115
|
-
},
|
|
116
|
-
"modeTvAccessory": {
|
|
117
|
-
"title": "Enable Mode TV",
|
|
118
|
-
"type": "boolean",
|
|
119
|
-
"default": false,
|
|
120
|
-
"required": false,
|
|
121
|
-
"description": "Enables a TV Accessory for switching the modes of the Sync Box."
|
|
122
|
-
},
|
|
123
|
-
"modeTvAccessoryConfiguredName": {
|
|
124
|
-
"title": "Set name for Mode TV",
|
|
125
|
-
"type": "string",
|
|
126
|
-
"required": false,
|
|
127
|
-
"description": "Sets custom name for the Mode TV. Overwrites names configured HomeKit."
|
|
128
|
-
},
|
|
129
|
-
"modeTvAccessoryType": {
|
|
130
|
-
"title": "Mode TV HomeKit Type",
|
|
131
|
-
"type": "string",
|
|
132
|
-
"default": "tv",
|
|
133
|
-
"oneOf": [
|
|
134
|
-
{
|
|
135
|
-
"title": "TV",
|
|
136
|
-
"enum": ["tv"]
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"title": "Set Top Box",
|
|
140
|
-
"enum": ["settopbox"]
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"title": "TV Stick",
|
|
144
|
-
"enum": ["tvstick"]
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"title": "Audio Receiver",
|
|
148
|
-
"enum": ["audioreceiver"]
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
"modeTvAccessoryLightbulb": {
|
|
153
|
-
"title": "Enable lightbulb for Mode TV",
|
|
154
|
-
"type": "boolean",
|
|
155
|
-
"default": false,
|
|
156
|
-
"required": false,
|
|
157
|
-
"description": "Enables an integrated lightbulb for the TV Accessory."
|
|
158
|
-
},
|
|
159
|
-
"intensityTvAccessory": {
|
|
160
|
-
"title": "Enable Intensity TV",
|
|
161
|
-
"type": "boolean",
|
|
162
|
-
"default": false,
|
|
163
|
-
"required": false,
|
|
164
|
-
"description": "Enables a TV Accessory for switching the intensity of the Sync Box."
|
|
165
|
-
},
|
|
166
|
-
"intensityTvAccessoryConfiguredName": {
|
|
167
|
-
"title": "Set name for Intensity TV",
|
|
168
|
-
"type": "string",
|
|
169
|
-
"required": false,
|
|
170
|
-
"description": "Sets custom name for the Intensity TV. Overwrites names configured HomeKit."
|
|
171
|
-
},
|
|
172
|
-
"intensityTvAccessoryType": {
|
|
173
|
-
"title": "Intensity TV HomeKit Type",
|
|
174
|
-
"type": "string",
|
|
175
|
-
"default": "tv",
|
|
176
|
-
"oneOf": [
|
|
177
|
-
{
|
|
178
|
-
"title": "TV",
|
|
179
|
-
"enum": ["tv"]
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"title": "Set Top Box",
|
|
183
|
-
"enum": ["settopbox"]
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"title": "TV Stick",
|
|
187
|
-
"enum": ["tvstick"]
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"title": "Audio Receiver",
|
|
191
|
-
"enum": ["audioreceiver"]
|
|
192
|
-
}
|
|
71
|
+
{ "title": "Lightbulb", "enum": ["lightbulb"] },
|
|
72
|
+
{ "title": "Switch", "enum": ["switch"] },
|
|
73
|
+
{ "title": "None", "enum": ["none"] }
|
|
193
74
|
]
|
|
194
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" },
|
|
195
82
|
"intensityTvAccessoryLightbulb": {
|
|
196
|
-
"
|
|
197
|
-
"type": "boolean",
|
|
198
|
-
"default": false,
|
|
199
|
-
"required": false,
|
|
200
|
-
"description": "Enables an integrated lightbulb for the TV Accessory."
|
|
201
|
-
},
|
|
202
|
-
"entertainmentTvAccessory": {
|
|
203
|
-
"title": "Enable Entertainment Area TV",
|
|
204
|
-
"type": "boolean",
|
|
205
|
-
"default": false,
|
|
206
|
-
"required": false,
|
|
207
|
-
"description": "Enables a TV Accessory for switching the entertainment area of the Sync Box."
|
|
208
|
-
},
|
|
209
|
-
"entertainmentTvAccessoryConfiguredName": {
|
|
210
|
-
"title": "Set name for Entertainment Area TV",
|
|
211
|
-
"type": "string",
|
|
212
|
-
"required": false,
|
|
213
|
-
"description": "Sets custom name for the Entertainment Area TV. Overwrites names configured HomeKit."
|
|
214
|
-
},
|
|
215
|
-
"entertainmentTvAccessoryType": {
|
|
216
|
-
"title": "Entertainment Area TV HomeKit Type",
|
|
217
|
-
"type": "string",
|
|
218
|
-
"default": "tv",
|
|
219
|
-
"oneOf": [
|
|
220
|
-
{
|
|
221
|
-
"title": "TV",
|
|
222
|
-
"enum": ["tv"]
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"title": "Set Top Box",
|
|
226
|
-
"enum": ["settopbox"]
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"title": "TV Stick",
|
|
230
|
-
"enum": ["tvstick"]
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"title": "Audio Receiver",
|
|
234
|
-
"enum": ["audioreceiver"]
|
|
235
|
-
}
|
|
236
|
-
]
|
|
83
|
+
"$ref": "#/definitions/lightbulbOption"
|
|
237
84
|
},
|
|
238
85
|
"entertainmentTvAccessoryLightbulb": {
|
|
239
|
-
"
|
|
240
|
-
"type": "boolean",
|
|
241
|
-
"default": false,
|
|
242
|
-
"required": false,
|
|
243
|
-
"description": "Enables an integrated lightbulb for the TV Accessory."
|
|
86
|
+
"$ref": "#/definitions/lightbulbOption"
|
|
244
87
|
},
|
|
245
88
|
"updateIntervalInSeconds": {
|
|
246
89
|
"title": "Update Interval",
|
|
@@ -265,7 +108,7 @@
|
|
|
265
108
|
"apiServerPort": {
|
|
266
109
|
"title": "API Port",
|
|
267
110
|
"type": "integer",
|
|
268
|
-
"default":
|
|
111
|
+
"default": 40220,
|
|
269
112
|
"required": false,
|
|
270
113
|
"description": "The port that the API (if enabled) runs on"
|
|
271
114
|
},
|
|
@@ -273,7 +116,7 @@
|
|
|
273
116
|
"title": "API Token",
|
|
274
117
|
"type": "string",
|
|
275
118
|
"required": false,
|
|
276
|
-
"description": "
|
|
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."
|
|
277
120
|
}
|
|
278
121
|
}
|
|
279
122
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseTv.d.ts","sourceRoot":"","sources":["../../src/accessories/baseTv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,KAAK,mBAAmB,EAExB,iBAAiB,EACjB,OAAO,EACR,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,8BAAsB,YAAa,SAAQ,aAAa;IAoCpD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB;aAC/B,SAAS,EAAE,iBAAiB;IAC5C,SAAS,CAAC,KAAK,EAAE,KAAK;IACtB,SAAS,CAAC,gBAAgB,CAAC,EAAE,iBAAiB;IAtChD,SAAS,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACrC,SAAS,CAAC,aAAa,EAAE,OAAO,EAAE,CAAM;IACxC,SAAS,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAE5C,SAAS,CAAC,QAAQ,CAAC,iBAAiB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,SAAS,CAAC,QAAQ,CAAC,kBAAkB,IAAI,OAAO;IAEhD,SAAS,CAAC,sBAAsB,IAAI,IAAI;IAqBxC,cAAc,CAAC,KAAK,EAAE,mBAAmB;IAWzC,SAAS,CAAC,cAAc;IAIxB,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,mBAAmB;IAmHvD,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE;IAWpC,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAUjC,SAAS,CAAC,QAAQ,CAAC,QAAQ,IAAI,IAAI;IAEnC,OAAO,CAAC,eAAe;IAmBvB,OAAO,CAAC,wBAAwB;IAahC,SAAS,CAAC,eAAe,CACvB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,QAAQ,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"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"description": "Homebridge plugin for the Philips Hue Sync Box.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"homebridge-plugin",
|
|
@@ -65,44 +65,43 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"async-lock": "^1.4.1",
|
|
67
67
|
"fetch-retry": "^6.0.0",
|
|
68
|
-
"homebridge-lib": "^7.1.
|
|
68
|
+
"homebridge-lib": "^7.1.6",
|
|
69
69
|
"node-fetch": "^3.3.2"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@commitlint/cli": "
|
|
73
|
-
"@commitlint/config-conventional": "
|
|
74
|
-
"@eslint/eslintrc": "
|
|
75
|
-
"@eslint/js": "
|
|
76
|
-
"@semantic-release/changelog": "
|
|
77
|
-
"@semantic-release/commit-analyzer": "
|
|
78
|
-
"@semantic-release/exec": "
|
|
79
|
-
"@semantic-release/git": "
|
|
80
|
-
"@semantic-release/github": "
|
|
81
|
-
"@semantic-release/npm": "
|
|
82
|
-
"@semantic-release/release-notes-generator": "
|
|
83
|
-
"@types/async-lock": "
|
|
84
|
-
"@types/
|
|
85
|
-
"@
|
|
86
|
-
"@typescript-eslint/
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"homebridge": "
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"typescript": "
|
|
101
|
-
"typescript-eslint": "^8.19.1"
|
|
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"
|
|
102
101
|
},
|
|
103
102
|
"engines": {
|
|
104
103
|
"homebridge": "^1.8.0 || ^2.0.0-beta.0",
|
|
105
|
-
"node": "^18.
|
|
104
|
+
"node": "^20.18.1 || ^22.10.0 || ^24.11.0"
|
|
106
105
|
},
|
|
107
106
|
"publishConfig": {
|
|
108
107
|
"access": "public"
|