TechBuzzPro

Fire TV Stick ADB Home Assistant Setup

· 4 min read · Streaming & TV

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can control your Fire TV Stick via ADB in Home Assistant, enabling automations like turning it on with lights or launching apps remotely. This requires enabling ADB debugging on the Fire TV Stick, connecting it to your network, and configuring Home Assistant to communicate with it over TCP. You must have a Fire TV Stick running a supported firmware version, a local network connection, and access to Home Assistant’s configuration files.

What You'll Need

  • Fire TV Stick (any generation with Fire OS)
  • Home Assistant installed and running (Supervised, OS, or Container)
  • ADB tool installed on the same machine as Home Assistant (via adb-server or ADB Shell)
  • Fire TV Stick and Home Assistant on the same local network
  • Developer options and ADB debugging enabled on the Fire TV Stick
  • Fire TV Stick IP address (found in Settings > My Fire TV > About)

Step-by-Step

  1. On your Fire TV Stick, go to Settings > My Fire TV > Developer Options. If Developer Options isn’t visible, go to About > Device Name and click it 7 times to unlock it.
  2. Enable ADB Debugging and Apps from Unknown Sources. You’ll see a warning—confirm it.
  3. Go back to My Fire TV > About and note the IP Address listed under Network.
  4. In Home Assistant, ensure the ADB server is installed. If using the ADB Shell add-on from the Home Assistant Supervisor panel, install and start it. Otherwise, install adb tools via command line (sudo apt install adb on Debian-based systems).
  5. In the ADB Shell add-on or command line, connect to your Fire TV Stick by running: adb connect [FIRE_TV_IP]:5555 (replace [FIRE_TV_IP] with the actual IP).
  6. On the Fire TV Stick, a popup will appear asking to allow the ADB connection. Check Always allow from this device and click Allow.
  7. In Home Assistant, go to Settings > Devices & Services > Integrations. Click + Add Integration and search for Android TV.
  8. Select Android TV, choose Device Type: Fire TV, enter the Fire TV Stick’s IP address, and set the ADB port to 5555. Use the ADB key from the ADB Shell add-on or local machine.
  9. After setup, Home Assistant will show the Fire TV Stick as a media device. You can now control power, input, volume, and launch apps via services.
  10. To create automations, go to Automations & Scenes > Automations > Create Automation. Use triggers like motion sensors or time, then add an action with Call Service > media_player.turn_on or androidtv.adb_command to run specific ADB commands (e.g., input keyevent 26 to toggle power).

Common Mistakes

  • Forgetting to enable Developer Options: this is required to access ADB Debugging.
  • Not allowing the ADB connection on the Fire TV Stick: the popup must be accepted once for pairing.
  • Using the wrong IP address: ensure the Fire TV Stick hasn’t received a new IP via DHCP.
  • Firewall blocking port 5555: make sure your network or machine isn’t blocking ADB traffic.
  • Assuming ADB works over the internet: it only works on the local network unless you set up port forwarding (not recommended for security).

Tips

  • Assign a static IP to your Fire TV Stick via your router settings to prevent connection drops.
  • Use the adb devices command to verify the device is connected and authorized.
  • Test ADB commands manually first (e.g., adb shell input keyevent 26) before adding them to automations.
  • Use the androidtv.adb_command service in automations to run custom actions like launching apps by package name.
  • Combine with other sensors—turn on the TV when motion is detected in the living room.

Troubleshooting

If the ADB connection fails, first restart the Fire TV Stick and Home Assistant. Re-run adb connect and ensure the allow dialog appears. If it doesn’t, disable and re-enable ADB debugging on the Fire TV Stick. Check that both devices are on the same subnet. If using Wi-Fi, avoid 5 GHz-only networks if the Fire TV Stick has connectivity issues. In Home Assistant, check the Android TV integration logs for connection timeouts. If ADB drops frequently, verify your network stability and consider using a wired Ethernet adapter with a USB OTG cable. If the integration shows as “Unavailable,” ensure the ADB server is running and the device hasn’t been disconnected via reboot. You may need to re-authorize ADB after a Fire TV firmware update.

Frequently Asked Questions

Can I control multiple Fire TV Sticks?

Yes. Repeat the ADB setup for each device using its unique IP address and pair each separately.

Does this work with all Fire TV Stick models?

Yes, all Fire TV Stick models support ADB debugging as long as Developer Options can be enabled.

Is ADB required for basic media control?

Yes. Without ADB, Home Assistant cannot send power or app launch commands—only limited state detection may work via HDMI-CEC or polling.

Can I launch apps like Netflix automatically?

Yes. Use the androidtv.adb_command service with monkey -p com.netflix.ninja -c android.intent.category.LAUNCHER 1 or find the correct package name.

Is this method safe?

Yes, as long as ADB stays enabled only on your local network. Avoid exposing port 5555 to the internet.

Will firmware updates break ADB?

Sometimes. Updates may disable ADB debugging or reset developer settings. Re-enable it if automations stop working.