-
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
Change and restore volume for announcements #2735
Comments
This can be done within the automation itself. You can add something like the below both before and after the tts announce action:
Let me know if it works. |
I'm not quite sure if I've understood you correctly. My problem is that I don't know what the current volume is to go back to it after the tts. Example: However, if the music is now playing at level 3, I would set it back to 1 after the TTS and it would be too quiet. It would therefore be great if there was an announce feature that remembers the original volume, plays TTS or other at the desired volume and then jumps back to the original volume. |
For this, you could refer to https://community.home-assistant.io/t/turn-back-previous-volume-state-of-media-player/233396/ Specifically https://community.home-assistant.io/t/turn-back-previous-volume-state-of-media-player/233396/16 |
Great, that works. So do you think the feature request is unnecessary? The Sonos integration offers such a parameter and does the work. |
The feature request is definitely a good idea. This is just a stopgap solution. |
I'm glad to hear that. Many thanks for the quick help |
Perhaps another contributor might have an idea on how to do this and run with it. |
I believe the stopgap solution provided above should work for most people. |
That is the easiest for everyone to use. And if you need to determine how long the announcement is going to take before you restore the volume level, you can calculate a delay based on the word count in the message. I use this technique in my central
|
@danielbrunt57 It's been tagged as help wanted. who knows, random people do submit enhancements if they want. |
#1792 for historical info |
NOTE: For a feature to be created it has to be doable in the Amazon app because we are basically replicating the app for HA. If you can't find it in the app, we probably can't create it here.
Is your feature request related to a problem? Please describe.
no
Describe the solution you'd like
I often use my echos for TTS announcements, e.g. the doorbell rang, washing machine ready.
However, my echos are often set to volume 1.
It would therefore be great if there was a parameter that could be added to a TTS announcement that raises the volume to a defined value, executes the TTS announcement and then resets the volume to the old value.
With Sonos integration, this is possible via the “announce” parameter.
Describe alternatives you've considered
i dont know any alternative
Additional context
The text was updated successfully, but these errors were encountered: