I’ve searched here but been unable to find anything about how to script telling Alexa to set a separate media player’s volume to a specific level specified in an Alexa voice command (such as “Alexa, set Denon volume to 40”.) Has anyone done this? It occurred to me that I could use input_number.volume to store the current volume and then create a script that adds a specific value to it, but I’d prefer to be able to specify the exact value in the voice command and have the HA script act on what it receives when called.
This already works out of the box. Your media player just needs to have a volume slider. It can’t be a media player that only has increase/decrease buttons.
Thanks, I know I can set the level to a specific amount in a script using media_player.volume_set, the question is how do I set up the script so it will accept a variable spoken level value from Alexa that can vary with each invocation of the script? Thus the idea is to have the script set the level value to variable X, where X is whatever spoken value Alexa heard?
It means you didn’t reply correctly. If you click the reply at the bottom of the thread, only the thread owner gets notified. Reply to a comment and the commenter gets notified.
Yeah, I know, I’m just wondering if there’s another way in case the media player doesn’t have a slider.
Because I’ve tried at my instance and didn’t got it to work, just by saying alexa turn the volume down
Seems like the AdjustVolume is just looking for the volume delta, not absolute, so you could only send N volume down commands via IR. Maybe HA is not using this, will do some testing, Thanks Petro!