grzegorz914 / homebridge-xbox-tv

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

Power status is incorrect. #148

Closed Slug-Life closed 1 year ago

Slug-Life commented 1 year ago

Installed and configured the plugin according to wiki and got a success message after saving the api key. However, the tile does not show the correct status in HomeKit.

It only shows as off regardless of whether the Xbox is on or off. Turning on the power through HomeKit wakes the console but then the status returns back to off shortly after. Turning on the Xbox manually does not update the status in HomeKit.

The input wheel also did not automatically load all available apps. The inputs that have loaded do work immediately after I turn on the power in HomeKit, but stop working after the tile returns to off.

The xbox network device iD is absolutely correct, allow connections from any device is selected, and sleep mode/remote wake is on. I can control my xbox from the xbox app without issue.

Config:

`{
    "devices": [
        {
            "name": "Lounge Xbox",
            "host": "192.168.1.24",
            "xboxLiveId": "xxxxxxxxxx",
            "xboxWebApiToken": "xxxxxxxxxx",
            "disableLogInfo": false,
            "disableLogDeviceInfo": false,
            "enableDebugMode": true,
            "webApiControl": true,
            "volumeControl": 0,
            "getInputsFromDevice": true,
            "filterGames": false,
            "filterApps": true,
            "filterSystemApps": true,
            "filterDlc": true,
            "enableMqtt": false,
            "mqttAuth": false,
            "mqttDebug": false
        },
        {
            "name": "Office Xbox",
            "host": "192.168.1.23",
            "xboxLiveId": "xxxxxxxxxxxxx",
            "xboxWebApiToken": "xxxxxxxxxxx",
            "disableLogInfo": false,
            "disableLogDeviceInfo": false,
            "enableDebugMode": false,
            "webApiControl": false,
            "volumeControl": 0,
            "getInputsFromDevice": true,
            "filterGames": false,
            "filterApps": true,
            "filterSystemApps": true,
            "filterDlc": true,
            "enableMqtt": false,
            "mqttAuth": false,
            "mqttDebug": false
        }
    ],
    "_bridge": {
        "username": "0E:51:12:7F:A7:70",
        "port": 38268
    },
    "platform": "XboxTv"`

Logs:

