homebridge-xbox-tv 2.13.28 → 2.14.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
@@ -1,33 +1,52 @@
1
1
  # Changelog
2
+
2
3
  All notable changes to this project will be documented in this file.
3
4
 
4
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7
 
7
- ### NOTE!!!
8
- ## After update to 2.x.x the plugin settings (xboxLiveId) need to be updated.
8
+ ### NOTE
9
+ ## After update to 2.x.x the plugin settings (xboxLiveId) need to be updated
10
+
11
+ ## [2.14.0] - (04.08.2024)
12
+
13
+ ## Changes
14
+
15
+ - added possiblity to set own volume control name and enable/disable prefix
16
+ - config schema updated
17
+ - bump dependencies
18
+ - cleanup
9
19
 
10
20
  ## [2.13.0] - (05.03.2024)
21
+
11
22
  ## Changes
23
+
12
24
  - added support to subscribe MQTT and control device
13
25
  - config schema updated
14
26
  - cleanup
15
27
 
16
28
  ## [2.12.0] - (02.01.2024)
29
+
17
30
  ## Changes
31
+
18
32
  - added possibility to disable prefix name for buttons and sensors
19
33
  - config schema updated
20
34
  - cleanup
21
35
 
22
36
  ## [2.11.0] - (29.12.2023)
37
+
23
38
  ## Changes
39
+
24
40
  - added possibility to select display inputs order, possible by `None`, `Alphabetically Name`, `Alphabetically Reference`
25
41
  - config schema updated
26
42
  - cleanup
27
43
 
28
44
  ## [2.10.0] - (26.12.2023)
29
- ## After update to this version the plugin properties are changed and console must be authorized and settings need to be corrected.
45
+
46
+ ## After update to this version the plugin properties are changed and console must be authorized and settings need to be corrected
47
+
30
48
  ## Changes
49
+
31
50
  - full code refactor
32
51
  - added possibility toggle Power control between local/web api
33
52
  - fixed disconnect problem on first run
@@ -37,7 +56,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
37
56
  - cleanup
38
57
 
39
58
  ## [2.9.0] - (29.07.2023)
59
+
40
60
  ## Changes
61
+
41
62
  - added RESTFul server
42
63
  - use JWT token for lokal api if console authorizen
43
64
  - code refactor and cleanup
@@ -46,7 +67,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
46
67
  - prepare for next release and features
47
68
 
48
69
  ## [2.8.0] - (20.02.2023)
70
+
49
71
  ## Changes
72
+
50
73
  - fix load plugin gui on first start after install
51
74
  - authorization manager updated
52
75
  - added possibility to set IP Address and Xbox Live ID from Authorization Manager.
@@ -54,7 +77,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
54
77
  - cleanup
55
78
 
56
79
  ## [2.7.0] - (13.02.2023)
80
+
57
81
  ## Changes
82
+
58
83
  - standarize function of display type and volume control, now volume control -1 None/Disabled, 0 Slider, 1 Fan, please see in readme
59
84
  - config.schema updated
60
85
  - fix expose extra input tile in homekit app
@@ -62,7 +87,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
62
87
  - cleanup
63
88
 
64
89
  ## [2.6.0] - (12.02.2023)
90
+
65
91
  ## Changes
92
+
66
93
  - integrate web api library in to the plugin
67
94
  - simplify the authorization manager process(reduced 1 step, correct some words)
68
95
  - bump dependencies
@@ -71,8 +98,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
71
98
  - cleanup
72
99
 
73
100
  ## [2.5.0] - (29.01.2023)
101
+
74
102
  ## Changes
75
- - update logging
103
+
104
+ - update logging
76
105
  - added new mqtt topics *Consoles List*, *Profile*, *Apps*, *Storages*, *Status*
77
106
  - bump dependencies
78
107
  - stability improwements
@@ -80,7 +109,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
80
109
  - cleanup
81
110
 
82
111
  ## [2.4.0] - (24.01.2023)
112
+
83
113
  ## Changes
114
+
84
115
  - added Power Sensor for use with automations (active if power is ON)
85
116
  - added Input Sensor for use with automations (activ on every Input change)
86
117
  - added Screen Saver Sensor for use with automations (active on change to Screen Saver)
@@ -89,67 +120,95 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
89
120
  - cleanup
90
121
 
91
122
  ## [2.3.16] - (04.01.2023)
123
+
92
124
  ## Changes
125
+
93
126
  - fix wrong state after power Off
94
127
  - fix display current app
95
128
  - fix save target visibility
96
- - fix save custom names
129
+ - fix save custom names
97
130
 
98
131
  ## [2.3.15] - (04.01.2023)
132
+
99
133
  ## Changes
134
+
100
135
  - fix #147 #148
101
136
 
102
137
  ## [2.3.14] - (03.01.2023)
138
+
103
139
  ## Changes
140
+
104
141
  - code refactor
105
142
  - stability improwements
106
143
 
107
144
  ## [2.3.13] - (31.12.2022)
145
+
108
146
  ## Changes
147
+
109
148
  - dynamic update accessory information
110
149
 
111
150
  ## [2.3.12] - (24.12.2022)
151
+
112
152
  ## Changed
153
+
113
154
  - fix #145
114
155
 
115
156
  ## [2.3.11] - (18.12.2022)
157
+
116
158
  ## Changed
159
+
117
160
  - fix buttons and switch services
118
161
 
119
162
  ## [2.3.10] - (02.12.2022)
163
+
120
164
  ## Changed
165
+
121
166
  - fix [#143](https://github.com/grzegorz914/homebridge-xbox-tv/issues/143)
122
167
 
123
168
  ## [2.3.9] - (28.11.2022)
169
+
124
170
  ## Changed
171
+
125
172
  - fix [#143](https://github.com/grzegorz914/homebridge-xbox-tv/issues/143)
126
173
  - update dependencies
127
174
 
128
175
  ## [2.3.8] - (02.11.2022)
176
+
129
177
  ## Changed
178
+
130
179
  - fix error with 2.3.7
131
180
 
132
181
  ## [2.3.7] - (02.11.2022)
182
+
133
183
  ## Changed
184
+
134
185
  - code refactor
135
186
 
136
187
  ## [2.3.6] - (10.09.2022)
188
+
137
189
  ## Changed
190
+
138
191
  - cleanup
139
192
  - added content type properties to inputs
140
193
  - bump dependencies
141
194
 
142
195
  ## [2.3.3] - (29.08.2022)
196
+
143
197
  ## Changed
198
+
144
199
  - cleanup
145
200
  - rebuild mqtt topics
146
201
 
147
202
  ## [2.3.2] - (28.08.2022)
203
+
148
204
  ## Changed
205
+
149
206
  - fix publish MQTT message
150
207
 
151
208
  ## [2.3.0] - (24.08.2022)
209
+
152
210
  ## Changed
211
+
153
212
  - fix MQTT device info
154
213
  - refactor debug and info log
155
214
  - refactor send mqtt message
@@ -159,46 +218,62 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
159
218
  - fix [#137](https://github.com/grzegorz914/homebridge-xbox-tv/issues/137)
160
219
 
161
220
  ## [2.2.2] - (09.03.2022)
221
+
162
222
  ## Changed
223
+
163
224
  - MQTT Client connection process
164
225
 
165
226
  ## Fixed
227
+
166
228
  - webApiControl switch state
167
229
 
168
230
  ## [2.2.0] - (27.02.2022)
231
+
169
232
  ## Added
233
+
170
234
  - MQTT Client, publish all device data
171
235
  - possibility to set custom command for Info button in RC
172
236
 
173
237
  ## Changes
238
+
174
239
  - update dependencies
175
240
  - code refactor
176
241
 
177
242
  ## [2.1.3] - (28.01.2022)
243
+
178
244
  ### Fixed
245
+
179
246
  - offset out of range
180
247
  - code refactor
181
248
 
182
249
  ## [2.1.2] - (21.01.2022)
250
+
183
251
  ### Fixed
252
+
184
253
  - [#136](https://github.com/grzegorz914/homebridge-xbox-tv/issues/136)
185
254
 
186
255
  ## [2.1.1] - (21.01.2022)
256
+
187
257
  ### Changed
258
+
188
259
  - refactor debug message logging
189
260
  - update readme
190
261
 
191
262
  ### Fixed
263
+
192
264
  - wrong variables
193
265
  - removed unnecessary async
194
266
  - report unknown message if power on fail
195
267
 
196
268
  ## [2.1.0] - (21.01.2022)
269
+
197
270
  ### Added
271
+
198
272
  - check authorization state of console every 10 min. if powered ON and web api control enabled
199
273
  - check cosole data and installed apps every 10 min. if powered ON and web api control enabled
200
274
 
201
275
  ### Changed
276
+
202
277
  - send status message data only if changed
203
278
  - debug message logging
204
279
  - code refactor
@@ -206,6 +281,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
206
281
  - stability and performance improvements
207
282
 
208
283
  ### Fixed
284
+
209
285
  - unexpected set authorization to true however the console is not authorized
210
286
  - data offset out of range [#133](https://github.com/grzegorz914/homebridge-xbox-tv/issues/133)
211
287
  - incorrect client authorization on console
@@ -213,53 +289,76 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
213
289
  ## [2.0.13] - (15.01.2022)
214
290
 
215
291
  ### Added
292
+
216
293
  - Network Troubleshooter as defaul input
217
294
 
218
295
  ### Changed
296
+
219
297
  - removed manual authorization method
220
298
  - code cleanup
221
299
  - redme update
222
300
 
223
301
  ### Fixed
302
+
224
303
  - services calculation count
225
304
 
226
305
  ## [2.0.12] - (09.01.2022)
306
+
227
307
  ### Changed
228
- - code cleanup
308
+
309
+ - code cleanup
229
310
 
230
311
  ## [2.0.10/11] - (08.01.2022)
312
+
231
313
  ### Changed
232
- - rebuild device info read and write
314
+
315
+ - rebuild device info read and write
233
316
 
234
317
  ## [2.0.9] - (03.01.2022)
318
+
235
319
  ### Added
236
- - ability to disable log device info by every connections device to the network (Advanced Section)
320
+
321
+ - ability to disable log device info by every connections device to the network (Advanced Section)
237
322
 
238
323
  ### Fixed
324
+
239
325
  - unexpected power on after power off
240
326
 
241
327
  ## [2.0.8] - 2021-12-29
328
+
242
329
  ### Added
330
+
243
331
  - prevent load plugin if host or xboxLiveId not set
244
332
  - prepare directory and files synchronously
245
333
 
246
334
  ## [2.0.6] - 2021-12-28
335
+
247
336
  ### Added
337
+
248
338
  - better handle clientId if not defined in config
249
339
 
250
340
  ## [2.0.3] - 2021-12-28
341
+
251
342
  ### Added
343
+
252
344
  - Selectable display type of buttons in HomeKit app
253
345
 
254
346
  ## [2.0.2] - 2021-12-28
347
+
255
348
  ### Changed
349
+
256
350
  - Changed switches to buttons appear in HomeKit accessory
257
351
 
258
352
  ## [2.0.1] - 2021-12-26
353
+
259
354
  ### Fixed
355
+
260
356
  - RC Control
357
+
261
358
  ## [2.0.0] - 2021-12-25
359
+
262
360
  ### Added
361
+
263
362
  - Screensaver and Settings TV input as default
264
363
  - Smartglass library (based on @unknownskl code) as standalone packet, completelly rebuilded
265
364
  - Debug mode
@@ -269,6 +368,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
269
368
  - Clear web api token from plugin config menu
270
369
 
271
370
  ### Changes
371
+
272
372
  - full code rebuild
273
373
  - config.schema updated
274
374
  - dependencies updated
@@ -276,47 +376,66 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
276
376
  - removed bramnding
277
377
 
278
378
  ### Fixed
279
- - memmory leak on some scenerious
379
+
380
+ - memmory leak on some scenerious
280
381
  - protocol disconnect if send multiple command at once
281
382
  - authorization manager
282
383
 
283
384
  ## [1.8.13] - 2021-12-01
385
+
284
386
  ### Fixed
387
+
285
388
  - fix authorization UI Manager open URI
286
389
 
287
390
  ## [1.8.12] - 2021-12-01
391
+
288
392
  ### Fixed
393
+
289
394
  - fix authorization UI Manager
290
395
 
291
396
  ## [1.8.8] - 2021-11-04
397
+
292
398
  ### Fixed
399
+
293
400
  - fix some connect/disconnect case
294
- - fix some remote command not send
401
+ - fix some remote command not send
295
402
 
296
403
  ## [1.8.7] - 2021-11-01
404
+
297
405
  ### Changes
406
+
298
407
  - performance improvement
299
408
 
300
409
  ## [1.8.6] - 2021-10-30
410
+
301
411
  ### Fixed
412
+
302
413
  - fix powerOn
303
414
 
304
415
  ## [1.8.3] - 2021-10-30
416
+
305
417
  ### Fixed
418
+
306
419
  - fix graphic in settings
307
420
 
308
421
  ## [1.8.2] - 2021-10-30
422
+
309
423
  ### Changes
424
+
310
425
  - code optimize
311
426
  - config.schema update
312
427
  - redme update
313
428
 
314
429
  ## [1.8.1] - 2021-10-26
430
+
315
431
  ### Fixed
432
+
316
433
  - fixed callback issue ([#105](https://github.com/grzegorz914/homebridge-xbox-tv/issues/105))
317
434
 
318
435
  ## [1.8.0] - 2021-10-26
436
+
319
437
  ### Changes
438
+
320
439
  - added possibility Record Game DVR
321
440
  - rebuild connection proces to console
322
441
  - fixed Authorization Manager error on first run
@@ -324,52 +443,72 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
324
443
  - code cleanup
325
444
 
326
445
  ## [1.7.9] - 2021-09-26
446
+
327
447
  ### Changes
448
+
328
449
  - config.schema update
329
450
 
330
451
  ## [1.7.8] - 2021-09-24
452
+
331
453
  ### Changes
454
+
332
455
  - update authorization manager
333
456
  - code cleanup
334
457
 
335
458
  ## [1.7.5] - 2021-09-05
459
+
336
460
  ### Changes
461
+
337
462
  - update config schema
338
463
  - extend fiter possibility
339
464
  - code cleanup
340
465
 
341
466
  ## [1.7.3] - 2021-09-03
467
+
342
468
  ### Changes
469
+
343
470
  - update config schema
344
471
 
345
472
  ## [1.7.2] - 2021-09-03
473
+
346
474
  ### Changes
475
+
347
476
  - added filter for Games, Apps, Dlc
348
477
 
349
478
  ## [1.7.1] - 2021-08-31
479
+
350
480
  ### Changes
481
+
351
482
  - code refactorin
352
483
  - added default inputs TV, Settings, Dashboard, Accessory, no need to create it in config
353
484
  - many small changes and stability improvements
354
485
 
355
486
  ## [1.6.3] - 2021-08-05
487
+
356
488
  ### Changes
489
+
357
490
  - added alternative check current running app if reference app is missing
358
491
  - removed unnecessary reference property from buttons in config.json
359
492
 
360
493
  ## [1.6.2] - 2021-08-05
494
+
361
495
  ### Changes
496
+
362
497
  - added possibility reboot console
363
498
  - added possibility switch to Television input
364
499
  - code and config reconfigured
365
500
  - update config schema
366
501
 
367
502
  ## [1.6.0] - 2021-08-04
503
+
368
504
  ### Changes
505
+
369
506
  - fixes
370
507
 
371
508
  ## [1.6.0] - 2021-08-04
509
+
372
510
  ### Changes
511
+
373
512
  - added possibility load inputs list direct from device
374
513
  - chenged config properties, please adapted config to latest one
375
514
  - changed stored files names, may be need authenticate console again or just copy authentication Token to the new created file(authToken_xxxx)
@@ -377,183 +516,248 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
377
516
  - code rebuild
378
517
 
379
518
  ## [1.5.0] - 2021-04-11
519
+
380
520
  ### Changes
521
+
381
522
  - added control over Web Api
382
523
  - code rebuild
383
524
 
384
525
  ## [1.4.0] - 2021-02-19
526
+
385
527
  ### Changes
528
+
386
529
  - code rebuild, use Characteristic.onSet
387
530
  - require Homebridge 1.3.x or above
388
531
 
389
532
  ## [1.3.10] - 2021-02-15
533
+
390
534
  ### Added and Fixed
535
+
391
536
  - Add possibility disable log info, options available in config
392
537
  - Fix memory leak
393
538
 
394
539
  ## [1.3.2] - 2021-01-18
540
+
395
541
  ### Fixed
542
+
396
543
  - Fix log info regarding Input references ([#63](https://github.com/grzegorz914/homebridge-xbox-tv/issues/63))
397
544
 
398
545
  ## [1.3.1] - 2021-01-06
546
+
399
547
  ### Fixed
548
+
400
549
  - Fix `getAppChannelLineups` data error.
401
550
 
402
551
  ## [1.3.0] - 2020-11-20
552
+
403
553
  ### Fixed
554
+
404
555
  - Dependency bump ([#55](https://github.com/grzegorz914/homebridge-xbox-tv/issues/55))
405
556
 
406
557
  ## [1.2.41] - 2020-11-20
558
+
407
559
  ### Fixed
560
+
408
561
  - Fix slow response on RC control.
409
562
 
410
563
  ## [1.2.1] - 2020-09-18
564
+
411
565
  ### Changes
566
+
412
567
  - Updated device category to `TV_SET_TOP_BOX` ([#47](https://github.com/grzegorz914/homebridge-xbox-tv/pull/47))
413
568
 
414
569
  ## [1.2.0] - 2020-09-17
570
+
415
571
  ### Changes
572
+
416
573
  - Fix send power on until successful ([#38](https://github.com/grzegorz914/homebridge-xbox-tv/issues/38))
417
574
  - Fix remote control function ([#28](https://github.com/grzegorz914/homebridge-xbox-tv/issues/28))
418
575
  - Add `refreshInterval` with a default of five seconds.
419
576
  - Updated config layout.
420
577
 
421
578
  ## [1.1.0] - 2020-09-06
579
+
422
580
  ### Changes
581
+
423
582
  - Completely reconfigured layout of the configuration schema.
424
583
 
425
584
  ## [1.0.0] - 2020-06-28
585
+
426
586
  ### Added
587
+
427
588
  - Release version.
428
589
 
429
590
  ## [0.9.0] - 2020-05-23
591
+
430
592
  ### Added
593
+
431
594
  - Add possibility to select what a type of extra volume control you want to use. None, Slider, Fan.
432
595
 
433
596
  ## [0.8.21] - 2020-05-23
597
+
434
598
  ### Changes
599
+
435
600
  - Output app reference to log when opening app ([#22](https://github.com/grzegorz914/homebridge-xbox-tv/issues/22), [#26](https://github.com/grzegorz914/homebridge-xbox-tv/issues/26))
436
601
  - Used for discovering the value to use for `reference` when adding new inputs.
437
602
 
438
603
  ## [0.8.0] - 2020-05-20
604
+
439
605
  ### Added
606
+
440
607
  - Add mute ON/OFF to the slider volume.
441
608
 
442
609
  ## [0.7.60] - 2020-05-18
610
+
443
611
  ### Fixed
612
+
444
613
  - Fix bug in RC control.
445
614
 
446
615
  ## [0.7.35] - 2020-05-17
447
- ### Added
616
+
617
+ ### Added
618
+
448
619
  - Add read console configuration after Homebridge restart and save to `/homebridge_folder/xboxTv/` file.
449
620
 
450
621
  ## [0.7.2] - 2020-05-14
451
- ### Added
622
+
623
+ ### Added
624
+
452
625
  - Add descriptions in `config.schema.json`.
453
626
 
454
627
  ## [0.7.0] - 2020-05-14
628
+
455
629
  ### Added
630
+
456
631
  - Revert back with defaults inputs.
457
632
  - Add input type to inputs.
458
633
  - Add other fixes in code to prevent app crash without configured inputs.
459
634
 
460
635
  ## [0.6.0] - 2020-05-14
636
+
461
637
  ### Breaking Changes
638
+
462
639
  - Update your config.json: Add types to the inputs.
463
640
 
464
641
  ### Default Inputs
642
+
465
643
  ```json
466
644
  "inputs": [
467
- {
468
- "name": "TV",
469
- "reference": "Microsoft.Xbox.LiveTV_8wekyb3d8bbwe!Microsoft.Xbox.LiveTV.Application",
470
- "type": "HDMI"
471
- },
472
- {
473
- "name": "Dashboard",
474
- "reference": "Xbox.Dashboard_8wekyb3d8bbwe!Xbox.Dashboard.Application",
475
- "type": "HOME_SCREEN"
476
- },
477
- {
478
- "name": "Settings",
479
- "reference": "Microsoft.Xbox.Settings_8wekyb3d8bbwe!Xbox.Settings.Application",
480
- "type": "OTHER"
481
- },
482
- {
483
- "name": "Accessory",
484
- "reference": "Microsoft.XboxDevices_8wekyb3d8bbwe!App",
485
- "type": "OTHER"
486
- }
645
+ {
646
+ "name": "TV",
647
+ "reference": "Microsoft.Xbox.LiveTV_8wekyb3d8bbwe!Microsoft.Xbox.LiveTV.Application",
648
+ "type": "HDMI"
649
+ },
650
+ {
651
+ "name": "Dashboard",
652
+ "reference": "Xbox.Dashboard_8wekyb3d8bbwe!Xbox.Dashboard.Application",
653
+ "type": "HOME_SCREEN"
654
+ },
655
+ {
656
+ "name": "Settings",
657
+ "reference": "Microsoft.Xbox.Settings_8wekyb3d8bbwe!Xbox.Settings.Application",
658
+ "type": "OTHER"
659
+ },
660
+ {
661
+ "name": "Accessory",
662
+ "reference": "Microsoft.XboxDevices_8wekyb3d8bbwe!App",
663
+ "type": "OTHER"
664
+ }
487
665
  ]
488
666
  ```
489
667
 
490
668
  ## [0.5.0] - 2020-05-10
669
+
491
670
  ### Changes
671
+
492
672
  - Code cleanup.
493
673
  - Miscellaneous fixes and performance improvements.
494
674
 
495
675
  ## [0.4.0] - 2020-05-06
676
+
496
677
  ### Changes
678
+
497
679
  - Adapted to HAP-Node JS lib.
498
680
 
499
681
  ## [0.3.12] - 2020-05-05
682
+
500
683
  ### Changes
684
+
501
685
  - Cleanup code.
502
686
 
503
687
  ### Breaking Changes
688
+
504
689
  - Update your config.json: replace `apps` with `inputs`.
505
690
 
506
691
  ## [0.3.12] - 2020-05-05
692
+
507
693
  ### Changes
694
+
508
695
  - Fix and performance improvements.
509
696
  - Corrected logging state.
510
697
 
511
698
  ## [0.3.9] - 2020-05-05
699
+
512
700
  ### Added
701
+
513
702
  - Add real time read and write data for lightbulb slider volume value.
514
703
 
515
704
  ## [0.2.3] - 2020-04-27
705
+
516
706
  ### Added
707
+
517
708
  - Add switch ON/OFF volume control.
518
709
 
519
710
  ## [0.2.1] - 2020-04-27
711
+
520
712
  ### Added
713
+
521
714
  - Add Siri volume control.
522
715
  - Add slider or Brightness volume control.
523
716
 
524
717
  ## [0.1.39] - 2020-04-21
718
+
525
719
  - Different fixes.
526
720
 
527
721
  ## [0.1.12] - 2020-04-13
722
+
528
723
  - Fix memory leak.
529
724
 
530
725
  ## [0.1.9] - 2020-04-07
726
+
531
727
  - Fix store of position in HomeKit favorites.
532
728
 
533
729
  ## [0.1.6] - 2020-04-06
730
+
534
731
  - Test 2.
535
732
 
536
733
  ## [0.1.5] - 2020-04-05
734
+
537
735
  - Test 1.
538
736
 
539
737
  ## [0.1.2] - 2020-04-05
738
+
540
739
  - Some improvements.
541
740
 
542
741
  ## [0.1.1] - 2020-04-05
742
+
543
743
  - Update `README.md`.
544
744
  - Update `sample-config.json`.
545
745
 
546
746
  ## [0.1.0] - 2020-03-29
747
+
547
748
  - Fix crash if no device name defined.
548
749
  - Fix `config.schema.json`.
549
750
  - Fix store file inside the Homebridge directory.
550
751
 
551
752
  ## [0.0.118] - 2020-03-29
753
+
552
754
  - Small fixes.
553
755
 
554
756
  ## [0.0.115] - 2020-03-21
757
+
555
758
  - Corrections for Homebridge git.
556
759
  - Performance improvements.
557
760
 
558
761
  ## [0.0.1] - 2020-02-05
762
+
559
763
  - Initial release.
package/README.md CHANGED
@@ -102,11 +102,13 @@ Homebridge plugin for Microsoft game Consoles. Tested with Xbox One X/S and Xbox
102
102
  | `webApiToken` | Required if `webApiControl` enabled, use Authorization Manager to get it. |
103
103
  | `webApiClientId` | If You are created App on Azure AD then You can use your own Client Id. |
104
104
  | `webApiClientSecret` | If You are created App on Azure AD then You can use own Client Secret. |
105
+ | `volumeControlNamePrefix` | Here enable/disable the accessory name as a prefix for volume control name. |
106
+ | `volumeControlName` | Here set Your own volume control name or leave empty. |
107
+ | `volumeControl` | Here choice what a additional volume control mode You want to use (`0 - None/Disabled`, `1 - Lightbulb`, `2 - Fan`), not working yet. |
108
+ | `infoButtonCommand` | Here select the function of `I` button in RC app. |
105
109
  | `enableDebugMode` | If enabled, deep log will be present in homebridge console. |
106
110
  | `disableLogInfo` | If enabled, disable log info, all values and state will not be displayed in Homebridge log console. |
107
111
  | `disableLogDeviceInfo` | If enabled, add ability to disable log device info by every connections device to the network. |
108
- | `infoButtonCommand` | Here select the function of `I` button in RC app. |
109
- | `volumeControl` | Here choice what a additional volume control mode You want to use (`0 - None/Disabled`, `1 - Lightbulb`, `2 - Fan`), not working yet. |
110
112
  | `enableRestFul` | If enabled, RESTful server will start automatically and respond to any path request. |
111
113
  | `restFulPort` | Here set the listening `Port` for RESTful server. |
112
114
  | `restFulDebug` | If enabled, deep log will be present in homebridge console for RESTFul server. |
@@ -648,6 +648,20 @@
648
648
  "description": "Here select the function of info button in RC.",
649
649
  "required": true
650
650
  },
651
+ "volumeControlNamePrefix": {
652
+ "title": "Volume Control Name Prefix",
653
+ "type": "boolean",
654
+ "default": false,
655
+ "description": "Here enable/disable the accessory name as a prefix for volume control name.",
656
+ "required": false
657
+ },
658
+ "volumeControlName": {
659
+ "title": "Volume Control Name",
660
+ "type": "string",
661
+ "placeholder": "Name",
662
+ "description": "Here set Your own volume control name or leave empty.",
663
+ "required": false
664
+ },
651
665
  "volumeControl": {
652
666
  "title": "Volume Control",
653
667
  "type": "integer",
@@ -889,6 +903,15 @@
889
903
  "type": "tabarray",
890
904
  "title": "{{ value.title }}",
891
905
  "items": [
906
+ {
907
+ "key": "devices[]",
908
+ "title": "Volume",
909
+ "items": [
910
+ "devices[].volumeControlNamePrefix",
911
+ "devices[].volumeControlName",
912
+ "devices[].volumeControl"
913
+ ]
914
+ },
892
915
  {
893
916
  "key": "devices[]",
894
917
  "title": "Sensors",
@@ -918,6 +941,13 @@
918
941
  }
919
942
  ]
920
943
  },
944
+ {
945
+ "key": "devices[]",
946
+ "title": "Device",
947
+ "items": [
948
+ "devices[].infoButtonCommand"
949
+ ]
950
+ },
921
951
  {
922
952
  "key": "devices[]",
923
953
  "title": "Web Api",
@@ -935,9 +965,7 @@
935
965
  "items": [
936
966
  "devices[].enableDebugMode",
937
967
  "devices[].disableLogInfo",
938
- "devices[].disableLogDeviceInfo",
939
- "devices[].infoButtonCommand",
940
- "devices[].volumeControl"
968
+ "devices[].disableLogDeviceInfo"
941
969
  ]
942
970
  },
943
971
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "2.13.28",
4
+ "version": "2.14.0",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/xboxdevice.js CHANGED
@@ -47,6 +47,8 @@ class XboxDevice extends EventEmitter {
47
47
  this.disableLogDeviceInfo = device.disableLogDeviceInfo || false;
48
48
  this.infoButtonCommand = device.infoButtonCommand || 'nexus';
49
49
  this.volumeControl = device.volumeControl || false;
50
+ this.volumeControlNamePrefix = device.volumeControlNamePrefix || false;
51
+ this.volumeControlName = device.volumeControlName || 'Volume';
50
52
 
51
53
  //external integration
52
54
  this.restFulConnected = false;
@@ -949,10 +951,11 @@ class XboxDevice extends EventEmitter {
949
951
  //Prepare volume service
950
952
  if (this.volumeControl) {
951
953
  const debug = !this.enableDebugMode ? false : this.emit('debug', `Prepare volume service`);
954
+ const volumeServiceName = this.volumeControlNamePrefix ? `${accessoryName} ${this.volumeControlName}` : this.volumeControlName;
952
955
  if (this.volumeControl === 1) {
953
- this.volumeService = accessory.addService(Service.Lightbulb, `${accessoryName} Volume`, 'Volume');
956
+ this.volumeService = accessory.addService(Service.Lightbulb, `${volumeServiceName}`, 'Volume');
954
957
  this.volumeService.addOptionalCharacteristic(Characteristic.ConfiguredName);
955
- this.volumeService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Volume`);
958
+ this.volumeService.setCharacteristic(Characteristic.ConfiguredName, `${volumeServiceName}`);
956
959
  this.volumeService.getCharacteristic(Characteristic.Brightness)
957
960
  .onGet(async () => {
958
961
  const volume = this.volume;
@@ -974,9 +977,9 @@ class XboxDevice extends EventEmitter {
974
977
  }
975
978
 
976
979
  if (this.volumeControl === 2) {
977
- this.volumeServiceFan = accessory.addService(Service.Fan, `${accessoryName} Volume`, 'Volume');
980
+ this.volumeServiceFan = accessory.addService(Service.Fan, `${volumeServiceName}`, 'Volume');
978
981
  this.volumeServiceFan.addOptionalCharacteristic(Characteristic.ConfiguredName);
979
- this.volumeServiceFan.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Volume`);
982
+ this.volumeServiceFan.setCharacteristic(Characteristic.ConfiguredName, `${volumeServiceName}`);
980
983
  this.volumeServiceFan.getCharacteristic(Characteristic.RotationSpeed)
981
984
  .onGet(async () => {
982
985
  const volume = this.volume;