Xbox One Integration 404 Error

I recently installed the Xbox One integration to simply turn on/off the xbox.

I have instant-on enabled and remote play is enabled.

When I try to use any function in HA I receive the following error message:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/xbox/remote.py:82 
Integration: Home Assistant WebSocket API (documentation, issues) 
First occurred: 8:03:15 PM (2 occurrences) 
Last logged: 8:28:50 PM

[140506499185920] 404, message='Not Found', url=URL('https://xccs.xboxlive.com/commands')
[140506499560304] 404, message='Not Found', url=URL('https://xccs.xboxlive.com/commands')
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 811, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/xbox/remote.py", line 82, in async_turn_off
    await self.client.smartglass.turn_off(self._console.id)
  File "/usr/local/lib/python3.9/site-packages/xbox/webapi/api/provider/smartglass/__init__.py", line 145, in turn_off
    return await self._send_one_shot_command(
  File "/usr/local/lib/python3.9/site-packages/xbox/webapi/api/provider/smartglass/__init__.py", line 397, in _send_one_shot_command
    resp.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1000, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://xccs.xboxlive.com/commands')

Any ideas?

Yeah I get the same too. I assume you’ve seen this issue raised and closed, but it doesn’t fix it. My use case was not significant enough to raise another issue.

I find that if it was “recently” turned off, I can turn it back on, and turning off from on always works. But I wanted to turn it on for a couple of hours now and then to download game updates. So I gave up.

I have the same problem ? has anyone found a solution ?

Happens with the Series X as well. Oh well.

Hi Guys , I am experiencing the same issue on xbox series x. Does anyone know if it is being looked at