Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
MrDalek
Level 7

Querying and adjusting the Roku TV's volume

Are there plans to expose the TV's volume level and/or volume control in the api?

I would like to automate my Roku TV's volume in response to events (e.g. when it is 8pm, turn volume to  X or change the input to PlayStation and set volume to Y)

Device Info:
<vendor-name>TCL</vendor-name>
<model-name>65S403</model-name>
<model-number>7106X</model-number>
0 Kudos
5 Replies
joetesta
Level 10

Re: Querying and adjusting the Roku TV's volume

Have you tried these?
https://sdkdocs.roku.com/display/sdkdoc/External+Control+API#ExternalControlAPI-ExternalControlServi...

Some Roku devices, such as Roku TVs, also support:
VolumeDown
 VolumeMute
 VolumeUp
 PowerOff
Roku TV devices also support changing the channel when watching the TV tuner input:
ChannelUp
  ChannelDown
Roku TV devices also support keys to set the current TV input UI: InputTuner
 InputHDMI1
 InputHDMI2
 InputHDMI3
 InputHDMI4
 InputAV1
aspiring
0 Kudos
MrDalek
Level 7

Re: Querying and adjusting the Roku TV's volume

Yes, I am aware that I can send commands to increase/decrease the TV's volume, but I do not believe there is a way to know what the current volume level is or whether or not the TV is muted.

If I knew the level, then I could send the correct number of increases/decreases to adjust the TV to the desired volume
0 Kudos
joetesta
Level 10

Re: Querying and adjusting the Roku TV's volume

worst case you could probably send 100 volumedown's in a row then assume it's at 0
aspiring
0 Kudos
MrDalek
Level 7

Re: Querying and adjusting the Roku TV's volume

yea, but that seems kludgey.... I did run a quick test and it takes ~30seconds to go from 100 to 0.... which would get annoying if I had the volume adjust when ever I open the Netflix app.
0 Kudos
joetesta
Level 10

Re: Querying and adjusting the Roku TV's volume

yeah it's definitely a hack, I could be wrong but my guess is you will be waiting a long, long time for Roku to add any such feature (expose TV's volume) assuming it's possible..
aspiring
0 Kudos