8000 LG webOS lead to exceptions when HA tries to show preview · Issue #5113 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

LG webOS lead to exceptions when HA tries to show preview #5113

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

Closed
igrybkov opened this issue Dec 30, 2016 · 12 comments · Fixed by #6755
Closed

LG webOS lead to exceptions when HA tries to show preview #5113

igrybkov opened this issue Dec 30, 2016 · 12 comments · Fixed by #6755

Comments

@igrybkov
Copy link

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.35.3

Python release (python3 --version):
3.4.2

Component/platform:

  • media_player.webostv

Description of problem:

HA cannot render a preview image for media_player.webostv component and an error appears in the log on every page refresh. The preview block is rendered on a dashboard but is blank.

Expected:
Preview is rendered correctly or not shown at all if not supported.

Problem-relevant configuration.yaml entries and steps to reproduce:

  • Add webostv platform to the list of media players:
- platform: webostv
  name: Living Room TV
  host: 192.168.1.190

Traceback (if applicable):

aiohttp.server: Error handling request
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_server.py", line 61, in handle_request
    resp = yield from self._handler(request)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web.py", line 249, in _handle
    resp = yield from handler(request)
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 427, in handle
    result = yield from result
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 783, in get
    request.app['hass'], player.media_image_url)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 729, in _async_fetch_image
    response = yield from websession.get(url)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/client.py", line 530, in __iter__
    resp = yield from self._coro
  File "/home/homeassistant/.homeassistant/deps/aiohttp/client.py", line 173, in _request
    proxy=proxy, proxy_auth=proxy_auth, timeout=timeout)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/client_reqrep.py", line 95, in __init__
    self.update_host(url)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/client_reqrep.py", line 119, in update_host
    raise ValueError('Host could not be detected.')
ValueError: Host could not be detected.

Additional info:
I tried to debug the issue and added a logging of an image URL to the homeassistant/components/media_player/webostv.py:

    @property
    def media_image_url(self):
        """Image url of current playing media."""
        if self._current_source_id in self._app_list:
            _LOGGER.error("'" + self._app_list[self._current_source_id]['largeIcon'] + "'")
            return self._app_list[self._current_source_id]['largeIcon']
        return None

Log entries:

16-12-30 21:48:21 homeassistant.components.media_player.webostv: '/media/cryptofs/apps/usr/palm/applications/youtube.leanback.v4/youtube_leanback_v4_130x130.png' 16-12-30 21:51:01 homeassistant.components.media_player.webostv: '/usr/palm/plugins/inputapps/assets/medium/launcher/streamingbox.png'

There is no such path in my system but looks like there is a reason why it throws the exception: HTTP client cannot resolve a host of the local path. However, I don't know why does it resolve the path which does not exist in a system.

TV firmware:

  • version 05.05.55
  • webOS 1.4.0-2504 (afro-ashley)
@vassilis-panos
Copy link
vassilis-panos commented Dec 30, 2016

Same errors all the time.

16-12-30 23:21:43 aiohttp.server: Error handling request Traceback (most recent call last): File "/home/hass/.homeassistant/deps/aiohttp/web_server.py", line 61, in handle_request resp = yield from self._handler(request) File "/home/hass/.homeassistant/deps/aiohttp/web.py", line 249, in _handle resp = yield from handler(request) File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro res = yield from res File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro res = yield from res File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 427, in handle result = yield from result File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 783, in get request.app['hass'], player.media_image_url) File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 729, in _async_fetch_image response = yield from websession.get(url) File "/home/hass/.homeassistant/deps/aiohttp/client.py", line 530, in __iter__ resp = yield from self._coro File "/home/hass/.homeassistant/deps/aiohttp/client.py", line 173, in _request proxy=proxy, proxy_auth=proxy_auth, timeout=timeout) File "/home/hass/.homeassistant/deps/aiohttp/client_reqrep.py", line 95, in __init__ self.update_host(url) File "/home/hass/.homeassistant/deps/aiohttp/client_reqrep.py", line 119, 8000 in update_host raise ValueError('Host could not be detected.') ValueError: Host could not be detected.

@mihaifireball
Copy link

I have the same errors:

