grzegorz914 / homebridge-xbox-tv

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

Windows Support? #165

Closed AaqilRazak closed 1 year ago

AaqilRazak commented 1 year ago

After install, plugin finds the xbox and everything is well. I would like to use Web API to control and have more features but the buttons in the authorization menu do not work.

My HomeBridge install is on a Windows machine It is running Node.js 18.14.1

I've attached a picture of the error message for both of the buttons:

Screenshot 2023-03-15 at 1 39 25 AM Screenshot 2023-03-15 at 1 43 09 AM

Thanks!

grzegorz914 commented 1 year ago

show your config please

grzegorz914 commented 1 year ago

try 2.8.10-beta.0 and let me know

AaqilRazak commented 1 year ago

show your config please

"devices": [ { "name": "Xbox Series X", "host": "192.168.4.58", "xboxLiveId": "Manually Omitted*", "webApiControl": false, "getInputsFromDevice": false, "filterGames": false, "filterApps": false, "filterSystemApps": false, "filterDlc": false, "sensorPower": false, "sensorInput": false, "sensorScreenSaver": false, "webApiPowerOnOff": false, "enableDebugMode": false, "disableLogInfo": false, "disableLogDeviceInfo": false, "enableMqtt": false, "mqttDebug": false, "mqttAuth": false } ], "platform": "XboxTv", "_bridge": { "username": "0E:6A:11:76:45:33", "port": 37659

AaqilRazak commented 1 year ago

try 2.8.10-beta.0 and let me know

I also noticed while testing that it fetches the status of the console properly, but the actually buttons to trigger the power don't seem to.

For example, here is what I see in the logs. In person, the xbox doesn't seem to get/respond to any command. [3/15/2023, 1:57:05 AM] [homebridge-xbox-tv] Device: 192.168.4.58 Xbox Series X, Send power Off. [3/15/2023, 1:57:08 AM] [homebridge-xbox-tv] Device: 192.168.4.58 Xbox Series X, Disconnected. [3/15/2023, 1:57:08 AM] [homebridge-xbox-tv] Device: 192.168.4.58 Xbox Series X, set Power: OFF [3/15/2023, 1:57:18 AM] [homebridge-xbox-tv] Device: 192.168.4.58 Xbox Series X, Connected. [3/15/2023, 1:57:18 AM] [homebridge-xbox-tv] -------- Xbox Series X -------- [3/15/2023, 1:57:18 AM] [homebridge-xbox-tv] Manufacturer: Microsoft [3/15/2023, 1:57:18 AM] [homebridge-xbox-tv] Model: Model Name [3/15/2023, 1:57:18 AM] [homebridge-xbox-tv] Serialnr: F4000D544BC26195 [3/15/2023, 1:57:18 AM] [homebridge-xbox-tv] Firmware: 10.0.22621 [3/15/2023, 1:57:18 AM] [homebridge-xbox-tv] ---------------------------------- [3/15/2023, 1:57:54 AM] [homebridge-xbox-tv] Device: 192.168.4.58 Xbox Series X, Disconnected. [3/15/2023, 1:58:09 AM] [homebridge-lgwebos-tv] Device: 192.168.4.56 LG OLED, set Power: OFF [3/15/2023, 1:58:11 AM] [homebridge-lgwebos-tv] Device: 192.168.4.56 LG OLED, Disconnected. [3/15/2023, 1:58:24 AM] [homebridge-xbox-tv] Device: 192.168.4.58 Xbox Series X, Send power On. [3/15/2023, 1:58:24 AM] [homebridge-xbox-tv] Device: 192.168.4.58 Xbox Series X, set Power: ON [3/15/2023, 1:58:31 AM] [homebridge-xbox-tv] Device: 192.168.4.58 Xbox Series X, set Power: OFF [3/15/2023, 1:58:33 AM] [homebridge-xbox-tv] Device: 192.168.4.58 Xbox Series X, Power On failed, please try again.

I do know that my network is configured fine, I've used similar plugins before. The only thing that changed was that I've recently switched to a windows installation of HomeBridge. That's why I changed the title, hope you don't mind. I will give the beta a shot here and let you know what I see.

Thank you for being so prompt and helpful!

AaqilRazak commented 1 year ago

The new update fixed the Authorization manager! The process is very slick and easy to use.

Unfortunately, I still notice the Xbox not responding to commands. I can confirm that it still responds over HomeAssistant.

grzegorz914 commented 1 year ago

Which command are not working? Please enable debug log in plugin settings and get he log.

grzegorz914 commented 1 year ago

Note, to change inputs need to enable getInputsFromDevice, and webApiControl

grzegorz914 commented 1 year ago

please open new issue if some other functions not working