Fire TV Disconnects from Home Assistant: ADB & Sleep Fix
In this article
If your Fire TV keeps dropping from Home Assistant, the culprit is almost always the ADB (Android Debug Bridge) connection being killed when the device goes to sleep, or the network connection being lost. The fix is to disable the Fire TV's sleep mode, set a static IP, and configure ADB to stay alive. Here's the step-by-step process.
What You'll Need
- A Fire TV device (stick or box) with ADB debugging enabled
- Home Assistant running with the Android TV or ADB integration
- Access to your router's admin page (to set a static IP)
- Your Fire TV's IP address (find it under Settings > Network)
Step-by-Step
- Enable ADB debugging on your Fire TV. Go to Settings > My Fire TV > Developer options (on older Fire OS versions it's Settings > System > Developer options). Turn on ADB debugging. If you don't see Developer options, go to Settings > My Fire TV > About, click on the device name 7 times to unlock it.
- Set a static IP address. On your router, assign a reserved IP for your Fire TV's MAC address. This prevents the IP from changing when the device reconnects. Alternatively, on the Fire TV itself, go to Settings > Network, select your Wi-Fi network, and choose Static IP (if available). Enter an IP outside your DHCP range.
- Disable the Fire TV's sleep mode. Go to Settings > Display & Sounds > Sleep and set it to Never. This keeps the device awake and the ADB connection active. Note: this will increase power consumption slightly.
- Adjust the ADB connection timeout in Home Assistant. In your Home Assistant configuration (configuration.yaml), find the Android TV integration entry. Add or modify the
adb_server_portif you use a dedicated ADB server, and setstate_detectiontotrueif you want accurate state. More importantly, ensure thehostis set to your Fire TV's static IP. - Restart Home Assistant. After making configuration changes, restart Home Assistant to apply them. Go to Settings > System > Restart in the Home Assistant UI.
- Test the connection. In Home Assistant, go to Settings > Devices & Services, find your Fire TV integration, and click Check connection. If it fails, proceed to troubleshooting.
Common Mistakes
- Not disabling sleep mode. Even with ADB enabled, the Fire TV's OS will suspend the ADB service when it sleeps. This is the #1 cause of disconnects.
- Using a dynamic IP. If your router assigns a new IP to the Fire TV, Home Assistant will try to connect to the old one and fail.
- Forgetting to enable ADB debugging after a Fire OS update. Updates sometimes reset developer options.
- Using the wrong ADB port. The default ADB port is 5555. If you changed it, you must update it in Home Assistant.
Tips
- Use a dedicated ADB server (like
adb-serverin a Docker container) to keep the connection alive even when Home Assistant restarts. - Set the Fire TV to Never sleep, but also consider using a smart plug to power-cycle it if it becomes unresponsive.
- If you have multiple Fire TVs, give each a unique name in Home Assistant (e.g.,
fire_tv_living,fire_tv_bedroom). - Check your router's firewall settings—some routers block ADB ports. Allow port 5555 inbound to the Fire TV's IP.
Troubleshooting
If the connection still drops after following the steps:
- Restart the Fire TV. Unplug it for 30 seconds, then plug it back in. This clears any stuck ADB state.
- Verify ADB is actually running. From a computer on the same network, run
adb connect. If it fails, ADB is not enabled or the port is blocked.:5555 - Check the Home Assistant logs. Go to Settings > System > Logs and look for errors related to
androidtvoradb. Common errors includeConnection refusedorTimeout. - Reinstall the integration. Remove the Android TV integration from Home Assistant, then re-add it with the correct IP and port.
- Update the Fire TV firmware. Go to Settings > My Fire TV > About > Check for Updates and install any pending updates. Some updates fix ADB bugs.
Frequently Asked Questions
Why does my Fire TV disconnect from Home Assistant every few minutes?
This is usually because the Fire TV is going to sleep, which suspends ADB. Set sleep to Never and ensure ADB debugging is enabled.
Can I keep the Fire TV awake but still let the screen turn off?
Yes, set Sleep to Never and adjust the screen timeout separately. The device will stay on, but the display can turn off after inactivity.
What port does Home Assistant use to connect to Fire TV?
By default, ADB uses port 5555. If you use a custom ADB server, the port may be different—check your ADB server configuration.
Do I need a static IP for Home Assistant to work?
Not strictly, but a static IP prevents connection failures when the IP changes. It's highly recommended.
Will disabling sleep mode wear out my Fire TV?
No, Fire TVs are designed to run continuously. It will use slightly more electricity, but it won't damage the hardware.
Can I use a Wi-Fi connection or do I need Ethernet?
Wi-Fi works fine, but a stable connection is key. If you have intermittent Wi-Fi, consider using an Ethernet adapter for a more reliable connection.