grzegorz914 / homebridge-xbox-tv

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

Problem with Config UI, nothing works anymore #160

Closed Seexelas closed 1 year ago

Seexelas commented 1 year ago

Hi,

As told in another post, since a few updates, nothing works anymore. I'm on Proxmox, with latest Homebridge and Node.JS and plugin vers. 2.8.3.

I just reloaded a fresh install with no backup restore and with just Xbox plugin installed, I have this : (Chrome or Edge same problem).

Config UI of plugin is broken :

image

If I put the config manually :

"devices": [ { "name": "Xbox", "host": "192.168.1.2", "xboxLiveId": "FXXXXXXXXXXX", "webApiControl": true, "getInputsFromDevice": false, "filterGames": false, "filterApps": false, "filterSystemApps": false, "filterDlc": false, "sensorPower": false, "sensorInput": false, "sensorScreenSaver": false, "enableDebugMode": false, "disableLogInfo": false, "disableLogDeviceInfo": false, "enableMqtt": false, "mqttDebug": false, "mqttAuth": false } ], "platform": "XboxTv"

I have this :

When trying to authorize :

image

Or clean the token :

image

Without the Token, Xbox is reponding to Off / On command from Homebridge, or displaying where it is (Dashboard, Screensaver),

Also, each time I click on config for the plugin and I'm not editing anything :

image

Which is not normal.

I don't know which log I must retrieve for you ?

Many thanks for the help :)

grzegorz914 commented 1 year ago

Please try 2.8.4 beta and let me know, open app after clean install need to be fixed now

Seexelas commented 1 year ago

It's way better, thanks.

But webapi authorization not working : (plugin and config were removed and re added)

image
grzegorz914 commented 1 year ago

Regarding clear web api token error I think app do not have permission to /var/lib/homebridge/xboxTv folder or permission are broken

Seexelas commented 1 year ago

Weird because I did a full new wm install with iso of homebridge.

Seexelas commented 1 year ago
image
grzegorz914 commented 1 year ago

You don't have permission to the folder, check possibility write to the /homebridge/xboxTv/ folder

Seexelas commented 1 year ago
image

It's good no ? I don't see my issue :S sorry

grzegorz914 commented 1 year ago

Very strange, I cant this reproduce on my side.

grzegorz914 commented 1 year ago

any data in tokenFile?

Seexelas commented 1 year ago

It seems empty, I deleted it and nothing changes. When I reboot instances, file is recreated.

image
grzegorz914 commented 1 year ago

Its correct, the file contain data after authorization done, If You start authorization in which step the error occurred?

Seexelas commented 1 year ago

If I remove the file (or clean plugin install), I open the Config GUI, put the Xbox Name, IP, live ID. Save and restart. I open the config UI again, and then start authorization and I have this error :

image

In the WebAPI plugin section :

Email + Password is inserted.

Seexelas commented 1 year ago

I found my WebApi token in an old backup.

When I insert it into the configuration and restart : Homebridge says no token.

If I remove the file manually and reboot : the same error.

grzegorz914 commented 1 year ago

email und password can be empty at this moment will be used in future, are you paste correct Live ID? from console settings?

Seexelas commented 1 year ago

Yes, so I managed to get it working... so steps :

I don't see that's ok in the logs, but I don't see anymore any errors.

The authToken_19216812 file is still empty though

grzegorz914 commented 1 year ago

then is no authorized, try beta 18 and get the output, I have added some debug more

Seexelas commented 1 year ago

It's installed, what do you need ?

Seexelas commented 1 year ago

I don't know what you changed, but now authToken_19216812 is populated :

image

Seexelas commented 1 year ago

But now :

image image

Everything is setup right :S

grzegorz914 commented 1 year ago

Try 2.8.5-beta.0 and let me know

Seexelas commented 1 year ago

Better, but still not authorized :

image
grzegorz914 commented 1 year ago

Try beta.1

Seexelas commented 1 year ago

Yes ! Thanks so much.

It seems to work properly now :)

There is just a bug when I select settings it goes to the dashboard.

Many thanks

grzegorz914 commented 1 year ago

It’s not a bug, settings and some other inputs do not contain data to be set, In this case always spring to the dashboard but if you go t’o settings will display settings. So I close this as resolved.