Sharing a working driver to control 100% an Amazon FireTV Stick directly from Hubitat, without any other hardware.
Hope is useful for more users!
Cheers.
Sharing a working driver to control 100% an Amazon FireTV Stick directly from Hubitat, without any other hardware.
Hope is useful for more users!
Cheers.
Interesting ![]()
What can this be used for. Could it be possible to open a specific app - for instance an IPTV app for watching the football (asking for a friend ![]()
)
Edit: I had a peek at the code. It looks as though I should be able to add an app in there to the existing list ![]()
Hi @johnwill1
Right now it has the basic Apps (netflix, amazon, disney +, hbo, youtube, apple tv) Ready to launch.
You can find out the codes for the others, and of course add to the list!
Hope it helps!
Should this work on a FireTV stick 4K? I tried it and it showed a 'connected' status, but none of the commands worked and I never got a pop-up for authorization on the FireTV.
Did you enable de Developer Mode and allowed Unknown apps in the Fire TV settings?
(instructions here: How to find/show/unhide/reveal Developer Options on an Amazon Fire TV Stick, Fire TV Cube, or Fire TV Smart TV | AFTVnews )
This driver will probably stop working once Amazon launches their devices with the New OS , but probably another API or method will come out at that time.
Until now, all devices with Android should work as they use ADB for comm.
Yes, I was able to connect and control my FireTV from Home Assistant, but can't get this to work from either of my hubs (a C7 and a C8-Pro).
It’s worked for me on my C8 Pro. I made sure ADB debugging was turned on. It didn’t work initially but then I clicked the ‘Generate new key’ command and tried a command again at which point I got the permission pop up on screen (not sure if that’s relevant or not)
Thanks
I've had a message around with the code:
I've noticed that the states don't seem to update for 'Current App' (unknown) and 'Switch' (off) . If I click the 'Get Current app' there are no errors:
That's great!
I will try and work on the states with the CurrentApp
Any other ideas let me know!
I'm having a play with ChatGPT currently which is suggesting two changes. I'll post if successful (I'm clueless with code so rely on AI)
Edit: I have current activity updating from the command (need to test it when switching between activities) I need to amend it to show a friendly name, rather than ‘com.someapp’.
Of course my ChatGPT fixes might cause other bugs…
New version available, with current app as an attribute
Nice work. Sounds like some XDA level stuff :o
I control my TV on/off from the Firestick remote. Do you know if that capability is available?
@hhorigian,
Nice job, good to see that Android TV drivers with ADB support coming to Hubitat (I will soon retire another app(s) from Home Assistant - Android Debug Bridge / Android TV Remote!).
I have tested on a Google TV Streamer (Android) and the basic functions work.
Not sure if you are also getting the intermittent prompts to re-authorise allow USB debugging (even after selecting always allow) ?
As this is working on Android TV - probably best to change title to reflect this ![]()
Showing my age ![]()
I thought ADB was the “Apple Desktop Bus” ![]()
Hi @iEnam
Didn't have other Android device to test, good to know.
I did an update for the repeated authorizations.
Check hope it solves
No, that TV control is stored locally in your FireTV remote control as it probably does it via IR/Bluetooth.