17-01-13 20:15:51 aiohttp.server: Error handling request Traceback (most recent call last): File "/home/homeassistant/.homeassistant/deps/aiohttp/web_server.py", line 61, in handle_request resp = yield from self._handler(request) File "/home/homeassistant/.homeassistant/deps/aiohttp/web.py", line 249, in _handle resp = yield from handler(request) File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro res = yield from res File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro res = yield from res File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 427, in handle result = yield from result File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 783, in get request.app['hass'], player.media_image_url) File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 729, in _async_fetch_image response = yield from websession.get(url) File "/home/homeassistant/.homeassistant/deps/aiohttp/client.py", line 530, in __iter__ resp = yield from self._coro File "/home/homeassistant/.homeassistant/deps/aiohttp/client.py", line 173, in _request proxy=proxy, proxy_auth=proxy_auth, timeout=timeout) File "/home/homeassistant/.homeassistant/deps/aiohttp/client_reqrep.py", line 95, in __init__ self.update_host(url) File "/home/homeassistant/.homeassistant/deps/aiohttp/client_reqrep.py", line 119, in update_host raise ValueError('Host could not be detected.') ValueError: Host could not be detected.

@infamy
Copy link
Contributor
infamy commented Jan 25, 2017

Is this something that broke in a newer version or was never working?

@igrybkov
Copy link
Author

I'm not so long with Home Assistant (from November 2016), but all this time the issue was present.

@mihaifireball
Copy link

I'm also using Home Assistant from December 2016, so I cant say if it is a new or old bug.

@anthonymcmenzie
Copy link

I have the same issue, have tried a lot of things to resolve but needs a fix from someone more knowledgeable I guess :-)

@vassilis-panos
Copy link
vassilis-panos commented Feb 28, 2017

Now it's worse. My log file is huge because this message appears every 30''!

17-02-28 15:04:14 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/home/hass/.homeassistant/deps/aiohttp/web_server.py", line 62, in handle_request resp = yield from self._handler(request) File "/home/hass/.homeassistant/deps/aiohttp/web.py", line 270, in _handle resp = yield from handler(request) File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/http/ban.py", line 57, in ban_middleware_handler return (yield from handler(request)) File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro res = yield from res File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 417, in handle result = yield from result File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 930, in get data, content_type = yield from player.async_get_media_image() File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 470, in async_get_media_image return (yield from _async_fetch_image(self.hass, url)) File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 876, in _async_fetch_image response = yield from websession.get(url) File "/home/hass/.homeassistant/deps/aiohttp/client.py", line 577, in __iter__ resp = yield from self._coro File "/home/hass/.homeassistant/deps/aiohttp/client.py", line 213, in _request proxy=proxy, proxy_auth=proxy_auth, timer=timer) File "/home/hass/.homeassistant/deps/aiohttp/client_reqrep.py", line 95, in __init__ self.update_host(url) File "/home/hass/.homeassistant/deps/aiohttp/client_reqrep.py", line 119, in update_host raise ValueError('Host could not be detected.') ValueError: Host could not be detected.

Also I'm getting this error:

17-02-28 14:47:51 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:05

@masarliev
Copy link
Contributor

here this property is file path on my TV. The only property that is URL is "icon"

@ouchkilljoys
Copy link

This is a long shot but have you tried to encapsulate the name in ' ' like so

  • platform: webostv
    name: 'Living Room TV'
    host: 192.168.1.190

@migromao
Copy link

Im also affected. Latest ha 0401 and LG with latest firmeare 05050"".
Same symtms and same huge error log

@igrybkov
Copy link
Author

@Matt2468 I've tried this and nothing changed, component still throws an error on every page refresh.

@vassilis-panos
Copy link

No one cares. I post this bug also in forums and gitter a long time ago. It's obvious that LG Web OS (any version) doesn't push a thumbnail to home assistant. Is it so difficult to disable this? My LG Web OS version 1 also has a problem with volume stepping. It increases or decreases the volume by two points a time and sometimes by ten! Lately, I found that WebOS notification component isn't working without setup WebOS media player. So, if I disable the problematic WebOS media player I miss notifications also.

@home-assistant home-assistant locked and limited conversation to collaborators Aug 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants
0