Wake up your Android device with MQTT!
What does it do? It subscribes to mqtt topic and listens for messages, which it translates to adb commands.
- Android device with debugging on
- Adb server
https://github.com/sorccu/docker-adb
is tested and working
BROKER_HOST
mqtt addresslocalhost
BROKER_PORT
mqtt port1883
ADB_SERVER_HOST
Adb server addresslocalhost
ADB_SERVER_PORT
Adb server port5037
ADB_DEVICE_HOST
ip address of devicelocalhost
ADB_DEVICE_PORT
port of device5555
MQTT_TOPIC topic
on which listen for commandsdash_control
HA_TOPIC topic
topic for Home Assistant autodiscoveryhomeassistant
docker run -e BROKER_HOST=192.168.1.5 -e ADB_SERVER_HOST=192.168.1.5 -e ADB_DEVICE_HOST=192.168.1.75 thebiftek/mqtt2adb
Topic: dash_control/screen/state
Payload: on
Topic: dash_control/screen/state
Payload: off
Device will be discovered by Home Assistant automatically when used with mqtt