Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power status not always correct #11

Open
manonstreet opened this issue Mar 1, 2020 · 0 comments
Open

Power status not always correct #11

manonstreet opened this issue Mar 1, 2020 · 0 comments

Comments

@manonstreet
Copy link

manonstreet commented Mar 1, 2020

If an Xbox is powered off using this custom component, the device does in fact shutdown; however the component incorrectly shows that that it is still powered on. Additionally, while in this state, clicking power again does not turn the device back on since its trying to power off (again) as opposed to power on.

However if an Xbox is powered off via the REST API directly:
http://:5557/device//poweroff

Then the component correctly updates its status to off.

When using the component to power off, the add-on logs show the following:

127.0.0.1 - - [2020-03-07 15:14:06] "GET /device//poweroff HTTP/1.1" 200 125 0.003795
127.0.0.1 - - [2020-03-07 15:14:06] "GET /versions HTTP/1.1" 200 220 0.018989
127.0.0.1 - - [2020-03-07 15:14:06] "GET /auth HTTP/1.1" 200 5804 0.001267
[2020-03-07 15:14:06,637] DEBUG in protocol: Received DiscoverResponse from
[2020-03-07 15:14:06,638] DEBUG in protocol: Received DiscoverResponse from
[2020-03-07 15:14:07,144] DEBUG in protocol: Received DiscoverResponse from
[2020-03-07 15:14:07,147] DEBUG in protocol: Received DiscoverResponse from
[2020-03-07 15:14:07,649] DEBUG in protocol: Received DiscoverResponse from
[2020-03-07 15:14:07,654] DEBUG in protocol: Received DiscoverResponse from
[2020-03-07 15:14:08,150] DEBUG in protocol: Received DiscoverResponse from
[2020-03-07 15:14:08,152] DEBUG in protocol: Received DiscoverResponse from
[2020-03-07 15:14:08,657] DEBUG in protocol: Received DiscoverResponse from
[2020-03-07 15:14:08,660] DEBUG in protocol: Received DiscoverResponse from
[2020-03-07 15:14:09,161] WARNING in consolewrap: Failed to import NanoManager (depends on xbox-smartglass-nano). /nano endpoint will not work!
127.0.0.1 - - [2020-03-07 15:14:09] "GET /device?addr= HTTP/1.1" 200 513 2.529673
127.0.0.1 - - [2020-03-07 15:14:09] "GET /device/ HTTP/1.1" 200 491 0.001063
127.0.0.1 - - [2020-03-07 15:14:09] "GET /auth HTTP/1.1" 200 5804 0.001106
[2020-03-07 15:14:09,181] DEBUG in protocol: Sending ConnectRequest to
And the last message repeats forever as it tries to connect not realizing that the device is already off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant