grzegorz914 / homebridge-xbox-tv

Homebridge plugin for Microsoft Game Console, publish as independent external platform accessory.
MIT License
166 stars 15 forks source link

Unable to use remote input #145

Closed JackSmerdon closed 1 year ago

JackSmerdon commented 1 year ago

I'm unable to use the remote to control the console. Bridge crashes with this callstack:

/var/lib/homebridge/node_modules/homebridge-xbox-tv/src/xboxlocalapi.js:553 return new Promise(async (resolve, reject) => { ^ TypeError: Cannot read properties of undefined (reading 'systemInput') at /var/lib/homebridge/node_modules/homebridge-xbox-tv/src/xboxlocalapi.js:556:40 at new Promise (<anonymous>) at XBOXLOCALAPI.sendCommand (/var/lib/homebridge/node_modules/homebridge-xbox-tv/src/xboxlocalapi.js:553:16) at RemoteKey.setHandler (/var/lib/homebridge/node_modules/homebridge-xbox-tv/index.js:722:176) at RemoteKey.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2547:42) at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27) at Object.next (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:125:57) at /var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:118:75 at new Promise (<anonymous>) at Object.__awaiter (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:114:16)

Also unable to change input - it successfully pings the console and displays the current input but it cannot set it. Only obtains system apps and not installed games etc even though these are enabled in the config. Logs show 'Set Input Successful' but nothing happens on the console. The only thing I have been able to do is switch it on and off.

Current plugin config: { "devices": [ { "name": "XBOX", "host": "192.168.86.184", "xboxLiveId": "XXXXXXXXXXXXXXXX", "xboxWebApiToken": "M.R3_BAY.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "disableLogInfo": false, "disableLogDeviceInfo": false, "enableDebugMode": false, "webApiControl": true, "volumeControl": 0, "getInputsFromDevice": true, "filterGames": false, "filterApps": false, "filterSystemApps": false, "filterDlc": false, "enableMqtt": false, "mqttAuth": false, "mqttDebug": false } ], "_bridge": { "username": "0E:9D:6C:6A:61:8D", "port": 52628 }, "platform": "XboxTv" }