home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.14k stars 31.12k forks source link

Roku 403 errors, cannot reconnect #131969

Open genebean opened 2 days ago

genebean commented 2 days ago

The problem

I saw a timeout error kinda like in #100121 in the logs and on the device itself I saw an http 403 response. I tried to remove the TV and re-add it and now it juts fails to connect. I enabled debug logging for the roku integration and was able to capture the error while trying to re-add my TV (pasted below).

My other two Roku devices seem to be working still. The problematic one is a Hisense model 6Series-65 with hardware ID G212X.

What version of Home Assistant Core has the issue?

core-2024.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

roku

Link to integration documentation on our website

https://www.home-assistant.io/integrations/roku

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-11-30 14:28:01.617 DEBUG (MainThread) [homeassistant.components.roku.config_flow] Roku Error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/roku/config_flow.py", line 78, in async_step_user
    info = await validate_input(self.hass, user_input)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/roku/config_flow.py", line 40, in validate_input
    device = await roku.update()
             ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rokuecp/rokuecp.py", line 286, in update
    results = await asyncio.gather(*futures)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rokuecp/rokuecp.py", line 432, in _get_apps
    res = await self._request("/query/apps")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rokuecp/rokuecp.py", line 174, in _request
    raise RokuError(
rokuecp.exceptions.RokuError: ('HTTP 403', {'content-type': 'text/plain; charset="utf-8"', 'message': 'ECP command not allowed in Limited mode.', 'status-code': 403})

Additional information

No response

home-assistant[bot] commented 2 days ago

Hey there @ctalkington, mind taking a look at this issue as it has been labeled with an integration (roku) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `roku` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign roku` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


roku documentation roku source (message by IssueLinks)