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

webostv media_player took longer than scheduled update Interval #43349

Closed
rapi3 opened this issue Nov 18, 2020 · 8 comments
Closed

webostv media_player took longer than scheduled update Interval #43349

rapi3 opened this issue Nov 18, 2020 · 8 comments

Comments

@rapi3
Copy link

rapi3 commented Nov 18, 2020

This is a reopening of webostv media_player took longer than scheduled update Interval #6542 as it is not fixed 3 years later

Home Assistant release: 0.117.6 / HassOS 4.16

Component/platform: webostv media_player

Description of problem: When the LG TV is OFF or ON, webostv media player can't be used until HA restart.

@frenck
Copy link
Member

frenck commented Nov 19, 2020

Hi there,

Thanks for opening up an issue. When creating an issue, an issue template is presented. It looks like you've (partly) removed it. This causes your issue report to be incomplete.

Please edit your issue to have the full issue template back again and provide as much of the requested data as possible. Without it, we won't be able to help you.

Thanks already! 👍

@majorsl
Copy link

majorsl commented Nov 21, 2020

Hope you don't mind, but I'm having a very similar issue and created an issue with the requested template information from my system.

@rapi3
Copy link
Author

rapi3 commented Nov 21, 2020

Perfect, exactly the problem I am experiencing with 2x LG Tv.

p.s.
any chance to restart webostv component without the need to reboot HA ?

@majorsl
Copy link

majorsl commented Nov 21, 2020

any chance to restart webostv component without the need to reboot HA ?

If there is, I don't know of a way. If it ever is updated to a GUI integration you'll be able to restart it from there. I don't think that's the solution, however. Hopefully some way can be found for the integration to "do whatever it does at HA boot" to check on the TV status.

@rapi3
Copy link
Author

rapi3 commented Nov 21, 2020

For me finding a way to restart webostv only will be like oxygen in this hard times... as dust will hide, close & "fix" the problem again like 3 years ago.

2020-11-21 17:46:33 ERROR (MainThread) [homeassistant.components.webostv.notify] TV unreachable

@github-actions
Copy link

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.

@rapi3
Copy link
Author

rapi3 commented Feb 12, 2021

Problem it is not fixed in latest:
Version core-2021.2.3
Version supervisor-2021.02.6
Operating System Home Assistant OS 5.11

