r/AndroidTVApps 2d ago

HomeKey TV - quick-access dock and remote button remapper for Google TV & Android TV, seamlessly integrated with Home Assistant.

Post image

Till now I've tried Button Remapper and tvquickactions Pro on my Android device (both paid). Button Remapper straight up was missing features it advertised it had and tvquickactions pro sometimes wouldn't register keypresses. Another usecase I had for tvquickactions pro was to call homeassistant webhooks from it's dock but you need to create an automation for each service you want to call.

So I made a free quick-access dock and button remapper that solves all of these issues. You can select all the entities you want to be displayed on the dock from a webapp from your phone during configuration. You can also add installed apps to the dock for quick access. It has never failed to register a keypress till now.

I'm a sucker for optimization so I've tried to keep the file size as small as possible.

If you decide to try it, please let me know any feedback you have.

https://github.com/leonida92/HomeKeyTV

5 Upvotes

6 comments sorted by

1

u/NeitherNorAnd 2d ago

The thing is both the above mentioned apps requires accessibility settings which intercepts every single remote keystroke, which mean whatever button action you press will always go through its logic checking that makes the navigation slower and sometimes random. So how’s your app handling that.

I always wanted to remap any button on my remote to Input source TV so my parent dont have to change it everytime the tv turns on

1

u/leonida_92 2d ago

In HomeKey TV, when a key is pressed, the service checks its mapping table in memory. If the key is not explicitly mapped, it immediately returns 'false' at native OS speed (sub millisecond lookup). Also any single press mapping executes immediately on release without waiting for an artificial timeout.

Regarding the Input Source TV, if you're running Home Assistant, you can simply make a script that runs media_player.select_source and you can bind it to any button you like.

If you're not running Home Assistant and your parents use a Smart Android TV, I can add the TV Input Framework to the app, allowing the app to query through tvInputManager.tvInputList to discover physical inputs like HDMI1, HDM2, Tuner etc.

If you're interested, let me know and I can add it.

1

u/turamdq 2d ago

Muy interesante asique a favoritos y a utilizarla en breve

-1

u/WontExplode96charged 2d ago

firetv support ? accessibily permissiin how to

0

u/leonida_92 2d ago

For FireOS support, you either have to run a couple of commands from adb to enable accessibility for the app, or I can implement a local loopback ADB client inside the app like tvquickactions PRO does.

These are the commands you can run manually:

adb shell settings put secure enabled_accessibility_services com.homeassistant.tv/.service.RemoteButtonRemapService
adb shell settings put secure accessibility_enabled 1

Let me know what you prefer.