Samsung TV not responding

Just started playing with Samsung and Directv components.
The Samsung is appearing but greyed out. This is better than Directv, it not even being discovered.
Below is my config and log after a core reload.

image

media_player:
  - platform: samsungtv
    host: 192.168.1.163
    name: Great Room TV
2017-12-24 00:00:00 INFO (SyncWorker_7) [homeassistant.components.zwave] Z-Wave heal running
2017-12-24 03:01:31 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.samsung_tv_remote is taking over 10 seconds
2017-12-24 03:01:31 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10
2017-12-24 06:32:58 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 410, in start
    resp = yield from self._request_handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle
    resp = yield from handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 93, in impl
    return (yield from handler(request))
  File "/usr/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 58, in ban_middleware
    return (yield from handler(request))
  File "/usr/lib/python3.6/asyncio/coroutines.py", line 213, in coro
    res = yield from res
  File "/usr/lib/python3.6/asyncio/coroutines.py", line 213, in coro
    res = yield from res
  File "/usr/lib/python3.6/site-packages/homeassistant/components/http/__init__.py", line 430, in handle
    result = yield from result
  File "/usr/lib/python3.6/site-packages/homeassistant/components/frontend/__init__.py", line 485, in get
    _is_latest(self.js_option, request)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/frontend/__init__.py", line 583, in _is_latest
    useragent = parse(request.headers.get('User-Agent'))
  File "/usr/lib/python3.6/site-packages/user_agents/parsers.py", line 254, in parse
    return UserAgent(user_agent_string)
  File "/usr/lib/python3.6/site-packages/user_agents/parsers.py", line 135, in __init__
    ua_dict = user_agent_parser.Parse(user_agent_string)
  File "/usr/lib/python3.6/site-packages/ua_parser/user_agent_parser.py", line 222, in Parse
    'user_agent': ParseUserAgent(user_agent_string, **jsParseBits),
  File "/usr/lib/python3.6/site-packages/ua_parser/user_agent_parser.py", line 249, in ParseUserAgent
    family, v1, v2, v3 = uaParser.Parse(user_agent_string)
  File "/usr/lib/python3.6/site-packages/ua_parser/user_agent_parser.py", line 51, in Parse
    match = self.user_agent_re.search(user_agent_string)
TypeError: expected string or bytes-like object
2017-12-24 06:49:41 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.samsung_tv_remote is taking over 10 seconds
2017-12-24 06:49:42 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10

Newer Samsung TVs support Wake-on-LAN (if I recall correctly). Older models definitely do not offer this. When in standby mode, the ethernet port is powered off completely. Meaning: you can switch it off, but not on

If you have a raspberry pi attached, you might like a cec hdmi solution, like this: https://menno.b10m.net/home-assistant/post/controlling-my-samsung-tv/

I was just playing with the SamsungTv and Directv components. To be honest I was more interested in the Directv at the time, but you have peak my interest.
This is interesting on several levels. First, I do not currently have a pi hook to the HDMI. But I would like to look at steaming options. Starting with music. Amazon is stopping upload of music. I was wondering about streaming it to my tv that has a sound bar. Using CEC could I turn on the sound bar and stream to it through the TV?
Looking at you blog and code example you use a library CEC.
As you can image I have several questions, let me start with one, where did the CEC library come from? I would like to look at it’s code and see what functions it supports.
I need to learn more about CEC capabilities.

PulseEight provides libcec http://libcec.pulse-eight.com/

It’s pretty awesome :slight_smile: