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:
TCL
65S403
7106X

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

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

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

worst case you could probably send 100 volumedown’s in a row then assume it’s at 0

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.

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..

It would be versatile to expose a “SetVolume” instruction that accepted a parameter:

curl -d “” http://000.000.0.0:8060/keypress/SetVolume/{1-100}

For example:

curl -d “” http://000.000.0.0:8060/keypress/SetVolume/25 #sets volume to 25%

need this too.. google voice can set to given percentage so must be a command for this.

Amazon Alexa can also set the volume on my TCL Roku TV to a specific value. I can say “Alexa, set family room TV volume to 55” and the volume gets set, so there must be a command that Alexa is using to set the volume directly.