question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Homebridge instance shuts down whenever I turn on my Xbox.

See original GitHub issue

Hi. 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
grzegorz914commented, Apr 19, 2021

Here is nothing about the plugin, go to homebridge settings and enable debug mode.

0reactions
interstellaurcommented, Apr 19, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My gaming focus mode is being turned on by Homekit ... - Reddit
The homebridge -xbox-tv plugin just keeps saying "get Power state successful: OFF" when the console is very clearly switched on and it's able...
Read more >
Xbox shuts off when using a app, then starting a game. Or vise ...
If im using a app, example youtube/microsoft edge. And I launch a game while the app is running. It immediately shuts my console...
Read more >
homebridge - npm
Homebridge is a lightweight NodeJS server you can run on your home network that emulates the iOS HomeKit API. It supports Plugins, which...
Read more >
Shameful: Insteon looks dead—just like its users' smart homes
The Insteon company has shut down and turned off their cloud as of April 2022. Do not factory reset your device under any...
Read more >
Using Mote with Homekit and Siri - Pimoroni
The endpoints defined by homebridge-better-http-rgb are on , off , status (whether the lights are on or off), brightness , and set to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found