dwaan / homebridge-adb

Homebridge script to control remote ADB enabled Android device
MIT License
74 stars 14 forks source link

Cannot connect to device #1

Closed Apple2T4ch closed 3 years ago

Apple2T4ch commented 3 years ago

I just finished installing adb system wide on Windows 10 and can run adb version and it populates. I can also connect the device (Fire TV Edition) to adb and initiate commands. Homebridge is seeing the Fire TV but says it cant connect and therefore not showing up in Homekit. The popup even came up on the tv and I pressed accept. gdd hff

See attached photos. Thanks!

dwaan commented 3 years ago

Just making sure. If you type adb devices in your command prompt, does it show list of devices that are currently connected?

What’s the result if you type this command: adb -s your-ip-address shell “dumpsys power | grep mHoldingDisplay | cut -d = -f 2“, that command will check if your device screen is on or off, so it should return true or false.

Apple2T4ch commented 3 years ago

Adb devices does show my device. I did also want to say that if I connect my device manually using cmd before starting homebridge that the plugin when booting seems to disconnect the adb device if that makes sense! shell

dwaan commented 3 years ago

It seems that your ADB work properly. I think I knew the problem, I modified the script a little bit and update the plugins, please try and see the result.

Apple2T4ch commented 3 years ago

Working great now. Thanks so much for this plugin!