Full Nvidia Shield Control using Home-Assistant/Hassio and Node-red
I have recently managed to get full control of my Nvidia Shield in HA/Node-red:
Firstly, you need to switch adb_debug on the shield – there are plenty of videos on youtube to help you do that (usually via developer options etc).
Then you add the following:
https://www.home-assistant.io/integrations/androidtv/
Look here for the intents and the full codes ( https://gist.github.com/mcfrojd/9e6875e1db5c089b1e3ddeb7dba0f304 ), but see my snips below for various examples, as it took me ages to work out how to get from the support pages to actual results:
Firstly, this is what I have in my configuration.yaml
media_player:
– platform: androidtv
host: YOUR.SHIELD.IP.HERE
name: “Nvidia Shield”
adb_server_ip: 127.0.0.1
adb_server_port: 5037
apps:
com.google.android.tvlauncher: “Home”
com.google.android.youtube.tv: “Youtube”
com.amazon.amazonvideo.livingroom: “Amazon Prime Video”
com.plexapp.android: “Plex”
com.netflix.ninja: “Netflix”
com.google.android.tv: “Live Channels”
Once this was all set up, I then proceeded to write some scripts so that I would be able to operate the shield. You can also see the commands I used to test the communication with the Shield.

Service Calls testing the Nvidia Shield Control

I then went into node-red to see if i could interact with it. After some online support help from Facebook and some trial and error, I managed to get it to work. Again see the snips for details

Full Nvidia Shield Control implemented via Node-red


This should be enough for you to get going. The main problem I found was that the support documents whilst useful, didn’t really bridge the knowledge gap that I had. I couldn’t go from ADB commands to intents. Eventually after reading many posts and searching various forums I managed to crack it.
If any of you are in the market for an Nvidia Shield or an Android TV I would strongly recommend the Nvidia Shield. I bought the first generation in 2015 and it’s still a beast even today. It’s showing no signs of slowing down and Nvidia are still providing me with OS updates. It really is a great little box.
See below for the most recent variant on Amazon.
I hope this helps!
