Amazon Fire Tv loosing connection with home assistant after some time using "adb sendvenet" method

So, at the moment i’m using homeassistant sendevent method ( Android Debug Bridge - Home Assistant ) to control the fire tv at my system, but the issue that i’m facing is, after some time the Fire Tv lost connection with one of the remotes, the physical remote or the virtual remote from the phone app.

When the connection is lost, the ADB command become useless. I tried using the and Regular Android ADB Commands ( Android Debug Bridge - Home Assistant ), but as you may know, they have a 2~3 second delay after you send the command.

So I thought that maybe theres a way to use a bluetooth connection to control the Fire Tv, since we can connect any kind of Bluetooth remote to the Fire Tv. Does anyone knows anything about it?

If a complete solution of Bluetooth Control is not available yet, maybe just a device that will be always connected to the Fire Tv will work for me.

I am having the same problem. Did you ever find a solution? I have to restart the Fire TV to get control back using HA.

Yes I did:

The ESP32 allows you to simulate a Bluetooth Keyboard connected to the FireTv. Obs.: A single ESP32 board is only capable of communicate with One Device. if you have more than one FireTv, you need to purchase more of this board, which are $9 on Amazon.

Also, they are cabaple of controlling any device that is compatible with bluetooth keyboards, not just FireTv.

What if you use the BLE function to toggle the ADB On and Off whenever it loses connection?

I’m thinking this is the same issue as described in AndroidTV Integration LEARN_SENDEVENT ADB commands don't work after integration · Issue #86504 · home-assistant/core · GitHub which is what I’m experiencing, too.

Specifically:

After some unsuccessful tests I found that the sendevent command worked once a button on the remote control was pressed.

I’ve got the same issue but am mystified as to why ADB itself still works (I can start/stop media on the fire stick through the media player integration in HA) but any keystrokes I trigger via sendevent are simply ignored until I press any key on the Fire Stick remote, at which point sendevent works again.

Has anyone else experienced this and solved it? I’m keen to avoid any ESP/BLE solution as none of my kit is connected via wifi and I have no wish to start now (my Fire sticks are ethernet connected); plus it’s not ADB itself that is failing, there must be something else…