A Better FireTV Solution : IRUSB

I have been controlling my FireTVs via ADB for a few months now, and I eventually got annoyed enough with the slow response from the ADB interface to come up with a better answer.

For starters, the FireTV method I was using consisted of:

  • A crontab script that ran as the openhab user every 15 minutes to ensure there was an active ADB connection to the FireTV
  • A shell script that would run the adb executable to send the FireTV the keystroke desired based on a case statement for $1 (ie: “/usr/local/bin/firetv-office-adb.sh up” would send the “up” command to the FireTV.

It’s worth noting that while OpenHAB I’m sure added some latency due to the shell execution, even just running the adb command at a prompt still was slower then I’d Iike.

Enter IRUSB by VideoStorm. (http://www.video-storm.com/proddetail.asp?prod=irusb)

It’s a dongle that is designed to allow a FireTV to send IR commands to other devices using their software via network commands to their software/app. BUT, that same app also allows you also send HID commands to the device, as if it was a keyboard or remote connected via USB. The response time is almost as good as the native Bluetooth remote.

The short instructions are:

  • Buy dongle
  • Wait for dongle to arrive
  • Plug dongle in
  • Install app from the Amazon App Store
  • Upgrade firmware if necessary
  • Send it commands (per their API spec)

The commands I’m using use plain old netcat:


case $1 in
                /bin/echo -ne "QHIDCODE1000082\r" | /bin/nc 9093
                /bin/echo -ne "QHIDCODE1000081\r" | /bin/nc 9093
                /bin/echo -ne "QHIDCODE1000080\r" | /bin/nc 9093
                /bin/echo -ne "QHIDCODE1000079\r" | /bin/nc 9093
                /bin/echo -ne "QHIDCODE2000065\r" | /bin/nc 9093 #SELECT
                /bin/echo -ne "QHIDCODE2002036\r" | /bin/nc 9093
                /bin/echo -ne "QHIDCODE2002035\r" | /bin/nc 9093
                /bin/echo -ne "QHIDCODE1000101\r" | /bin/nc 9093
                /bin/echo -ne "QHIDCODE1000232\r" | /bin/nc 9093
                /bin/echo -ne "QHIDCODE2000180\r" | /bin/nc 9093
                /bin/echo -ne "QHIDCODE2000179\r" | /bin/nc 9093

Works like a champ! Highly recommended for anyone who doesn’t like the ADB delay but wants to control a FireTV.


1 Like

Thanks for the write-up. I picked up 2 devices so I could replace an aging universal remote.
I had one issue that I will post in case anyone goes down this road:
I could not get the IRUSB application to work on my FireTV after installing it from the Amazon website. It would blast IR using the application’s SEND IR button but the port would not take commands. I cleared my cache, data, and re-installed IRUSB from the FireTV search box and then it worked properly after re-discovering the IRUSB device from the application. Everything else was the same including always allowing permissions.

I should note that this device will also blast IR codes so it can now control more than the FireTV!