Closed facutopa closed 3 years ago
Hey. Thank you for the info. This is something new to me, in my experience doing “adb tcpip 5555” once should be good until I reset my adb permission from Developer Setting in my android device. So I never include it inside the plugin.
By the look of it, did you restarted the homebridge when the TV is on?
Anyway, The only command that you need to enable remote ADB is actually “adb tcpip 5555”, the other commands is just to make sure that the adb are restarted.
In my case, I didn't even restart Homebridge. Just by turning off and on the TV stick severs the connection. I'm using Xiaomi's Mi TV Stick which is running Android TV OS. I need to constantly revoke USB debugging in the stick, run adb connect 192.168.X.XXX followed by adb tcpip 5555 command to be able to control the stick in the Home app; again.
Hopefully there's some workaround. I couldn't afford a new TV and who knows when the new Apple TV will come.
Please check the newest version to see if this problem still exist or not.
Thank you for your swift response! New update fixed it, no need to revoke and reregister ADB again.
A question though: if i turn the stick off thru Home app, does it turn off completely? Because my stick disconnects from WiFi when I did that. Doesn’t the button simulate “sleep” instead of “off”?
I think it’s depend on the device. The off command is actually similar to turning off screen if the device have screen, or put it in sleep in most of Android box, but never intended to make the device turned off completely.
I’m using this command to make the device sleep: adb -s ip-address shell "input keyevent KEYCODE_SLEEP"
I guess I had to keep the stick always on. Btw, I’m using shortcuts to set up to launch a specific input: eg Netflix but the last update seems to broke this functionality. When I open the Home app, it does display current input but the stick does not switch to it unless I manually toggle it again. Not sure if its related.
I guess I had to keep the stick always on. Btw, I’m using shortcuts to set up to launch a specific input: eg Netflix but the last update seems to broke this functionality. When I open the Home app, it does display current input but the stick does not switch to it unless I manually toggle it again. Not sure if its related.
Thank you for the information. Yes you're correct, turn out the input switching had a bug when executed via automation, the newer version fix this bug.
After several testing and rebooting, the latest update is the most stable version yet. I’m able to use these shortcuts to boot the device as well as input switching. Pretty quick and smooth!
I noticed that whenever I installed some plugins on Homebridge and rebooted, the input number returns despite after renaming it without one manually. Hopefully you could provide an option to remove input number as I like it clean without one.
Still, I’m loving this plugin so much! I appreciate all your hard work 👏👏👏
Hi! Maybe this is a suggestion or I don't know. The plugin work perfect, but sometimes when I restart homebridge for other things, the plugin don´t work well and drop the next log:
This problem it's solved with the commands that you suggest on the readme file.
I don´t know the exactly correct order of the commands but should be great that commands would be executed alone when someone restart the server, right?
I don´t know Regards