Control andoird TV/Nvidia shield?

Anyone know of a way to control my Nvidia shield? All I want it to do is open an app when a command is said. So if I say hey Google, it’s movie time (or something similar) it’ll turn on my TV and the shield, and on the shield open the Plex app.

Is there anyway to do this? With a rm pro? The shield doesn’t have ir, but it has Bluetooth and WiFi. I can also get a usb ir adapter…

Any ideas?

Thanks
Gershy13

Rm would work but I can’t find the codes anywhere. The old app has a shield tv remote though. I seem to remember someone saying it can send and learn at the same time. But then you are limited to a known state to launch any apps. Cec might work to turn on then Automagic allows curling an endpoint to trigger a macro.

I’m a bit confused… What do you mean by the old app? And the RM pro would be able to control the shield? And what’s automagic? Sorry I’m just really new to this whole home automation thing and really want to get it working…

Broadlink have their old app econtrol which let you download all sorts of user submitted remote layouts but no Alexa support. The new ihc app from broadlink has Alexa support in some markets but no downloadable controls.

The broadlink component for HA let’s you learn directly from the broadlink. So you can in theory out the broadlink in learn mode from HA then use the old app to send the code from the downloaded control in the old app.

The problem with any voice control you might want is that it is all on and off which isn’t very user friendly. Automagic is like tasker but easier to use. You set up macros to run directly in android and they can be called by ha over the network via http. Hence you would set up a, for example, “netflix” flow in automagic, set up a command line switch in HA to curl that http location, then expose via emulated hue if you want voice control. You can then say “turn on netflix” and it will. You could in turn, if using a pi, combine the netflix switch in a scene, with the first action of sending an hdmi cec on command to the shield, then triggering the post to kick your netflix action in automagic into action.

Awesome thanks… I’ll look into this. Hopefully I can get it working…

If you do let me know as this is all theory atm

yeah i will… probably wont be any time soon… im just planning for the future.

Just a bit more info. I tried this and you can curl the endpoint created by automagic and it wakes the shield which then wakes up my amp and tv via hdmi cec. So the broadlink isn’t needed.

In case it wasn’t clear before btw the shield does have an ir sensor.

im confused as to what any of that means, but the latest nvidia shield tv does not have an ir sensor, atleast not the 16gb model.

Ah I have the old one which did. Automagic sets up a URL that you can send a get request. It receives it and performs an action on the shield when it does. This wakes the shield and turns on my tv.

Awesome I need to try this out, is it hard to setup?

Really easy. You’ll need to buy automagic from the play store in a browser then install it to the shield. Hop on over to the shield and open it from sideload launcher (it won’t show up as a normal tile). Then you can use the right stick as mouse control.

Delete the flows it gives you as default, create a new one. First step of the flow should be http endpoint (or similar wording I’m not in front of the shield right now). I’ve specified mine as /netflix/open for example.

The next action on this example is to launch netflix.

You then create a command line switch to curl this URL using a get request. Check the command line switch doco.

That should be it. You can set up an endpoint for any action that automagic supports. And as long as the shield is plugged in via hdmi to a Cec capable tv, when automagic does its thing it’ll wake the shield, therefore also turning on your tv via hdmi. And in my case, my amp also. I’d suggest giving everything a fixed ip in your router.

The voice control part would just use emulated hue to expose the switch, so then you say “turn on netflix” which turns the command line switch on in HA, fires the command to automagic, and voila everything turns on and netflix opens.

2 Likes

awesome, i havent got my shield yet, but this looks fairly easy… Thanks. Im planning to turn on my tv and amp with a broadlink rm pro, so i dont think i need cec, but anyway.

I already have tasker, is it possible to do it with that? Or shall i just spend £2.40 and get automagic?

I’ve not tried it with tasker as it is super simple with automagic and it’s so cheap for the functions you get out of it

thanks… ill just buy it… are there any videos on how to get this working? It would be awesome to be able to follow a video… Im a little confused about what curl and stuff is…

Curl is basically a Linux tool to submit http requests. I don’t know of any videos though I’m planning on starting up a blog soon for all my little home automation experiments so may put something up there once that project gets going. The app should explain itself though and you should be able to simply change the URL from the command line switch examples.

thanks, yeah the blog would be awesome… i still havent got my nvidia shield, so maybe you’ll be done when i get it?

There’s always a possibility!

awesome thanks