This SmartApp creates virtual button devices for the apps installed on your Roku device. I’m using this with a Google Home to switch inputs on my TCL Roku TV, for example “OK Google, switch to the xbox” triggers IFTTT to press the “Roku: Game console” button.
• Install the requirements above and then launch the “Roku (Connect)” SmartApp to discover and pair your Roku device
• Launch the Roku Virtual Buttons SmartApp and select your Roku device, then tap the Done button
When the settings are saved, the SmartApp will create button devices for each app on your Roku, they should appear in your My Home list with the prefix "Roku: "
Thanks for this magic trick! Works awesome I do have a question and comments once I get to play with this. I have google home and I can’t wait to test this, Have not figured out a way, or the command to turn off the TV via ST. I, would like to turn off the TV by voice command if the remote is not handy or “lost” at the moment.
I use a Logitech Harmony to turn my tv on and off, but it should be possible to add another button tile to turn the TV off via the remote API. It wouldn’t be able to turn the TV on, however, as it disconnects from the WiFi network a few minutes after going into standby mode. I’ll look into adding an “off” button to the list of actions.
I also get an error. It says, via red error ribbon on the top of the screen, “An unexpected error occurred.” This happens right after I launch the Roku Virtual Buttons SmartApp and select my Roku device, give it a name and then tap the Done button.
java.lang.IllegalArgumentException: Command ‘getAllActivities’ is not supported by device 9911e824-c9bc-4ea0-94a1-83073e4b44e7 of type ‘Roku’. Supported commands: [on, off, refresh, startActivity, homeButton, selectButton, previousButton, nextButton, launchAppId, startActivityWithContent, pressKey] @ line 44
Cool. I wanted to see if this will work if I have a Roku 3 as opposed to a Roku TV. Also, I have Sling TV that I watch on my Roku. Is there anyway to create a virtual button so I can go into Sling and watch a particular channel?