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
72.1k stars 30.18k forks source link

Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device #100121

Open blamaz opened 1 year ago

blamaz commented 1 year ago

The problem

I'm still getting this error.

Logger: homeassistant.components.roku.coordinator Source: helpers/update_coordinator.py:235 Integration: Roku (documentation, issues) First occurred: September 10, 2023 at 11:23:56 PM (1 occurrences) Last logged: September 10, 2023 at 11:23:56 PM Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device

What version of Home Assistant Core has the issue?

2023.9.1

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?

Home Assistant 2023.9.1
Supervisor 2023.08.3
Operating System 10.5
Frontend 20230908.0 - latest

Additional information

This error is happening on both of my TCL Roku TV when turn off manually or by an automation (plex media player idle timer). I can ping both Roku TV even if they're off, both TV have 'Fast TV Start' option enabled, i'm on a wired network and ip reservations fare set on the router. I do have AdGuard home blocking useless Roku DNS requests. I've enabled Roku debug logging and will add any valuable log info whenever it happen again.

home-assistant[bot] commented 1 year 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.

(message by CodeOwnersMention)


roku documentation roku source (message by IssueLinks)

thenakuls commented 1 year ago

Also had this issue. Removed the device and added it again, after getting the IP address (in case it changed) and it seems to be working

Unvented6195 commented 11 months ago

Also experiencing this with home assistant container.

Reloading the integration fails.

Adding device to integration using the same (static) IP results in the message “Device already configured” After this; however the integration can reload and work.

issue-triage-workflows[bot] commented 8 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

blamaz commented 8 months ago

Issue still present

Shredder5262 commented 5 months ago

Having this issue with my roku TV

Core 2024.4.2 Supervisor 2024.04.0 Operating System 12.2 Frontend 20240404.1

`2024-04-14 14:58:57.720 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140657511515200] Invalid response from Roku API Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/roku/helpers.py", line 43, in wrapper await func(self, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/components/roku/media_player.py", line 481, in async_select_source await self.coordinator.roku.launch(appl.app_id) File "/usr/local/lib/python3.12/site-packages/rokuecp/rokuecp.py", line 336, in launch await self._request(f"launch/{app_id}?{encoded}", method="POST", encoded=True) File "/usr/local/lib/python3.12/site-packages/rokuecp/rokuecp.py", line 174, in _request raise RokuError( rokuecp.exceptions.RokuError: ('HTTP 503', {'content-type': '', 'message': '', 'status-code': 503})

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 971, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1043, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/scene/init.py", line 116, in _async_activate await self.async_activate(**kwargs) File "/usr/src/homeassistant/homeassistant/components/homeassistant/scene.py", line 370, in async_activate await async_reproduce_state( File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 70, in async_reproduce_state await asyncio.gather( File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 64, in worker await platform.async_reproduce_states( File "/usr/src/homeassistant/homeassistant/components/media_player/reproduce_state.py", line 145, in async_reproduce_states await asyncio.gather( File "/usr/src/homeassistant/homeassistant/components/media_player/reproduce_state.py", line 91, in _async_reproduce_states await call_service(SERVICE_SELECT_SOURCE, [ATTR_INPUT_SOURCE]) File "/usr/src/homeassistant/homeassistant/components/media_player/reproduce_state.py", line 60, in call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 971, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1043, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/roku/helpers.py", line 52, in wrapper raise HomeAssistantError("Invalid response from Roku API") from error`

rwelsh09 commented 5 months ago

I too receive this error:

Logger: homeassistant.components.roku.coordinator
Source: helpers/update_coordinator.py:347
integration: Roku (documentation, issues)

Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device

Let me know if I can assist in resolving the issue.

Thanks!

dinan5 commented 2 months ago

Same here. Thanks!