Homebridge instance shuts down whenever I turn on my Xbox.
See original GitHub issueHi. Forgive me if what is occurring is a result of any errors I’ve made. I’m extremely new to homebridge and using my raspberry pi. I installed the plugin and followed all the steps to the best of my ability. I am able to connect my Xbox to Homekit, however, the second my Xboxis turned on, homebridge shuts down. I was told that this could be a bug and that I should report it. Making it a child bridge results in the same issue.
This is the error I get:
/usr/lib/node_modules/homebridge-xbox-tv/index.js:389
const manufacturer = this.webApiEnabled ? this.xboxInfo[0].manufacturer : this.manufacturer;
TypeError: Cannot read property '0' of undefined
at EventEmitter.<anonymous> (/usr/lib/node_modules/homebridge-xbox-tv/index.js:389:61)
at EventEmitter.emit (events.js:327:22)
at EventEmitter.<anonymous> (/usr/lib/node_modules/homebridge-xbox-tv/node_modules/xbox-smartglass-core-node/src/events.js:119:27)
at EventEmitter.emit (events.js:315:20)
at Object.<anonymous> (/usr/lib/node_modules/homebridge-xbox-tv/node_modules/xbox-smartglass-core-node/src/smartglass.js:324:30)
at Socket.emit (events.js:315:20)
at UDP.onMessage (dgram.js:919:8)
[4/18/2021, 11:38:05 PM] [homebridge-xbox-tv] Child bridge process ended
[4/18/2021, 11:38:05 PM] [homebridge-xbox-tv] Process Ended. Code: 1, Signal: null
[4/18/2021, 11:38:12 PM] [homebridge-xbox-tv] Restarting Process...
This is what I have in my config.json and if I attempt to change it to what’s listed in the instructions, the error still happens and the stuff that I edited disappears:
"platform": "XboxTv",
"devices": [
{
"name": "Xbox",
"host": "192.168.1.8",
"xboxliveid": "MyXboxGamertag,
"xboxWebApiToken": "TheTokenGivenAfterCode=",
"clientID": "",
"refreshInterval": 5,
"xboxWebApiEnabled": true,
"disableLogInfo": false,
"volumeControl": 0,
"switchInfoMenu": false
}
Again, my apologies if this isn’t a bug and it’s just an error on my part. I’m just reporting it because I was suggested to do so by someone in the Homebridge Discord. Any help is greatly appreciated!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Here is nothing about the plugin, go to homebridge settings and enable debug mode.
Found out my issue. So sorry for the confusion but I figured I’d still clarify in case if someone runs into the same issue because they’re stupid like me lol
I was putting in my gamertag, but I was supposed to be putting in my device id. my mind automatically thought they were the same thing. working as expected now!! thank you for at least trying to help with what I was providing for you and again sorry for the confusion.