grzegorz914 / homebridge-xbox-tv

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

Updating... No Response #13

Closed robinmanuelthiel closed 4 years ago

robinmanuelthiel commented 4 years ago

The device constantly switches between "Updating" and "No Response" mode. I was able to add it successfully, but when opening the Home app, I can never use it. The logs also seem to get spammed a lot with requests.

I have already tried to rename and re-add the accessory and re-start Homebridge.

Homebridge Logs:

...
[4/28/2020, 11:52:33 AM] [XboxTv] Device: 192.168.0.30, name: Xbox One X, state: Online
...
[4/28/2020, 11:54:46 AM] [XboxTv] Device: 192.168.0.30, get current Power state successful, state: ON
[4/28/2020, 11:54:58 AM] [XboxTv] Device: 192.168.0.30, get current Power state successful, state: ON
[4/28/2020, 11:55:10 AM] [XboxTv] Device: 192.168.0.30, get current Power state successful, state: ON
[4/28/2020, 11:56:00 AM] [XboxTv] Device: 192.168.0.30, get current Power state successful, state: ON
[4/28/2020, 11:56:38 AM] [XboxTv] Device: 192.168.0.30, get current Power state successful, state: ON
[4/28/2020, 11:56:49 AM] [XboxTv] Device: 192.168.0.30, get current Power state successful, state: ON
[4/28/2020, 11:57:43 AM] [XboxTv] Device: 192.168.0.30, get current Power state successful, state: ON

Config

{
    "bridge": {
        "name": "Homebridge",
        "username": "XXXXX",
        "port": XXXX,
        "pin": "XXXXXXX"
    },
    "accessories": [
      ...
    ],
    "platforms": [
        {
            ...           
        },
        {
            "devices": [
                {
                    "name": "Xbox One X",
                    "host": "192.168.0.30",
                    "xboxliveid": "FDXXXXXXXX",
                    "volumeControl": false,
                    "switchInfoMenu": true
                }
            ],
            "platform": "XboxTv"
        }
    ]
}

Home Bridge version: 1.0.2 Plugin Version: v0.2.3

grzegorz914 commented 4 years ago

try latest update

robinmanuelthiel commented 4 years ago

Isn't jo 0.2.3 the latest one?

grzegorz914 commented 4 years ago

Please update to the latest version

robinmanuelthiel commented 4 years ago

The one you uploaded 2h ago and don't have a changelog for yet? Okay, will try...

grzegorz914 commented 4 years ago

still the issue open?

robinmanuelthiel commented 4 years ago

Kind of, yes. I now get a device_unavailable error every 3 seconds in the logs. Is that expected?

image

grzegorz914 commented 4 years ago

This log is from debug mode, its OK Your Xbox is not available for HB

SSutherland94 commented 4 years ago

Is there any way to hide this? Or is that not a technical possibility?

grzegorz914 commented 4 years ago

this is not show, disable debug mode in your Homebridge

robinmanuelthiel commented 4 years ago

image

I don't think, this only happens in Debug Mode...

grzegorz914 commented 4 years ago

I think U use old plugin.

SSutherland94 commented 4 years ago

I have the latest version of the plugin and Homebridge, and I still get this when debug is set to false { "name": "Config", "port": xx, "auth": "form", "theme": "red", "restart": "pm2 restart homebridge", "tempUnits": "f", "lang": "auto", "sudo": false, "debug": false, "log": { "method": "custom", "command": "pm2 logs --raw --out --lines 1000 homebridge" }, "platform": "config" },

grzegorz914 commented 4 years ago

As

I have the latest version of the plugin and Homebridge, and I still get this when debug is set to false { "name": "Config", "port": xx, "auth": "form", "theme": "red", "restart": "pm2 restart homebridge", "tempUnits": "f", "lang": "auto", "sudo": false, "debug": false, "log": { "method": "custom", "command": "pm2 logs --raw --out --lines 1000 homebridge" }, "platform": "config" },

get Your log, the log before is from old plugin version

SSutherland94 commented 4 years ago

Screen Shot 2020-05-19 at 10 16 20 AM

grzegorz914 commented 4 years ago

Is Your console available from the local LAN?

SSutherland94 commented 4 years ago

If you're referring to being able to send shell commands, yes

grzegorz914 commented 4 years ago

Strange, I do not get this in my log. This is the part of code and the log is in debug level:

this.sgClient.connect(this.host).then(response => {
                    this.log('Device: %s %s, state: Online', this.host, this.name);
                    this.sgClient.addManager('system_input', SystemInputChannel());
                    this.sgClient.addManager('system_media', SystemMediaChannel());
                    this.sgClient.addManager('tv_remote', TvRemoteChannel());
                    this.getDeviceState();
                }).catch(error => {
                    this.log.debug('Device: %s %s, state Offline and error: %s', this.host, this.name, error);
                    this.currentPowerState = false;
                    return;
                });