-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set volume for notifications #1792
Comments
@tbarbette Not sure if this is helpful or not, but I created an AppDaemon script awhile back to do exactly this (as well as some other things). You may have to fiddle with the delay a bit for your environment to give the echo time to respond to the set_volume request. You can call it via an event as follows...
|
Thanks but it's not what I'm looking for :) |
If I understood your issue right then I faced this problem too. I wrote a script (maybe not the best way) for that:
|
The temporary input to remember the volume is a nice hack, but with multiple devices I have to make 3 of them, it would deserve a built-in feature :) |
I absolutely agree. I set the mode to queued to avoid this problem as a tradeoff only to play one device simultaneously. |
The issue has received no activity for 60 days and will be closed in a week. |
Nooo :) We want that feature ! :p |
The issue has received no activity for 60 days and will be closed in a week. |
Nope, still want the feature ! :) |
The issue has received no activity for 60 days and will be closed in a week. |
Still not solved and no easy way to solve :) |
This would be super useful! |
Since Then simply set the new volume level in your script/automation, play the media and then set the volume back to the saved volume level from the var:
Sequence to change volume & restore.to previous volume:
|
I have found often times volume_level is not set for a device so you can't retrieve it to save and restore. |
Up! We still need it! |
If the |
Then propose a workable solution! |
how did you do that? |
The issue has received no activity for 60 days and will be closed in a week. |
Updoot |
That's Possible? |
What? |
There is another way arround this issue: You can let the volume where it is and play with the message itself using ssml tag as described here: I personaly often use the whispering tag for notification at night, and the prosody to increase the volume of some notification above the normal speach volume. This removes the need to memorize and reset the volume, but is not as effective if the volume as been set to extreme level... |
Thanks @BBESINET for this workaround. How do you concretely use the tags in HA though? @danielbrunt57 this seems like a possible workaround indeed. I think having the ability to simply set the volume_level in play_media would be much simpler. |
an exemple for the whisper:
another one for an Alexa doorbell using the prosody:
as shown in the link of all supported ssml tags you can apply the tag to only a portion of the text if needed:
|
The issue has received no activity for 60 days and will be closed in a week. |
Up! We still need it! |
July 2024 and still haven't this feature :( It's too bad that a "simple" feature like that isn't avalable yet |
And tomorrow it'll be August! It seems so far to really only be me working hard on this integration and I'm new to the game. I'm still learning the ropes, plus I (like most people) have bills to pay and do not have endless free time. Everyone thinks it's such a simple feature to implement. Stick your head inside the code and tell me how to do it... |
Is your feature request related to a problem? Please describe.
Enable volume_level in short play_media notifications, like:
Currently, it doesn't work, volume_level is not supported.
Describe the solution you'd like
One way to implement it would be to record the current volume, play the notification, then set back the volume. Consider I have 3 devices, doing it manually is complicated...
Describe alternatives you've considered
I set the volume to maximum on the 3 devices, play my doorbell chime, then set it back to 0.5. But depending on the room it's too much or not enough...
The text was updated successfully, but these errors were encountered: