homebridge-denon-tv 4.4.2-beta.8 → 4.4.2

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/README.md CHANGED
@@ -72,7 +72,7 @@ Tested with Denon AVR-X6300H, Denon AVR-X2700H, Denon AVR-3311CI, Marantz SR8012
72
72
  | `getInputsFromDevice` | If enabled, source *Inputs* will be loaded direct from device. |
73
73
  | `getFavoritesFromDevice` | If enabled, *Favorites* will be loaded to the inputs list if exist. |
74
74
  | `getQuickSmartSelectFromDevice` | If enabled, *Quick/Smart Select* will be loaded to the inputs list if exist. |
75
- | `inputsDisplayOrder` | Here select display order of the inputs list, `None`, `Alphabetically Name`, `Alphabetically Reference`. |
75
+ | `inputsDisplayOrder` | Here select display order of the inputs list, `None`, `Ascending by Name`, `Descending by Name`, `Ascending by Reference`, `Ascending by Reference`. |
76
76
  | `inputs.name` | Here set *Input Name* which You want expose to the *Homebridge/HomeKit*. |
77
77
  | `inputs.reference` | Choose from available inputs, the inputs that should be published to and appear in HomeKit app in the device tile as inputs list |
78
78
  | `inputs.mode` | Choose from available inputs mode. |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Denon TV",
3
3
  "name": "homebridge-denon-tv",
4
- "version": "4.4.2-beta.8",
4
+ "version": "4.4.2",
5
5
  "description": "Homebridge plugin to control Denon/Marantz AV Receivers.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -321,7 +321,7 @@ class DenonDevice extends EventEmitter {
321
321
 
322
322
  if (this.televisionService && inputIdentifier !== -1) {
323
323
  this.televisionService
324
- .updateCharacteristic(Characteristic.ActiveIdentifier, inputIdentifier + 1)
324
+ .updateCharacteristic(Characteristic.ActiveIdentifier, inputIdentifier)
325
325
  }
326
326
 
327
327
  if (this.tvSpeakerService) {
@@ -785,13 +785,13 @@ class DenonDevice extends EventEmitter {
785
785
  this.allServices.push(this.tvSpeakerService);
786
786
  accessory.addService(this.tvSpeakerService);
787
787
 
788
- //prepare input service
788
+ //prepare inputs service
789
789
  const debug8 = !this.enableDebugMode ? false : this.emit('debug', `Prepare input services`);
790
790
 
791
- //check possible inputs and possible count (max 80)
791
+ //check possible inputs count (max 85)
792
792
  const inputs = this.savedInputs;
793
793
  const inputsCount = inputs.length;
794
- const possibleInputsCount = 90 - this.allServices.length;
794
+ const possibleInputsCount = 85 - this.allServices.length;
795
795
  const maxInputsCount = inputsCount >= possibleInputsCount ? possibleInputsCount : inputsCount;
796
796
  let inputIdentifier = 0;
797
797
  for (let i = 0; i < maxInputsCount; i++) {