[1/3/2023, 11:25:29 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Connecting using anonymous login.
[1/3/2023, 11:25:29 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 170 bytes.
[1/3/2023, 11:25:34 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, Send power On.
[1/3/2023, 11:25:34 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Ping state: {
  "inputHost": "192.168.1.24",
  "host": "192.168.1.24",
  "alive": true,
  "output": "PING 192.168.1.24 (192.168.1.24) 56(84) bytes of data.\n64 bytes from 192.168.1.24: icmp_seq=1 ttl=128 time=1.59 ms\n\n--- 192.168.1.24 ping statistics ---\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\nrtt min/avg/max/mdev = 1.591/1.591/1.591/0.000 ms\n",
  "time": 1.59,
  "times": [
    1.59
  ],
  "min": "1.591",
  "max": "1.591",
  "avg": "1.591",
  "stddev": "0.000",
  "packetLoss": "0.000",
  "numeric_host": "192.168.1.24"
}
[1/3/2023, 11:25:34 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 16 bytes.
[1/3/2023, 11:25:34 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received message from: 192.168.1.24:5050
[1/3/2023, 11:25:34 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received event type: discoveryResponse
[1/3/2023, 11:25:34 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Discovered: {"type":"dd01","payloadLength":653,"version":2,"flags":6,"clientType":1,"name":"XBOX-LOUNGE","uuid":"xx","lastError":0,"certificateLength":588,"certificate":{"type":"Buffer","data":[48,130,2,72,48,130,1,48,160,3,2,1,2,2,17,0,242,249,141,86,229,214,196,67,145,192,225,16,206,35,105,157,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,37,49,35,48,33,6,3,85,4,3,12,26,88,66,76,32,83,109,97,114,116,32,71,108,97,115,115,32,73,115,115,117,105,110,103,32,67,65,48,30,23,13,50,50,49,50,48,50,48,51,49,52,51,49,90,23,13,50,51,48,49,48,49,48,51,49,52,51,49,90,48,27,49,25,48,23,6,3,85,4,3,12,16,70,68,48,48,53,56,67,49,68,57,69,52,50,55,57,70,48,89,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,66,0,4,10,1,86,196,49,28,154,125,168,29,195,106,2,180,4,192,240,14,60,221,88,138,83,42,167,14,247,100,233,177,148,89,162,234,198,80,220,208,15,174,168,74,26,138,154,109,148,224,116,238,245,74,132,195,152,57,171,27,132,252,35,31,253,101,163,72,48,70,48,14,6,3,85,29,15,1,1,255,4,4,3,2,3,8,48,19,6,3,85,29,37,4,12,48,10,6,8,43,6,1,5,5,7,3,2,48,31,6,3,85,29,35,4,24,48,22,128,20,63,216,201,206,201,96,244,44,51,166,151,1,182,73,218,104,123,64,90,26,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,29,230,209,89,220,202,28,96,86,139,26,138,83,134,38,71,234,16,33,118,5,154,73,49,208,240,166,7,231,40,108,244,196,173,121,33,173,134,94,106,130,37,52,106,110,137,86,246,197,13,67,49,10,29,245,155,25,199,15,253,217,248,147,226,23,62,224,98,202,120,35,248,108,111,31,165,200,145,196,227,220,230,82,201,157,240,242,54,253,181,128,184,186,35,153,210,174,195,15,142,118,149,145,90,195,221,107,56,32,226,134,105,110,168,22,225,8,95,121,76,200,192,84,68,114,220,193,59,149,224,179,145,167,76,15,183,102,85,159,84,216,6,156,224,208,45,65,95,72,80,40,147,139,188,153,254,132,253,239,187,132,163,253,8,98,207,187,47,238,104,188,97,180,220,109,79,74,221,151,122,135,195,225,10,133,205,85,7,196,38,151,3,61,228,170,146,61,27,128,118,148,252,61,11,91,64,236,136,92,145,99,201,210,58,129,173,70,140,97,215,240,166,23,129,170,56,17,185,134,26,0,88,89,45,182,67,176,191,189,3,24,44,38,246,44,91,54,13,92,160,37,195,246,201,62,199]}}, send connect request.
[1/3/2023, 11:25:34 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Signing public key: xx
[1/3/2023, 11:25:35 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Loading crypto, public key: xx, and secret: xx
[1/3/2023, 11:25:35 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Connecting using anonymous login.
[1/3/2023, 11:25:35 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 170 bytes.
[1/3/2023, 11:25:38 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, set Power successful, ON
[1/3/2023, 11:25:39 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Ping state: {
  "inputHost": "192.168.1.24",
  "host": "192.168.1.24",
  "alive": true,
  "output": "PING 192.168.1.24 (192.168.1.24) 56(84) bytes of data.\n64 bytes from 192.168.1.24: icmp_seq=1 ttl=128 time=0.619 ms\n\n--- 192.168.1.24 ping statistics ---\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\nrtt min/avg/max/mdev = 0.619/0.619/0.619/0.000 ms\n",
  "time": 0.619,
  "times": [
    0.619
  ],
  "min": "0.619",
  "max": "0.619",
  "avg": "0.619",
  "stddev": "0.000",
  "packetLoss": "0.000",
  "numeric_host": "192.168.1.24"
}
[1/3/2023, 11:25:39 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 16 bytes.
[1/3/2023, 11:25:39 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received message from: 192.168.1.24:5050
[1/3/2023, 11:25:39 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received event type: discoveryResponse
[1/3/2023, 11:25:39 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Discovered: {"type":"dd01","payloadLength":653,"version":2,"flags":6,"clientType":1,"name":"XBOX-LOUNGE","uuid":"xx","lastError":0,"certificateLength":588,"certificate":{"type":"Buffer","data":[48,130,2,72,48,130,1,48,160,3,2,1,2,2,17,0,242,249,141,86,229,214,196,67,145,192,225,16,206,35,105,157,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,37,49,35,48,33,6,3,85,4,3,12,26,88,66,76,32,83,109,97,114,116,32,71,108,97,115,115,32,73,115,115,117,105,110,103,32,67,65,48,30,23,13,50,50,49,50,48,50,48,51,49,52,51,49,90,23,13,50,51,48,49,48,49,48,51,49,52,51,49,90,48,27,49,25,48,23,6,3,85,4,3,12,16,70,68,48,48,53,56,67,49,68,57,69,52,50,55,57,70,48,89,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,66,0,4,10,1,86,196,49,28,154,125,168,29,195,106,2,180,4,192,240,14,60,221,88,138,83,42,167,14,247,100,233,177,148,89,162,234,198,80,220,208,15,174,168,74,26,138,154,109,148,224,116,238,245,74,132,195,152,57,171,27,132,252,35,31,253,101,163,72,48,70,48,14,6,3,85,29,15,1,1,255,4,4,3,2,3,8,48,19,6,3,85,29,37,4,12,48,10,6,8,43,6,1,5,5,7,3,2,48,31,6,3,85,29,35,4,24,48,22,128,20,63,216,201,206,201,96,244,44,51,166,151,1,182,73,218,104,123,64,90,26,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,29,230,209,89,220,202,28,96,86,139,26,138,83,134,38,71,234,16,33,118,5,154,73,49,208,240,166,7,231,40,108,244,196,173,121,33,173,134,94,106,130,37,52,106,110,137,86,246,197,13,67,49,10,29,245,155,25,199,15,253,217,248,147,226,23,62,224,98,202,120,35,248,108,111,31,165,200,145,196,227,220,230,82,201,157,240,242,54,253,181,128,184,186,35,153,210,174,195,15,142,118,149,145,90,195,221,107,56,32,226,134,105,110,168,22,225,8,95,121,76,200,192,84,68,114,220,193,59,149,224,179,145,167,76,15,183,102,85,159,84,216,6,156,224,208,45,65,95,72,80,40,147,139,188,153,254,132,253,239,187,132,163,253,8,98,207,187,47,238,104,188,97,180,220,109,79,74,221,151,122,135,195,225,10,133,205,85,7,196,38,151,3,61,228,170,146,61,27,128,118,148,252,61,11,91,64,236,136,92,145,99,201,210,58,129,173,70,140,97,215,240,166,23,129,170,56,17,185,134,26,0,88,89,45,182,67,176,191,189,3,24,44,38,246,44,91,54,13,92,160,37,195,246,201,62,199]}}, send connect request.
[1/3/2023, 11:25:39 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Signing public key: xx
[1/3/2023, 11:25:39 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Loading crypto, public key: xx, and secret: xx
[1/3/2023, 11:25:39 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Connecting using anonymous login.
[1/3/2023, 11:25:39 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 170 bytes.
[1/3/2023, 11:25:44 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Ping state: {
  "inputHost": "192.168.1.24",
  "host": "192.168.1.24",
  "alive": true,
  "output": "PING 192.168.1.24 (192.168.1.24) 56(84) bytes of data.\n64 bytes from 192.168.1.24: icmp_seq=1 ttl=128 time=0.713 ms\n\n--- 192.168.1.24 ping statistics ---\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\nrtt min/avg/max/mdev = 0.713/0.713/0.713/0.000 ms\n",
  "time": 0.713,
  "times": [
    0.713
  ],
  "min": "0.713",
  "max": "0.713",
  "avg": "0.713",
  "stddev": "0.000",
  "packetLoss": "0.000",
  "numeric_host": "192.168.1.24"
}
[1/3/2023, 11:25:44 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 16 bytes.
[1/3/2023, 11:25:44 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received message from: 192.168.1.24:5050
[1/3/2023, 11:25:44 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received event type: discoveryResponse
[1/3/2023, 11:25:44 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Discovered: {"type":"dd01","payloadLength":653,"version":2,"flags":6,"clientType":1,"name":"XBOX-LOUNGE","uuid":"xx","lastError":0,"certificateLength":588,"certificate":{"type":"Buffer","data":[48,130,2,72,48,130,1,48,160,3,2,1,2,2,17,0,242,249,141,86,229,214,196,67,145,192,225,16,206,35,105,157,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,37,49,35,48,33,6,3,85,4,3,12,26,88,66,76,32,83,109,97,114,116,32,71,108,97,115,115,32,73,115,115,117,105,110,103,32,67,65,48,30,23,13,50,50,49,50,48,50,48,51,49,52,51,49,90,23,13,50,51,48,49,48,49,48,51,49,52,51,49,90,48,27,49,25,48,23,6,3,85,4,3,12,16,70,68,48,48,53,56,67,49,68,57,69,52,50,55,57,70,48,89,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,66,0,4,10,1,86,196,49,28,154,125,168,29,195,106,2,180,4,192,240,14,60,221,88,138,83,42,167,14,247,100,233,177,148,89,162,234,198,80,220,208,15,174,168,74,26,138,154,109,148,224,116,238,245,74,132,195,152,57,171,27,132,252,35,31,253,101,163,72,48,70,48,14,6,3,85,29,15,1,1,255,4,4,3,2,3,8,48,19,6,3,85,29,37,4,12,48,10,6,8,43,6,1,5,5,7,3,2,48,31,6,3,85,29,35,4,24,48,22,128,20,63,216,201,206,201,96,244,44,51,166,151,1,182,73,218,104,123,64,90,26,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,29,230,209,89,220,202,28,96,86,139,26,138,83,134,38,71,234,16,33,118,5,154,73,49,208,240,166,7,231,40,108,244,196,173,121,33,173,134,94,106,130,37,52,106,110,137,86,246,197,13,67,49,10,29,245,155,25,199,15,253,217,248,147,226,23,62,224,98,202,120,35,248,108,111,31,165,200,145,196,227,220,230,82,201,157,240,242,54,253,181,128,184,186,35,153,210,174,195,15,142,118,149,145,90,195,221,107,56,32,226,134,105,110,168,22,225,8,95,121,76,200,192,84,68,114,220,193,59,149,224,179,145,167,76,15,183,102,85,159,84,216,6,156,224,208,45,65,95,72,80,40,147,139,188,153,254,132,253,239,187,132,163,253,8,98,207,187,47,238,104,188,97,180,220,109,79,74,221,151,122,135,195,225,10,133,205,85,7,196,38,151,3,61,228,170,146,61,27,128,118,148,252,61,11,91,64,236,136,92,145,99,201,210,58,129,173,70,140,97,215,240,166,23,129,170,56,17,185,134,26,0,88,89,45,182,67,176,191,189,3,24,44,38,246,44,91,54,13,92,160,37,195,246,201,62,199]}}, send connect request.
[1/3/2023, 11:25:44 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Signing public key: xx
[1/3/2023, 11:25:44 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Loading crypto, public key: xx, and secret: xx
[1/3/2023, 11:25:44 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Connecting using anonymous login.
[1/3/2023, 11:25:44 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 170 bytes.
[1/3/2023, 11:25:49 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, Power On failed, please try again.
[1/3/2023, 11:25:49 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Ping state: {
  "inputHost": "192.168.1.24",
  "host": "192.168.1.24",
  "alive": true,
  "output": "PING 192.168.1.24 (192.168.1.24) 56(84) bytes of data.\n64 bytes from 192.168.1.24: icmp_seq=1 ttl=128 time=0.692 ms\n\n--- 192.168.1.24 ping statistics ---\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\nrtt min/avg/max/mdev = 0.692/0.692/0.692/0.000 ms\n",
  "time": 0.692,
  "times": [
    0.692
  ],
  "min": "0.692",
  "max": "0.692",
  "avg": "0.692",
  "stddev": "0.000",
  "packetLoss": "0.000",
  "numeric_host": "192.168.1.24"
}
[1/3/2023, 11:25:49 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 16 bytes.
[1/3/2023, 11:25:49 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received message from: 192.168.1.24:5050
[1/3/2023, 11:25:49 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received event type: discoveryResponse
[1/3/2023, 11:25:49 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Discovered: {"type":"dd01","payloadLength":653,"version":2,"flags":6,"clientType":1,"name":"XBOX-LOUNGE","uuid":"xx","lastError":0,"certificateLength":588,"certificate":{"type":"Buffer","data":[48,130,2,72,48,130,1,48,160,3,2,1,2,2,17,0,242,249,141,86,229,214,196,67,145,192,225,16,206,35,105,157,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,37,49,35,48,33,6,3,85,4,3,12,26,88,66,76,32,83,109,97,114,116,32,71,108,97,115,115,32,73,115,115,117,105,110,103,32,67,65,48,30,23,13,50,50,49,50,48,50,48,51,49,52,51,49,90,23,13,50,51,48,49,48,49,48,51,49,52,51,49,90,48,27,49,25,48,23,6,3,85,4,3,12,16,70,68,48,48,53,56,67,49,68,57,69,52,50,55,57,70,48,89,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,66,0,4,10,1,86,196,49,28,154,125,168,29,195,106,2,180,4,192,240,14,60,221,88,138,83,42,167,14,247,100,233,177,148,89,162,234,198,80,220,208,15,174,168,74,26,138,154,109,148,224,116,238,245,74,132,195,152,57,171,27,132,252,35,31,253,101,163,72,48,70,48,14,6,3,85,29,15,1,1,255,4,4,3,2,3,8,48,19,6,3,85,29,37,4,12,48,10,6,8,43,6,1,5,5,7,3,2,48,31,6,3,85,29,35,4,24,48,22,128,20,63,216,201,206,201,96,244,44,51,166,151,1,182,73,218,104,123,64,90,26,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,29,230,209,89,220,202,28,96,86,139,26,138,83,134,38,71,234,16,33,118,5,154,73,49,208,240,166,7,231,40,108,244,196,173,121,33,173,134,94,106,130,37,52,106,110,137,86,246,197,13,67,49,10,29,245,155,25,199,15,253,217,248,147,226,23,62,224,98,202,120,35,248,108,111,31,165,200,145,196,227,220,230,82,201,157,240,242,54,253,181,128,184,186,35,153,210,174,195,15,142,118,149,145,90,195,221,107,56,32,226,134,105,110,168,22,225,8,95,121,76,200,192,84,68,114,220,193,59,149,224,179,145,167,76,15,183,102,85,159,84,216,6,156,224,208,45,65,95,72,80,40,147,139,188,153,254,132,253,239,187,132,163,253,8,98,207,187,47,238,104,188,97,180,220,109,79,74,221,151,122,135,195,225,10,133,205,85,7,196,38,151,3,61,228,170,146,61,27,128,118,148,252,61,11,91,64,236,136,92,145,99,201,210,58,129,173,70,140,97,215,240,166,23,129,170,56,17,185,134,26,0,88,89,45,182,67,176,191,189,3,24,44,38,246,44,91,54,13,92,160,37,195,246,201,62,199]}}, send connect request.
[1/3/2023, 11:25:49 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Signing public key: xx
[1/3/2023, 11:25:49 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Loading crypto, public key: xx, and secret: xx
[1/3/2023, 11:25:49 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Connecting using anonymous login.
[1/3/2023, 11:25:49 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 170 bytes.
[1/3/2023, 11:25:54 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Ping state: {
  "inputHost": "192.168.1.24",
  "host": "192.168.1.24",
  "alive": true,
  "output": "PING 192.168.1.24 (192.168.1.24) 56(84) bytes of data.\n64 bytes from 192.168.1.24: icmp_seq=1 ttl=128 time=0.713 ms\n\n--- 192.168.1.24 ping statistics ---\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\nrtt min/avg/max/mdev = 0.713/0.713/0.713/0.000 ms\n",
  "time": 0.713,
  "times": [
    0.713
  ],
  "min": "0.713",
  "max": "0.713",
  "avg": "0.713",
  "stddev": "0.000",
  "packetLoss": "0.000",
  "numeric_host": "192.168.1.24"
}
[1/3/2023, 11:25:54 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 16 bytes.
[1/3/2023, 11:25:54 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received message from: 192.168.1.24:5050
[1/3/2023, 11:25:54 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received event type: discoveryResponse`
Slug-Life commented 1 year ago

@grzegorz914 I just tried the latest release going through the api setup again and I'm still having the same issue. He's the logs from when I restart the bridge.

I have two consoles setup and they have the same issue.

[1/4/2023, 12:46:47 PM] [homebridge-xbox-tv] Child bridge process ended
[1/4/2023, 12:46:47 PM] [homebridge-xbox-tv] Process Ended. Code: 143, Signal: null
[1/4/2023, 12:46:54 PM] [homebridge-xbox-tv] Restarting Process...
[1/4/2023, 12:46:55 PM] [homebridge-xbox-tv] Launched child bridge with PID 394139
[1/4/2023, 12:46:56 PM] Registering platform 'homebridge-xbox-tv.XboxTv'
[1/4/2023, 12:46:56 PM] [homebridge-xbox-tv] Loaded homebridge-xbox-tv v2.3.19 child bridge successfully
[1/4/2023, 12:46:56 PM] Loaded 0 cached accessories from cachedAccessories.0E51127FA770.
[1/4/2023, 12:46:56 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, read saved Inputs successful, inpits: [
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object],
  [Object], [Object], [Object], [Object]
]
[1/4/2023, 12:46:56 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, read saved custom Inputs Names successful, names: { '371594669': 'Television' }
[1/4/2023, 12:46:56 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, read saved Target Visibility successful, states {}
[1/4/2023, 12:46:56 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, published as external accessory.
[1/4/2023, 12:46:56 PM] Homebridge v1.6.0 (HAP v0.11.0) (homebridge-xbox-tv) is running on port 38268.
[1/4/2023, 12:46:56 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Server start listening: 0.0.0.0:33337.
[1/4/2023, 12:46:57 PM] Lounge Xbox 3F59 is running on port 34931.
[1/4/2023, 12:46:57 PM] Please add [Lounge Xbox 3F59] manually in Home app. Setup Code: 169-68-098
[1/4/2023, 12:46:57 PM] Office Xbox 033D is running on port 37803.
[1/4/2023, 12:46:57 PM] Please add [Office Xbox 033D] manually in Home app. Setup Code: 169-68-098
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, get Power state successful: OFF
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, get Input successful, input: Screensaver, reference: Xbox.IdleScreen_8wekyb3d8bbwe!Xbox.IdleScreen.Application, product Id: Screensaver
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, get Current Media state successful: STOP
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, get Target Media state successful: STOP
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, get Mute successful: ON
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, get Volume successful: 0
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, get Power state successful: OFF
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, get Input successful, input: Screensaver, reference: Xbox.IdleScreen_8wekyb3d8bbwe!Xbox.IdleScreen.Application, product Id: Screensaver
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, get Current Media state successful: STOP
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, get Target Media state successful: STOP
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, get Mute successful: ON
[1/4/2023, 12:46:58 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, get Volume successful: 0
[1/4/2023, 12:47:02 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Ping state: {
  "inputHost": "192.168.1.24",
  "host": "192.168.1.24",
  "alive": true,
  "output": "PING 192.168.1.24 (192.168.1.24) 56(84) bytes of data.\n64 bytes from 192.168.1.24: icmp_seq=1 ttl=128 time=0.761 ms\n\n--- 192.168.1.24 ping statistics ---\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\nrtt min/avg/max/mdev = 0.761/0.761/0.761/0.000 ms\n",
  "time": 0.761,
  "times": [
    0.761
  ],
  "min": "0.761",
  "max": "0.761",
  "avg": "0.761",
  "stddev": "0.000",
  "packetLoss": "0.000",
  "numeric_host": "192.168.1.24"
}
[1/4/2023, 12:47:02 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 16 bytes.
[1/4/2023, 12:47:02 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received message from: 192.168.1.24:5050
[1/4/2023, 12:47:02 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received event type: discoveryResponse
[1/4/2023, 12:47:02 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Discovered: {"type":"dd01","payloadLength":653,"version":2,"flags":6,"clientType":1,"name":"XBOX-LOUNGE","uuid":"xx","lastError":0,"certificateLength":588,"certificate":{"type":"Buffer","data":[48,130,2,72,48,130,1,48,160,3,2,1,2,2,17,0,242,249,141,86,229,214,196,67,145,192,225,16,206,35,105,157,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,37,49,35,48,33,6,3,85,4,3,12,26,88,66,76,32,83,109,97,114,116,32,71,108,97,115,115,32,73,115,115,117,105,110,103,32,67,65,48,30,23,13,50,50,49,50,48,50,48,51,49,52,51,49,90,23,13,50,51,48,49,48,49,48,51,49,52,51,49,90,48,27,49,25,48,23,6,3,85,4,3,12,16,70,68,48,48,53,56,67,49,68,57,69,52,50,55,57,70,48,89,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,66,0,4,10,1,86,196,49,28,154,125,168,29,195,106,2,180,4,192,240,14,60,221,88,138,83,42,167,14,247,100,233,177,148,89,162,234,198,80,220,208,15,174,168,74,26,138,154,109,148,224,116,238,245,74,132,195,152,57,171,27,132,252,35,31,253,101,163,72,48,70,48,14,6,3,85,29,15,1,1,255,4,4,3,2,3,8,48,19,6,3,85,29,37,4,12,48,10,6,8,43,6,1,5,5,7,3,2,48,31,6,3,85,29,35,4,24,48,22,128,20,63,216,201,206,201,96,244,44,51,166,151,1,182,73,218,104,123,64,90,26,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,29,230,209,89,220,202,28,96,86,139,26,138,83,134,38,71,234,16,33,118,5,154,73,49,208,240,166,7,231,40,108,244,196,173,121,33,173,134,94,106,130,37,52,106,110,137,86,246,197,13,67,49,10,29,245,155,25,199,15,253,217,248,147,226,23,62,224,98,202,120,35,248,108,111,31,165,200,145,196,227,220,230,82,201,157,240,242,54,253,181,128,184,186,35,153,210,174,195,15,142,118,149,145,90,195,221,107,56,32,226,134,105,110,168,22,225,8,95,121,76,200,192,84,68,114,220,193,59,149,224,179,145,167,76,15,183,102,85,159,84,216,6,156,224,208,45,65,95,72,80,40,147,139,188,153,254,132,253,239,187,132,163,253,8,98,207,187,47,238,104,188,97,180,220,109,79,74,221,151,122,135,195,225,10,133,205,85,7,196,38,151,3,61,228,170,146,61,27,128,118,148,252,61,11,91,64,236,136,92,145,99,201,210,58,129,173,70,140,97,215,240,166,23,129,170,56,17,185,134,26,0,88,89,45,182,67,176,191,189,3,24,44,38,246,44,91,54,13,92,160,37,195,246,201,62,199]}}, send connect request.
[1/4/2023, 12:47:02 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Signing public key: xx
[1/4/2023, 12:47:02 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Loading crypto, public key: xx, and secret: xx
[1/4/2023, 12:47:02 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Connecting using anonymous login.
[1/4/2023, 12:47:02 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 170 bytes.
[1/4/2023, 12:47:07 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Ping state: {
  "inputHost": "192.168.1.24",
  "host": "192.168.1.24",
  "alive": true,
  "output": "PING 192.168.1.24 (192.168.1.24) 56(84) bytes of data.\n64 bytes from 192.168.1.24: icmp_seq=1 ttl=128 time=0.776 ms\n\n--- 192.168.1.24 ping statistics ---\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\nrtt min/avg/max/mdev = 0.776/0.776/0.776/0.000 ms\n",
  "time": 0.776,
  "times": [
    0.776
  ],
  "min": "0.776",
  "max": "0.776",
  "avg": "0.776",
  "stddev": "0.000",
  "packetLoss": "0.000",
  "numeric_host": "192.168.1.24"
}
[1/4/2023, 12:47:07 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Socket send 16 bytes.
[1/4/2023, 12:47:07 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received message from: 192.168.1.24:5050
[1/4/2023, 12:47:07 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, debug: Received event type: discoveryResponse
grzegorz914 commented 1 year ago

I have same problem with Xbox Series X connected over LAN, my other console Xbox One X connected over WiFi working correct. If Your console is connected over LAN Try to Connect it over WiFi and let me know.

Slug-Life commented 1 year ago

Thanks for helping me with this. I set one up over WiFi and currently have all features working. The other, which is wired, still has the still has the same problems.

grzegorz914 commented 1 year ago

Today are working all consoles correct. try yourself please and let me know.

Slug-Life commented 1 year ago

I'm still having the same issue on the latest release. I'm seeing a new error as well. Hardwired console does not show power state correctly. The wireless one I have to turn on once then all features work perfectly including off, on, and inputs. When you look at the logs, the hardwired console is lounge and the wireless is office. I sorry I can't be more help with this but I'm more than happy to keep testing, thanks for your work on it.

I'm running node.js v18.12.1, NPM v8.19.2, and Homebridge v1.6.0 via docker

Debug output on bridge reboot:

[1/5/2023, 12:41:52 PM] [homebridge-xbox-tv] Child bridge process ended
[1/5/2023, 12:41:52 PM] [homebridge-xbox-tv] Process Ended. Code: 143, Signal: null
[1/5/2023, 12:41:59 PM] [homebridge-xbox-tv] Restarting Process...
[1/5/2023, 12:42:00 PM] [homebridge-xbox-tv] Launched child bridge with PID 486234
[1/5/2023, 12:42:00 PM] Registering platform 'homebridge-xbox-tv.XboxTv'
[1/5/2023, 12:42:00 PM] [homebridge-xbox-tv] Loaded homebridge-xbox-tv v2.3.22 child bridge successfully
[1/5/2023, 12:42:00 PM] Loaded 0 cached accessories from cachedAccessories.0E51127FA770.
[1/5/2023, 12:42:01 PM] Publishing bridge accessory (name: homebridge-xbox-tv, publishInfo: {
  username: '0E:51:12:7F:A7:70',
  port: 38268,
  pincode: '***-**-***',
  category: 2,
  bind: [ 'eth0', [length]: 1 ],
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: undefined
}).
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] didFinishLaunching
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, requesting authorization state.
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] prepareAccessory
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] prepareInformationService
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] prepareTelevisionService
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] prepareSpeakerService
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] prepareInputServices
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, requesting authorization state.
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] prepareAccessory
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] prepareInformationService
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] prepareTelevisionService
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] prepareSpeakerService
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] prepareInputServices
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, requesting web api console data.
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, requesting installed apps from your Xbox Live account.
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, requesting web api console data.
[1/5/2023, 12:42:01 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, requesting installed apps from your Xbox Live account.
[1/5/2023, 12:42:01 PM] Homebridge v1.6.0 (HAP v0.11.0) (homebridge-xbox-tv) is running on port 38268.
[1/5/2023, 12:42:01 PM] Publishing external accessory (name: Lounge Xbox, publishInfo: {
  username: 'xxxx',
  pincode: '***-**-***',
  category: 35,
  port: undefined,
  bind: [ 'eth0', [length]: 1 ],
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: undefined
}).
[1/5/2023, 12:42:01 PM] Publishing external accessory (name: Office Xbox, publishInfo: {
  username: 'xxxx',
  pincode: '***-**-***',
  category: 35,
  port: undefined,
  bind: [ 'eth0', [length]: 1 ],
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: undefined
}).
[1/5/2023, 12:42:01 PM] Lounge Xbox 3F59 is running on port 37963.
[1/5/2023, 12:42:01 PM] Please add [Lounge Xbox 3F59] manually in Home app. Setup Code: 169-68-098
[1/5/2023, 12:42:01 PM] Office Xbox 033D is running on port 33287.
[1/5/2023, 12:42:01 PM] Please add [Office Xbox 033D] manually in Home app. Setup Code: 169-68-098
[1/5/2023, 12:42:02 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, requesting device info from Web API.
[1/5/2023, 12:42:02 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, requesting device info from Web API.
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, get Power state successful: OFF
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, get Input successful, input: Screensaver, reference: Xbox.IdleScreen_8wekyb3d8bbwe!Xbox.IdleScreen.Application, product Id: Screensaver
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, get Mute successful: ON
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, get Volume successful: 0
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] This plugin threw an error from the characteristic 'Current Media State': Unhandled error thrown inside read handler for characteristic: a is not defined. See https://homebridge.io/w/JtMGR for more info.
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] ReferenceError: a is not defined
    at CurrentMediaState.getHandler (/homebridge/node_modules/homebridge-xbox-tv/index.js:694:138)
    at CurrentMediaState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2399:32)
    at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)
    at Object.next (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:125:57)
    at /homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:118:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:114:16)
    at CurrentMediaState.Characteristic.handleGetRequest (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:736:24)
    at CurrentMediaState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3076:22)
    at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] This plugin threw an error from the characteristic 'Target Media State': Unhandled error thrown inside read handler for characteristic: a is not defined. See https://homebridge.io/w/JtMGR for more info.
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] ReferenceError: a is not defined
    at TargetMediaState.getHandler (/homebridge/node_modules/homebridge-xbox-tv/index.js:702:137)
    at TargetMediaState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2399:32)
    at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)
    at Object.next (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:125:57)
    at /homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:118:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:114:16)
    at TargetMediaState.Characteristic.handleGetRequest (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:736:24)
    at TargetMediaState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3076:22)
    at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, get Power state successful: OFF
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, get Input successful, input: Screensaver, reference: Xbox.IdleScreen_8wekyb3d8bbwe!Xbox.IdleScreen.Application, product Id: Screensaver
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, get Mute successful: ON
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, get Volume successful: 0
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] This plugin threw an error from the characteristic 'Current Media State': Unhandled error thrown inside read handler for characteristic: a is not defined. See https://homebridge.io/w/JtMGR for more info.
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] ReferenceError: a is not defined
    at CurrentMediaState.getHandler (/homebridge/node_modules/homebridge-xbox-tv/index.js:694:138)
    at CurrentMediaState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2399:32)
    at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)
    at Object.next (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:125:57)
    at /homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:118:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:114:16)
    at CurrentMediaState.Characteristic.handleGetRequest (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:736:24)
    at CurrentMediaState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3076:22)
    at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] This plugin threw an error from the characteristic 'Target Media State': Unhandled error thrown inside read handler for characteristic: a is not defined. See https://homebridge.io/w/JtMGR for more info.
[1/5/2023, 12:42:03 PM] [homebridge-xbox-tv] ReferenceError: a is not defined
    at TargetMediaState.getHandler (/homebridge/node_modules/homebridge-xbox-tv/index.js:702:137)
    at TargetMediaState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2399:32)
    at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)
    at Object.next (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:125:57)
    at /homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:118:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:114:16)
    at TargetMediaState.Characteristic.handleGetRequest (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:736:24)
    at TargetMediaState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3076:22)
    at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)

Output after sending power on to the wireless console:

[1/5/2023, 12:52:45 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, Send power On.
[1/5/2023, 12:52:49 PM] [homebridge-xbox-tv] Error: 
    at Accessory.sendCharacteristicWarning (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:2026:14)
    at Timeout._onTimeout (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1727:14)
    at listOnTimeout (node:internal/timers:564:17)
    at processTimers (node:internal/timers:507:7)
[1/5/2023, 12:52:49 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, set Power successful: ON
[1/5/2023, 12:53:00 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, Power On failed, please try again.

Output after manually powering the wireless console:

[1/5/2023, 12:54:27 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, Connect success.
[1/5/2023, 12:54:27 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, Connected.
[1/5/2023, 12:54:27 PM] [homebridge-xbox-tv] -------- Office Xbox --------
[1/5/2023, 12:54:27 PM] [homebridge-xbox-tv] Manufacturer: Microsoft
[1/5/2023, 12:54:27 PM] [homebridge-xbox-tv] Model: Xbox One
[1/5/2023, 12:54:27 PM] [homebridge-xbox-tv] Serialnr: FD00BB36FE63BFF2
[1/5/2023, 12:54:27 PM] [homebridge-xbox-tv] Firmware: 10.0.22621
[1/5/2023, 12:54:27 PM] [homebridge-xbox-tv] ----------------------------------
[1/5/2023, 12:54:44 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, Disconnected.
[1/5/2023, 12:54:57 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, Connect success.
[1/5/2023, 12:54:57 PM] [homebridge-xbox-tv] Device: 192.168.1.23 Office Xbox, Connected.
[1/5/2023, 12:54:57 PM] [homebridge-xbox-tv] -------- Office Xbox --------
[1/5/2023, 12:54:57 PM] [homebridge-xbox-tv] Manufacturer: Microsoft
[1/5/2023, 12:54:57 PM] [homebridge-xbox-tv] Model: Xbox One
[1/5/2023, 12:54:57 PM] [homebridge-xbox-tv] Serialnr: FD00BB36FE63BFF2
[1/5/2023, 12:54:57 PM] [homebridge-xbox-tv] Firmware: 10.0.22621
[1/5/2023, 12:54:57 PM] [homebridge-xbox-tv] ----------------------------------

Output after sending power on to wired console:

[1/5/2023, 1:09:32 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, Send power On.
[1/5/2023, 1:09:35 PM] [homebridge-xbox-tv] Error: 
    at Accessory.sendCharacteristicWarning (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:2026:14)
    at Timeout._onTimeout (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1727:14)
    at listOnTimeout (node:internal/timers:564:17)
    at processTimers (node:internal/timers:507:7)
[1/5/2023, 1:09:36 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, set Power successful: ON
[1/5/2023, 1:09:43 PM] [homebridge-webos-tv] [Office TV] Connecting to TV
[1/5/2023, 1:09:47 PM] [homebridge-xbox-tv] Device: 192.168.1.24 Lounge Xbox, Power On failed, please try again.

Manually powering the wired console does not produce any log entries

aor980 commented 1 year ago

Still not working. My console, Series X, is wired

Slug-Life commented 1 year ago

It’s not resolved for me either.