grzegorz914 / homebridge-xbox-tv

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

Authorization buttons do nothing #157

Closed WelshMcSpicy closed 1 year ago

WelshMcSpicy commented 1 year ago

Hi, Using Homebridge/UI v 1.6.0 and the latest XBOX TV plugin. Installed it as a child. Edited the JSON to include XBOX Series X IP Address. In the Authorization screen, Name & Host IP are displayed. Web Api Token is blank. Clicking any of the buttons (except save/close) does nothing.

shanemcw commented 1 year ago

Getting the same behavior. Downgraded to a previous version authorize then upgraded again. Seeing other issues with latest builds while installing from scratch (plugin, unpaired, etc.) (will create a new ticket)

WelshMcSpicy commented 1 year ago

Got it working. Reinstalled and, oddly - was advised of an upgrade. One installed, I entered the IP and XBOX Device ID from the initial setup instead of editing the JSON. Now the XBOX is recognized. Just have to figure out the buttons necessary to open/run specific games.

WelshMcSpicy commented 1 year ago

Update: The logs show positive things like, "Device XBOX Connected". However, the Authorization GUI is still not showing a Web Api Token and none of the authorization buttons are responding.

grzegorz914 commented 1 year ago

Connected it’s not the same as Authorized. You need paste Web Api Token itself after generate it. Use Authorization manager to Authorize Your Console. To get it worked need to ad IP Adresse and xboxLiveId in plugin settings first.

shanemcw commented 1 year ago

Same issue with me; authorization buttons are unresponsive on a fresh plugin install after input of IP address and LiveID —after about version 2.5. Downgrading to version 2.50 then the Authorization Manager works as documented.

WelshMcSpicy commented 1 year ago

Connected it’s not the same as Authorized. You need paste Web Api Token itself after generate it. Use Authorization manager to Authorize Your Console. To get it worked need to ad IP Adresse and xboxLiveId in plugin settings first.

I have already added IP address and xboxliveid in the settings. However, the Authorize buttons do nothing. Only SAVE and CLOSE work.

WelshMcSpicy commented 1 year ago

Update. Thanks @shanemcw - I downgraded to v 2.5, and the authorization buttons are now working.

However, after AUTHORIZE CONSOLE, my browser gets redirected to "http://localhost:8080/auth/callback?code=M.R3_BAY.1e17534e-7fd5-d13f-0caa-33a66342a481" and gives me "This site can’t be reachedlocalhost refused to connect". Tried it on both Safari and Chrome. Same result.

grzegorz914 commented 1 year ago

You need copy this M.R3_BAY.1e17534e-7fd5-d13f-0caa-33a66342a481 and paste as Web Apoi Token.

WelshMcSpicy commented 1 year ago

You need copy this M.R3_BAY.1e17534e-7fd5-d13f-0caa-33a66342a481 and paste as Web Apoi Token.

Thanks. Did this and restarted. I get the error below. Is the token I generated from authorization with v 2.5 still ok when I upgrade to 2.8.1?

[2/20/2023, 1:49:53 PM] [homebridge-xbox-tv] Device: 192.168.1.47 XBOX SERIES X, check authorization state error: No oauth token found. Use authorization manager first., recheck in 60se.

grzegorz914 commented 1 year ago

You need use authorization manager, and the process need to be successfully done. Paste Web Api Toke into the Config is nothing. Install 2.I.1 and go through the process, are only 3 steps.

WelshMcSpicy commented 1 year ago

You need use authorization manager, and the process need to be successfully done. Paste Web Api Toke into the Config is nothing. Install 2.I.1 and go through the process, are only 3 steps.

Not sure which version you mean. However, installed 2.8.0 since 2.8.1 authorization wasn't working. AUthorization worked. Web Api token was put into the right field. Now getting: [2/21/2023, 7:33:25 AM] [homebridge-xbox-tv] Device: 192.168.1.47 XBOX SERIES X, Mute: ON [2/21/2023, 7:34:22 AM] [homebridge-xbox-tv] Device: 192.168.1.47 XBOX SERIES X, check authorization state error: No oauth token found. Use authorization manager first., recheck in 60se.

grzegorz914 commented 1 year ago

Record video how do you authorize the console please

WelshMcSpicy commented 1 year ago

Here's a DropBox link to the recording: https://www.dropbox.com/s/l8s9nlyen0c0xm9/Homebridge.mp4?dl=0

grzegorz914 commented 1 year ago

You have missing 1 step, press activate console button after paste token. You can update to 2.8.2 where authorization manager is more simply. Only 1 button to authorize console.

  1. Press clear token button
  2. Press Start authorization button
  3. Paste token
  4. Press activate console button
  5. Done
WelshMcSpicy commented 1 year ago

Thanks. That worked. Appreciate the patience.