Use WebCoRE to control Roku


#1

1) Give a description of the problem
I would like to use WebCoRE to issue two commands (actually it’s four commands) to my Roku streaming stick. The commands are pause/resume and mute/unmute. Using instructions I found on the ST community forum, I was able to create a Roku device and WC sees it. Unfortunately, I have no idea how to proceed because I don’t know how to issue button commands. Does anyone have an example piston that might help?

2) What is the expected behavior?
I will use Ask Alexa to fire pistons that will mute or unmute and pause or resume the current Roku stream.

3) What is happening/not happening?
I’m not sure how to write a piston that will execute the necessary commands. I created a simple piston that successfully executes the “Home” command but don’t know what parameters to use for other functions.

**4) Post a Green Snapshot of the piston
This is as far as I’ve been able to get:

**5) Attach any logs
N/A


#3

Here’s what you’ll want to use - just checked it out and works fine for me.


#4

Thank you. I’ve managed to get the play/pause feature working using pressKey(‘Play’) but it appears there is no way to adjust the volume or mute the audio.

There are some audio commands listed in the developer documentation, so I’m not sure if my device doesn’t support them or I’m doing something wrong but none of them work.

https://sdkdocs.roku.com/display/sdkdoc/Roku+SDK+Documentation


#5

I’d been trying to do a lot more stuff with SmartThings and Roku before getting Harmony, but the Harmony hub has taken care of most of my requests. Still wish I could figure out how to launch Roku apps with webCoRE though. Another dream request would be control of individual entertainment devices connected to Harmony.