ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform androidtv
Traceback (most recent call last):
File “/usr/local/lib/python3.6/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.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/media_player/androidtv.py”, line 191, in setup_platform
adb_server_port=config[CONF_ADB_SERVER_PORT])
File “/config/deps/lib/python3.6/site-packages/androidtv/init.py”, line 230, in init
self.properties = self.device_info()
File “/config/deps/lib/python3.6/site-packages/androidtv/init.py”, line 327, in device_info
btmac = re.findall(BTMAC_REGEX_PATTERN, properties)[0]
IndexError: list index out of range
This is a screenshot playing and pausing youtube on my android box and still ui doesn’t change.
It is stuck at idle even when playing YouTube or any app video.
My Megabix and MiniM8s2 are both same device,
Megabix is connected with Broadlink rmmini 3 and MiniM8s2 with androidtv.py.
Status doesn’t change it keeps on showing idle even when running any applications
I had the same issue. I resolved it by updating the /config/deps/lib/python3.6/site-packages/androidtv/__init__.py file on Hass.io with the latest from the Master branch on Github here.
Works good ! Thx for the hint !
Now issue is that even when something is playing (VLC ofr instance) it is still idle showing in status.
But my 1st goal was to start applications so it’s fine for the moment.
JeffLIrion’s adb server addon + the androidtv.py + the __init__.py file replacement mentioned above worked for me.
I have a Nvidia Shield (2015) and HassOS 0.86.3
Got this all up and running with a Nvidia Shield TV. Next question is, how can I use the state in an automation? Say when Netflix is paused then turn on the lights?
I have MiniM8s2,
Marshmallow installed on it,
We both have same problem of not getting current status of android tvbox.
There must be some code difference between generic and branded?