...2021-02-12 08:57:33 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-12 08:57:40 ERROR (MainThread) [homeassistant.util.logging] Exception in async_signal_handler when dispatching 'webostv': ({'entity_id': ['media_player.living_room_tv'], 'button': 'EXIT', 'method': 'async_button'},)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 895, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 971, in read_data_frame
frame = await self.read_frame(max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 1047, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.8/site-packages/websockets/framing.py", line 105, in read
data = await reader(2)
File "/usr/local/lib/python3.8/asyncio/streams.py", line 723, in readexactly
await self._wait_for_data('readexactly')
File "/usr/local/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 848, in _read_ready__data_received
data = self._sock.recv(self.max_size)
OSError: [Errno 113] Host is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 155, in async_signal_handler
await getattr(self, data["method"])(**params)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 92, in wrapper
await func(obj, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 456, in async_button
await self._client.button(button)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 676, in button
await self.input_command(message)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 668, in input_command
await self.input_connection.send(message)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 555, in send
await self.ensure_open()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
2021-02-12 08:57:43 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-12 08:57:44 ERROR (MainThread) [homeassistant.util.logging] Exception in async_signal_handler when dispatching 'webostv': ({'entity_id': ['media_player.living_room_tv'], 'button': 'EXIT', 'method': 'async_button'},)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 895, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 971, in read_data_frame
frame = await self.read_frame(max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 1047, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.8/site-packages/websockets/framing.py", line 105, in read
data = await reader(2)
File "/usr/local/lib/python3.8/asyncio/streams.py", line 723, in readexactly
await self._wait_for_data('readexactly')
File "/usr/local/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 848, in _read_ready__data_received
data = self._sock.recv(self.max_size)
OSError: [Errno 113] Host is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 155, in async_signal_handler
await getattr(self, data["method"])(**params)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 92, in wrapper
await func(obj, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 456, in async_button
await self._client.button(button)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 676, in button
await self.input_command(message)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 668, in input_command
await self.input_connection.send(message)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 555, in send
await self.ensure_open()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
2021-02-12 08:57:53 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-12 08:57:57 ERROR (MainThread) [homeassistant.util.logging] Exception in async_signal_handler when dispatching 'webostv': ({'entity_id': ['media_player.living_room_tv'], 'button': 'DOWN', 'method': 'async_button'},)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 895, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 971, in read_data_frame
frame = await self.read_frame(max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 1047, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.8/site-packages/websockets/framing.py", line 105, in read
data = await reader(2)
File "/usr/local/lib/python3.8/asyncio/streams.py", line 723, in readexactly
await self._wait_for_data('readexactly')
File "/usr/local/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 848, in _read_ready__data_received
data = self._sock.recv(self.max_size)
OSError: [Errno 113] Host is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 155, in async_signal_handler
await getattr(self, data["method"])(**params)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 92, in wrapper
await func(obj, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 456, in async_button
await self._client.button(button)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 676, in button
await self.input_command(message)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 668, in input_command
await self.input_connection.send(message)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 555, in send
await self.ensure_open()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
2021-02-12 08:58:03 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-12 08:58:13 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-12 08:58:14 ERROR (MainThread) [homeassistant.util.logging] Exception in async_signal_handler when dispatching 'webostv': ({'entity_id': ['media_player.living_room_tv'], 'button': 'ENTER', 'method': 'async_button'},)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 895, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 971, in read_data_frame
frame = await self.read_frame(max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 1047, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.8/site-packages/websockets/framing.py", line 105, in read
data = await reader(2)
File "/usr/local/lib/python3.8/asyncio/streams.py", line 723, in readexactly
await self._wait_for_data('readexactly')
File "/usr/local/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 848, in _read_ready__data_received
data = self._sock.recv(self.max_size)
OSError: [Errno 113] Host is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 155, in async_signal_handler
await getattr(self, data["method"])(**params)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 92, in wrapper
await func(obj, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 456, in async_button
await self._client.button(button)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 676, in button
await self.input_command(message)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 668, in input_command
await self.input_connection.send(message)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 555, in send
await self.ensure_open()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
2021-02-12 09:06:43 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-12 09:06:53 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-12 09:07:03 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140617971858544] code = 1006 (connection closed abnormally [internal]), no reason
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 827, in transfer_data
message = await self.read_message()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 895, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 971, in read_data_frame
frame = await self.read_frame(max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 1047, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.8/site-packages/websockets/framing.py", line 105, in read
data = await reader(2)
File "/usr/local/lib/python3.8/asyncio/streams.py", line 723, in readexactly
await self._wait_for_data('readexactly')
File "/usr/local/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 848, in _read_ready__data_received
data = self._sock.recv(self.max_size)
OSError: [Errno 113] Host is unreachable
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 136, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1455, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1490, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 595, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 632, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 92, in wrapper
await func(obj, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 340, in async_volume_up
await self._client.volume_up()
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 868, in volume_up
return await self.request(ep.VOLUME_UP)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 626, in request
await self.command(cmd_type, uri, payload, uid)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 616, in command
await self.connection.send(json.dumps(message))
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 555, in send
await self.ensure_open()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
2021-02-12 09:07:03 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-12 09:07:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140617971858544] code = 1006 (connection closed abnormally [internal]), no reason
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 827, in transfer_data
message = await self.read_message()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 895, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 971, in read_data_frame
frame = await self.read_frame(max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 1047, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.8/site-packages/websockets/framing.py", line 105, in read
data = await reader(2)
File "/usr/local/lib/python3.8/asyncio/streams.py", line 723, in readexactly
await self._wait_for_data('readexactly')
File "/usr/local/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 848, in _read_ready__data_received
data = self._sock.recv(self.max_size)
OSError: [Errno 113] Host is unreachable
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 136, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1455, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1490, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 595, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 632, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 92, in wrapper
await func(obj, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 340, in async_volume_up
await self._client.volume_up()
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 868, in volume_up
return await self.request(ep.VOLUME_UP)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 626, in request
await self.command(cmd_type, uri, payload, uid)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 616, in command
await self.connection.send(json.dumps(message))
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 555, in send
await self.ensure_open()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
2021-02-12 09:07:12 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140617971858544] code = 1006 (connection closed abnormally [internal]), no reason
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 827, in transfer_data
message = await self.read_message()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 895, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 971, in read_data_frame
frame = await self.read_frame(max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 1047, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.8/site-packages/websockets/framing.py", line 105, in read
data = await reader(2)
File "/usr/local/lib/python3.8/asyncio/streams.py", line 723, in readexactly
await self._wait_for_data('readexactly')
File "/usr/local/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 848, in _read_ready__data_received
data = self._sock.recv(self.max_size)
OSError: [Errno 113] Host is unreachable
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 136, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1455, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1490, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 595, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 632, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 92, in wrapper
await func(obj, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 345, in async_volume_down
await self._client.volume_down()
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 872, in volume_down
return await self.request(ep.VOLUME_DOWN)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 626, in request
await self.command(cmd_type, uri, payload, uid)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 616, in command
await self.connection.send(json.dumps(message))
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 555, in send
await self.ensure_open()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
2021-02-12 09:07:13 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-12 09:07:23 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-12 09:07:33 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10

@rapi3
Copy link
Author

rapi3 commented Feb 12, 2021

p.s.
"problem fixed" using IR bridge and stop using not working webostv ;)

@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants