homebridge-xbox-tv 2.11.6 → 2.11.7

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
@@ -80,7 +80,7 @@ Homebridge plugin for Microsoft game Consoles. Tested with Xbox One X/S and Xbox
80
80
  | `filterApps` | If enabled, Apps will be hidden and not displayed in the inputs list, only available if `webApiControl` enabled. |
81
81
  | `filterSystemApps` | If enabled, System Apps (Accessory, Microsoft Store, Television) will be hidden and not displayed in the inputs list, only available if `webApiControl` enabled. |
82
82
  | `filterDlc` | If enabled, Dlc will be hidden and not displayed in the inputs list, only available if `webApiControl` enabled. |
83
- | `inputsDisplayOrder` | Here select display order of the inputs list, `None`, `Alphabetically Name`, `Alphabetically Reference`. |
83
+ | `inputsDisplayOrder` | Here select display order of the inputs list, `None`, `Ascending by Name`, `Descending by Name`, `Ascending by Reference`, `Ascending by Reference`. |
84
84
  | `inputs.name` | Here set *Input Name* which You want expose to the *Homebridge/HomeKit*, `Screensaver`, `Television`, `TV Settings`, `Dashboard`, `Accessory`, `Settings`, `Network Troubleshooter`, `Microsoft Store`, `Xbox Guide` are created by default. |
85
85
  | `inputs.reference` | Required to identify current running app. |
86
86
  | `inputs.oneStoreProductId` | Required to switch apps. |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "2.11.6",
4
+ "version": "2.11.7",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/xboxdevice.js CHANGED
@@ -77,7 +77,7 @@ class XboxDevice extends EventEmitter {
77
77
  this.volume = 0;
78
78
  this.mute = true;
79
79
  this.mediaState = 0;
80
- this.inputIdentifier = 0;
80
+ this.inputIdentifier = 1;
81
81
  this.reference = '';
82
82
 
83
83
  this.sensorScreenSaverState = false;
@@ -274,7 +274,7 @@ class XboxDevice extends EventEmitter {
274
274
  })
275
275
  .on('stateChanged', (power, volume, mute, mediaState, titleId, reference) => {
276
276
  const indexR = this.inputsConfigured.findIndex(input => input.reference === reference) ?? -1;
277
- const indexT = this.inputsConfigured.findIndex(input => input.reference === titleId) ?? this.inputIdentifier;
277
+ const indexT = this.inputsConfigured.findIndex(input => input.titleId === titleId) ?? this.inputIdentifier;
278
278
  const inputIdentifier = indexR !== -1 ? indexR : indexT;
279
279
 
280
280
  //update characteristics