@bmutari wrote:
Since updating to Home Assistant 0.110, I am getting a timeout error when calling media_player.turn_on and media_player.turn_off services on my Roku Streaming Stick+. When I call either of these services, the Roku does actually turn on and off as does my TV by way of HMDI-CEC I assume, however Home Assistant is showing a timeout error. This is a problem because I use these service calls in NodeRED flows and the timeout error is halting the flow.
My setup is HA 0.110.3 running in docker on ubuntu. My Roku stick is running firmware 9.2. Below is the log after a HA clean restart and then calling the media_play.turn_on service via the developer tab.
Log Details (ERROR) Logger: homeassistant.components.websocket_api.http.connection.140057026573200 Source: components/roku/media_player.py:166 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 10:29:58 AM (1 occurrences) Last logged: 10:29:58 AM Timeout occurred while connecting to device Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/rokuecp/rokuecp.py", line 72, in _request method, url, data=data, params=params, headers=headers, File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 504, in _request await resp.start(conn) File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 847, in start message, payload = await self._protocol.read() # type: ignore # noqa File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 591, in read await self._waiter concurrent.futures._base.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/rokuecp/rokuecp.py", line 72, in _request method, url, data=data, params=params, headers=headers, File "/usr/local/lib/python3.7/site-packages/async_timeout/__init__.py", line 45, in __exit__ self._do_exit(exc_type) File "/usr/local/lib/python3.7/site-packages/async_timeout/__init__.py", line 92, in _do_exit raise asyncio.TimeoutError concurrent.futures._base.TimeoutError 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 130, in handle_call_service connection.context(msg), File "/usr/src/homeassistant/homeassistant/core.py", line 1253, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1288, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service self._platforms.values(), func, call, required_features File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/roku/media_player.py", line 166, in async_turn_on await self.coordinator.roku.remote("poweron") File "/usr/local/lib/python3.7/site-packages/rokuecp/rokuecp.py", line 203, in remote await self._request(f"keypress/{VALID_REMOTE_KEYS[key_lower]}", method="POST") File "/usr/local/lib/python3.7/site-packages/rokuecp/rokuecp.py", line 77, in _request ) from exception rokuecp.exceptions.RokuConnectionError: Timeout occurred while connecting to device
I have tried deleting the and re-adding the device, no luck.
Any help or suggestion would be greatly appreciated!
Posts: 1
Participants: 1