ADB AddOn need help

Need some help on making ADB AddOn work for my MiBox and Chromecast. I believe running the addon will allow me to remotely give access to run apps from HA. However upon running this and set up the configuration.yaml and following the guide. I did not see androidtv in the service command. Does anyone have any idea how to make this work? The guide show only for Nvidia so unsure

I have an Integation running on an “AndroidTV” called OrbsmartS85. It is allready rooted with Android 9 and ADBServer is running out of the box.

I use it to trigger the Screen Wakeup&Sleep (Keyevent 223&224) with xiaomi motion Sensor and to make Homeassistant start in Foreground. This work pretty good.

What`s in the Log-Files from ADB-Addon, is it connected?

I mean how do you know it working with HA. Currently HA services did not show androidtv in its drop down

yes its show connected

Just Test it :slight_smile:

This is how i wakeup the screen from Automation and start HA in Foreground:
[…]
action:

  • service: androidtv.adb_command
    data:
    command: input keyevent 224
    entity_id: media_player.android
  • service: media_player.select_source
    data:
    source: io.homeassistant.companion.android
    target:
    entity_id: media_player.android
    […]

This is my config:

config.yaml

media_player:

  • platform: androidtv
    name: Android
    host: 192.168.XXX.XXX #IP Android-Box#
    port: 5555

ADB-Config:

devices:

  • 192.168.XXX.XXX #IP Android-Box#
    reconnect_timeout: 90

Port:
|5037/tcp| 5037 |ADB Server|

Log:

[09:12:06] INFO: Connecting to device: 192.168.XXX.XXX…
already connected to 192.168.XXX.XXX:5555

You should get a media player, if you added that to the configuration

thanks bro… will try… btw just wondering, are you the guy who make android micky mouse faces?

will try them… since my android box do appear on media_player but not as ADB… but as chromecast

No Problem!

No i`m not these Guy… :smile: What are micky mouse faces ?! :nerd_face:
Tell me if you get the MiBox working, maybe i will change to this device in the future.