Home Assistant Community Add-on: ADB - Android Debug Bridge

Nice mate, I had resorted to creating a ADB server in docker, it’ll be interesting to test to see stability.

Hey apologies for the slow reply, I didn’t get a notification for this,

There is support for all the main architectures now, I pushed an update about 4 days ago with multiarch builds.

My first time building a docker image so took me a bit of time to figure out the whole manifest thing, and you seem to have tried to download it when I accidentally pushed one of the dev branch updates trying to get the CI/CD implementation to work to main and before I reverted it, apologies for that

1 Like

You should really open a new thread for your add-on! :slight_smile:

People will likely not find it in over 400 posts, and it would a pitty, if it just flies under the radar because of that! :slight_smile: That’s what happened to me, I just came back to this thread to check something, and now I see you have replaced the add-on… :+1: Needless to say I’ll change mine right after this post. :wink:

Doesn’t mean, you can’t/shouldn’t write here as well, but in my opinion, a different add-on, should have has earned its own support thread. :slight_smile:

2 Likes

I second that. It installed fine now. Unfortunately not that much time to play. Will do soon.

Is the main benefit of the add on controlling slower/older devices? I always had trouble with FireTV (not using ADB) because it was just plain laggy but that was 4.or.5 years ago. Python integration works perfect on my Shield, Dune Solo, which is a Linux media player with AOSP in a container or something similar, and my Sony Android TV with zero issues.

When they finally pretty much forced the removal of the add on due not being able to verify restores, I just moved to the python intgration and haven’t had any issues but if there are any benefits with using the add on, I’ll move back as it was pretty much a lot of find and replace all for scripts to update the new entity name so switching back would be easy but only want to if there are tangible benefit. Since I use voice for everything ADB related it’s hard to track down exact timing because of the variables voice adds. After seeing the below, well it’s certainly worth 8 to 10.dillara to have over 20 programmable physical keys using a direct WiFi num pad. Is it as good as a remote? No, but the only remote that seems to work with HA is the UF R3 which is 300 US, still has some bugs and also the R2 had a rough rollout so this will do for now. I just wanted something that wasn’t a touchscreen and got lucky and came across the below.

The python implementation does work but is glitchy for some devices. My Firecube for example drops its connection all the time with just the python implementation hence the need for the adb server. If you’re not having any issues, stick with what you have.

Or to put it another way, don’t fix what isn’t broken in your setup.

The add on went completely red a few releases back. Some message saying restores might not work because it was removed completely on their end as the add on had been deprecated for a good 2 years but still worked, was more worried about not being able to restore backups (guess it checks online). I read it as HA won’t know what to do as they made the warning front and center so I moved to the python implementation which is buggy but still works. Still have to use learn send event to get the fastest codes from HA as they are device specific but yeah, the dedicated add on was better then the python integration.

It does look like someone wrote a new one, I need to try it out

Hi @Amateur-God
I would like to test your add-on but I cannot find a way to make it work. Your Github page talks about a json file but I can’t find it in the configuration tab.
And when I add the IP address of my FireTV in the “auto connect devices”, it doesn’t list it :

[2024/09/03 11:34:53:9475] N: ttyd 1.7.7-40e79c7 (libwebsockets 4.1.6-)
[2024/09/03 11:34:53:9476] N: tty configuration:
[2024/09/03 11:34:53:9476] N:   start command: /usr/local/bin/restricted-shell.sh
[2024/09/03 11:34:53:9476] N:   close signal: SIGHUP (1)
[2024/09/03 11:34:53:9476] N:   terminal type: xterm-256color
[2024/09/03 11:34:53:9476] N: LWS: 4.1.6-, loglevel 7
[2024/09/03 11:34:53:9476] N: NET CLI SRV H1 H2 WS IPV6-off
[2024/09/03 11:34:53:9481] N:    /usr/lib/x86_64-linux-gnu/libwebsockets-evlib_uv.so
[2024/09/03 11:34:53:9488] W: lws_create_context: unreasonable ulimit -n workaround
[2024/09/03 11:34:53:9489] N:  Using foreign event loop...
[2024/09/03 11:34:53:9490] N:  Listening on port: 7681
[WARN  tini (7)] Tini is not running as PID 1 and isn't registered as a child subreaper.
Zombie processes will not be re-parented to Tini, so zombie reaping won't work.
To fix the problem, use the -s option or set the environment variable TINI_SUBREAPER to register Tini as a child subreaper, or run Tini as PID 1.
* daemon not running; starting now at tcp:5037
* daemon started successfully
ADB server started on port 5037
No devices configured for auto-connect
Connected devices:
List of devices attached

[2024/09/03 11:35:05:6954] N: ttyd 1.7.7-40e79c7 (libwebsockets 4.1.6-)

Could you help me please ?
Thanks !

there is a way to force update on the entiy picture of the media player ? (screenshot of the androis tv )

I’ve got the same problem. Did you manage to fix it?

I’ve kind of given up on this add on and moved back to the python solution and Android remote. It seems like an issue was opened 4 days ago as it’s not exposing ports All I can really do is run ADB commands from the prompt. You may be able to get the image with the below

ADB shell input keyevent 94

If you add the integration it’s just using the Python solution. I deleted and added it back but the python solution is limited. I did get my background image back but this doesn’t even create a media player. I can manually run commands like these but I don’t know how to say, write a script that sends the ADB commands through the ADB server. Also, didn’t work when using what was generated from the ADB learn send event action which is and always has been the fastest because it’s device specific which is what I wanted.

I can still send ADB commands using the Python solution but the options for the media player have slowly disappeared over time for all my Android devices.

1 Like