core: Error while setting up platform androidtv
Operating environment (Hass.io/Docker/Windows/etc.): Hass.io 90.0
Component/platform:
https://www.home-assistant.io/components/androidtv/
Description of problem: i connected my sony bravia android tv to HA everything works fines, yet after a reboot it doesn’t show up and i have the below error in the logs my nvidia doesn’t have this issue stay connected without any errors
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
- platform: androidtv
host: 192.168.1.159
name: "Sony Bravia"
adb_server_ip: 127.0.0.1
adb_server_port: 5037
Traceback (if applicable):
2019-03-23 08:39:22 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform androidtv
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/androidtv/media_player.py", line 115, in setup_platform
device_class=config[CONF_DEVICE_CLASS])
File "/config/deps/lib/python3.7/site-packages/androidtv/__init__.py", line 45, in setup
if aftv.manufacturer == 'Amazon':
File "/config/deps/lib/python3.7/site-packages/androidtv/basetv.py", line 294, in manufacturer
output = self.adb_shell(constants.CMD_MANUFACTURER)
File "/config/deps/lib/python3.7/site-packages/androidtv/basetv.py", line 122, in _adb_shell_pure_python_adb
return self._adb_device.shell(cmd)
File "/config/deps/lib/python3.7/site-packages/adb_messenger/command/transport/__init__.py", line 23, in shell
conn.send(cmd)
File "/config/deps/lib/python3.7/site-packages/adb_messenger/connection.py", line 77, in send
return self._check_status()
File "/config/deps/lib/python3.7/site-packages/adb_messenger/connection.py", line 83, in _check_status
raise RuntimeError("ERROR: {} {}".format(repr(recv), error))
RuntimeError: ERROR: 'FAIL' 0006closed
Additional information:
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 35 (21 by maintainers)
@stast1 let me know if this fixes it.
https://github.com/home-assistant/home-assistant/pull/22996
@mmotley999 and @aav7fl, your issue is different. Please re-post here: https://github.com/home-assistant/home-assistant/issues/22485.
@JeffLIrion Ok, I fired up ADB server(‘adb start-server’) and changed the config:
However, now getting this:
WARNING (SyncWorker_14) [homeassistant.components.androidtv.media_player] Could not connect to Nvidia Shield Living Room at <ipaddr>:5555 using ADB server at 127.0.0.1:5037I verified that issuing a “adb connect <ipaddr>” works just fine from the command line/shell, even as the ‘homeassistant’ user, right after seeing the message. I’m able to execute shell commands against the Shield, so it doesn’t appear the Shield is offline or not responding to network traffic…
@mmotley999 you need to use the ADB server option.
https://www.home-assistant.io/components/androidtv/
I don’t see why it would. Also, you should fix your TV’s IP address, if you haven’t already.