The primary goal of our add-ons project is to provide you (as a Home Assistant user) with additional, high quality, add-ons that allow you to take your automated home to the next level.
I am Franck Nijhof, and I have 30 years of programming experience, in many languages. I am using this experience to work on the Home Assistant project by giving back my knowledge and time to the open source community.
The add-on you are currently looking at right now was developed/packaged by me. It is not the only add-on I have created; there are many many more
However, I have a problem⊠I am an addict. A addict that is. Lucky for you, I turn that C8H10N4O2 (caffeine molecule) into code (and add-ons)!
If you want to show your appreciation, consider supporting me for buying a cup of high octane wakey juice via one of the platforms below!
Enjoy your add-on, while I enjoy the brain juice.
Thanks for all the
âŠ/Frenck
P.S.: In case you want to ask me a question: AMA (Ask Me Anything). Most of the time I am online at the Discord chat. (I go by @Frenck in there as well).
In case you are interested in how this was built, what it does and the possibilities this could unlock.
The recording of the live stream is available on YouTube:
Thanks for this addon. I was planning to go through setting up firetv using android platform tools but stumbled across this which seems say great way to setup adb based media player.
I am running into following error:
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 166, in setup_platform
from androidtv import AndroidTV
ImportError: cannot import name âAndroidTVâ
Regarding the Fire TV component, this is already implemented in my custom component. Iâm working on getting it integrated into the official component.
Configuration example:
media_player:
- platform: firetv
name: Fire TV
host: 192.168.0.111
adb_server_ip: 127.0.0.1
Comparing the Fire TV and Android TV components, I havenât tried the Android TV component, but there are some device-specific tweaks and so I expect that each component will work better for its intended devices.
recognizes Home as Standby so thatâs good. On opening Netflix recognized app as Netflix, and showed Paused. However on playing, state remained Paused.
Will try out with other apps as well. Thanks a lot for the amazing work.
@JeffLIrion
Looking at the documentation for the FireTV component after your updates, it doesnât look like adb_server_ip is listed as a configurable option.
Is it or is it planned to be in a future update?
EDIT: apologies, looks like I didnât properly read your reply doh
For others that are trying to figure this out, I followed the code a bit for the custom component and realized you can add arguments in the âintentâ data that get passed to am start. With that, I was finally able to start Hulu with the following:
For reference, the ADB command that gets sent by the service call is
"am start -a android.intent.action.VIEW -d {}".format(uri)
where â{}â gets replaced by whatever is in the âintentâ field. That means, without specifying any flags, the input is treated as a âdata_uriâ. By putting â-nâ first, it changes whatever follows to be treated as the âcomponentâ.