grzegorz914 / homebridge-xbox-tv

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

Not turning on or authorising #113

Closed outsharded closed 2 years ago

outsharded commented 2 years ago

My Xbox, when I switch on from HomeKit, the tile lights up but the xbox doesn't start (once on HomeKit can turn off). Also when I attempt to authenticate in Homebridge UI I get the error: Authentication and Token File saved error. How can I fix this?

grzegorz914 commented 2 years ago

Are you configure your console to allow access from remote client? Token file saved error probably wrog permission folder. Please enable debug mode, restart plugin and get the complete log.

outsharded commented 2 years ago

Is this it?

[28/11/2021, 16:12:08] [HB Supervisor] Restarting Homebridge... [28/11/2021, 16:12:08] [HB Supervisor] Starting Homebridge with extra flags: -I [28/11/2021, 16:12:08] [HB Supervisor] Started Homebridge v1.3.8 with PID: 5728 [28/11/2021, 16:12:09] Loaded config.json with 1 accessories and 4 platforms. [28/11/2021, 16:12:09] Loaded 1 cached accessories from cachedAccessories. [28/11/2021, 16:12:09] --- [28/11/2021, 16:12:10] Loaded plugin: homebridge-config-ui-x@4.41.3 [28/11/2021, 16:12:10] Registering platform 'homebridge-config-ui-x.config' [28/11/2021, 16:12:10] --- [28/11/2021, 16:12:11] Loaded plugin: homebridge-display@2.1.2 [28/11/2021, 16:12:11] Registering platform 'homebridge-display.homebridge-display' [28/11/2021, 16:12:11] --- [28/11/2021, 16:12:11] Loaded plugin: homebridge-ring@9.23.0 [28/11/2021, 16:12:11] Registering platform 'homebridge-ring.Ring' [28/11/2021, 16:12:11] --- [28/11/2021, 16:12:11] Loaded plugin: homebridge-rpi-controller@2.1.9 [28/11/2021, 16:12:11] Registering accessory 'homebridge-rpi-controller.RaspberryPi' [28/11/2021, 16:12:11] --- [28/11/2021, 16:12:11] Loaded plugin: homebridge-ws@2.5.14 [28/11/2021, 16:12:11] Registering platform 'homebridge-ws.Lib' [28/11/2021, 16:12:11] Registering platform 'homebridge-ws.WS' [28/11/2021, 16:12:11] --- [28/11/2021, 16:12:12] Loaded plugin: homebridge-xbox-tv@2.0.0-beta.401 [28/11/2021, 16:12:12] Registering platform 'homebridge-xbox-tv.XboxTv' [28/11/2021, 16:12:12] --- [28/11/2021, 16:12:12] Loading 4 platforms... [28/11/2021, 16:12:12] [Config] Initializing config platform... [28/11/2021, 16:12:12] [Config] Running in Service Mode [28/11/2021, 16:12:12] [homebridge-display] Initializing homebridge-display platform... [28/11/2021, 16:12:12] [XboxTv] Initializing XboxTv platform... [28/11/2021, 16:12:12] [Weather] Initializing WS platform... [28/11/2021, 16:12:12] [Weather] homebridge-ws v2.5.14, node v16.13.0, homebridge v1.3.8, homebridge-lib v5.1.19 [28/11/2021, 16:12:12] Loading 1 accessories... [28/11/2021, 16:12:12] [RaspberryPi] Initializing RaspberryPi accessory... [28/11/2021, 16:12:13] [XboxTv] ----- Device: 192.168.0.65 Xbox Series S start authentication process ----- [28/11/2021, 16:12:13] [XboxTv] 1. Open the URI: ** [28/11/2021, 16:12:13] [XboxTv] 2. Login to Your Xbox Live account and accept permission for this app. [28/11/2021, 16:12:13] [XboxTv] 3. After accept permission copy the part after the (?code=) from the response URL. [28/11/2021, 16:12:13] [XboxTv] 4. Paste it in to the plugin config, Settings >> Xbox Live and Web Api >> Web Api Token. [28/11/2021, 16:12:13] [XboxTv] 5. Save and restart the plugin again, done. [28/11/2021, 16:12:13] [XboxTv] ---------------------------------------------------------------------------------------- [28/11/2021, 16:12:13] [XboxTv] Device: 192.168.0.65 Xbox Series S, trying to authenticate with Web Api Token... ***** Setup Payload: X-HM://0024PR1HN5VXD Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ ********│     
└────────────┘     

[28/11/2021, 16:12:13] [XboxTv] Device: 192.168.0.65 Xbox Series S, Server listening: 0.0.0.0:37305, start discovering. [28/11/2021, 16:12:13] Homebridge v1.3.8 (HAP v0.9.7) (Homebridge 5FD3) is running on port 51330. [28/11/2021, 16:12:13] Xbox Series S 9A20 is running on port 34779. [28/11/2021, 16:12:13] Please add [Xbox Series S 9A20] manually in Home app. Setup Code: 752-78-667 [28/11/2021, 16:12:13] [Weather] hardware: Raspberry Pi 4B 1.1 (1GB) [28/11/2021, 16:12:13] [Weather] os: Raspbian GNU/Linux 10 (buster) [28/11/2021, 16:12:13] [Weather] restored 1 accessories from cache [28/11/2021, 16:12:14] [XboxTv] Device: 192.168.0.65 Xbox Series S, get Power state successful: OFF [28/11/2021, 16:12:14] [Weather] London, GB [2643743]: 51.5085°N, 0.1257°W [28/11/2021, 16:12:14] [XboxTv] Device: 192.168.0.65 Xbox Series S, get Power state successful: OFF [28/11/2021, 16:12:16] [Weather] London, GB Weather: set Observation Time from "Sun Nov 28 2021 16:09:23" to "Sun Nov 28 2021 16:12:15" [28/11/2021, 16:12:18] [XboxTv] Device: 192.168.0.65 Xbox Series S, get Power state successful: OFF [28/11/2021, 16:12:18] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:12:23] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:12:28] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:12:33] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:12:38] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:12:43] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:12:48] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:12:53] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:12:58] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:03] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:08] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:13] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:18] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:23] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:28] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:33] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:38] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:43] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:48] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:53] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:13:58] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:14:03] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:14:08] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:14:13] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:14:18] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:14:23] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:14:28] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:14:33] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:14:38] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes. [28/11/2021, 16:14:43] [XboxTv] Device: 192.168.0.65 Xbox Series S, Socket send 16 bytes.

grzegorz914 commented 2 years ago

I the log I don’t see that you press the power on in the Home app. Is your console configured as here described: https://github.com/grzegorz914/homebridge-xbox-tv#configuration-console

outsharded commented 2 years ago

yes

grzegorz914 commented 2 years ago

Try to power on from Home app and get the log. Check also that you set correct LiveID in settings.