-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nvidia Shield TV pro - unrecognized device #86
Comments
tl;dr - the latest version of adb available for Raspbian is out of date and will not authorize. The only workaround at the moment is to run Homebridge on a device for which the latest version is available (Mac, Linux or Windows PC). Longer explanation... The message adb devices you will see that your device isn't authorized, and that's the critical thing. Unfortunately, it seems this is because the version of adb available to Raspbian/Debian is too old, coming from version 28.0.2 of the SDK, when what you need is versiopn 30.x.x or later. I did get it to work from adb on a Mac, using the version from https://developer.android.com/studio/releases/platform-tools, but adb needs to be run from the device on which you are running Homebridge. If you want to run it from a Rapberry Pi, you're out of luck for the moment. :-( |
Ok, I have a workaround/solution for this. You can install a more recent (latest?) version of adb via Snap Store. First, remove your local android-tools installation: sudo apt remove android-sdk-platform-tools-common Then install Snap ( as per https://snapcraft.io/install/android-tools/raspbian but I will type out the steps in case the link ever disappears): sudo apt update
sudo apt install snapd Reboot your Pi, then
The path to adb is /snap/bin/android-tools.adb connect <ip-address>:5555 If you see errors such as
then sudo vi /etc/ld.so.preload and comment out the line |
One last set of "gotchas"...
|
Hello @RobotLimeLtd would you be so kind to explain to me like I'm five. I'm pretty sure my setup is all over the place and probably why your instructions aren't working for me. if you think I would be better off starting my server from scratch idc, I just really want to get my Shield TV in Homekit again like before. Following your steps 1- do I run all of the command in homebridge commmand line? if yes, do I need to change something or run it right from this section? pi@homebridge:/var/lib/homebridge $ now after following all your steps I did notice my shield asked for the permission. That is something I've not seen in a long time so that's progress. Thank you! :D What would you suggest I do? |
@RobotLimeLtd One more thing. What do you mean when you said this? and comment out the line /usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so |
I’m trying to install this inside a docker container on my raspberry pi since I ran into the same problems everyone else is. In the Homebridge terminal, after installing snapd, when I type Any ideas how to proceed? |
@SawkeeReemo I'm having the same issues too, did anyone ever find a fix for running Homebridge-ADB in a docker container? |
Pardon the lag, I missed your message here. And unfortunately no, there doesn't seem to exist a way to make this work anymore. I've been trying to figure it out for months. I just gave up. |
--> Still getting error in HB which says Unrecognized device
--> In Home app Shield is shown as OFF but should be shown as ON
Device:
Nvidia Shield TV pro
adb tcp 5555 without error
homebridge@raspberrypi:/var/lib/homebridge $ adb --version
Android Debug Bridge version 1.0.39
Version 1:8.1.0+r23-5
Installed as /usr/lib/android-sdk/platform-tools/adb
[03/07/2022, 14:59:24] [HomebridgeADB]
WARNING:
Unrecognized accessory - "Nvidia Shield".
Please check if the accessory's IP address is correct.
If your accessory is turned OFF, please turn it ON.
[03/07/2022, 14:59:24] Nvidia Shield E02F is running on port 32971.
[03/07/2022, 14:59:24] Please add [Nvidia Shield E02F] manually in Home app. Setup Code: xxx-xx-xxx
[03/07/2022, 14:59:24] Nvidia Shield Playback Sensor 9DE5 is running on port 37683.
[03/07/2022, 14:59:24] Please add [Nvidia Shield Playback Sensor 9DE5] manually in Home app. Setup Code: xxx-xx-xxx
[03/07/2022, 15:05:32] [HomebridgeADB] Nvidia Shield - Awake
[03/07/2022, 15:05:33] [HomebridgeADB] Nvidia Shield - Playback - On
[03/07/2022, 15:05:43] [HomebridgeADB] Nvidia Shield - Playback - Off
HomeBridge config:
"accessories": [
{
"name": "Nvidia Shield",
"ip": "192.168.1.117",
"path": "/usr/bin/adb",
"mac": "48:b0:2d:65:2d:37",
"timeout": 1000,
"interval": 1000,
"category": "TV_STREAMING_STICK",
"hidenumber": true,
"hidehome": true,
"hideother": true,
"playbacksensor": true,
"skipSpeaker": true,
"upbutton": "KEYCODE_DPAD_UP",
"downbutton": "KEYCODE_DPAD_DOWN",
"leftbutton": "KEYCODE_DPAD_LEFT",
"rightbutton": "KEYCODE_DPAD_RIGHT",
"selectbutton": "KEYCODE_ENTER",
"backbutton": "KEYCODE_BACK",
"playpausebutton": "KEYCODE_MEDIA_PLAY_PAUSE",
"infobutton": "KEYCODE_HOME",
"poweron": "KEYCODE_POWER",
"poweroff": "KEYCODE_POWER",
"volumeup": "KEYCODE_VOLUME_UP",
"volumedown": "KEYCODE_VOLUME_DOWN"
}
],
"platform": "HomebridgeADB"
}
],
The text was updated successfully, but these errors were encountered: