-
-
Notifications
You must be signed in to change notification settings - Fork 674
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
Support alert_once/tag for TTS notifications #4440
Comments
TTS notifications have nothing to do with a standard notification and they should not be expected to behave the same.
This feels like something that can be handled by the automation in question rather than the device itself. In fact we have no way of knowing which TTS message is currently speaking as we have no insight into the TTS queue. You are asking for functionality that simply does not exist.
cant you just set the automation mode so the test does not run over and over again? Maybe add a delay to account for the speech length? This does not seem like a request that can be handled in the way you wish it to. This feels like something the automation can better handle. Also did you consider making use of the command to stop TTS? |
I realize that they're different in their actual implementation. I made sure to do my due diligence and read through the code where TTS is actually handled before making the request.
Sadly, not in this case, as the automation is also repeating to update the image in an actual notification with an updated snapshot of a camera alert upon receipt of a new MQTT value. The TTS notification is sent in tandem to get around restrictions of using Alas, I will keep looking for ways to accomplish it with changes to the automation. |
closing as we have no way of knowing what text is in the TTS queue so we cant reliably skip them, this still feels like a better job for a automation mode. |
Is your feature request related to a problem? Please describe.
I'm using TTS as a workaround for some device specific limitations which prevent using
alarm_stream
from overriding silent/DND settings. However, TTS notifications are not treated the same as a normal notification. As such, setting a tag and thealert_once
property do not have any affect. I looked through the code, and I understand that it's just not something that's supported yet.Describe the solution you'd like
Allow a tag and alert_once to be sent with a TTS notification, and if a duplicate is sent after the first has announced, then the second should not announce.
Describe alternatives you've considered, if any
Additional context
Alternatively, it'd be helpful to expose a
last_tts_notification
sensor, similar to thelast_notification
that's already present in the companion app's entity. However, that would only help for back to back notification cases, and falls apart when TTS notifications come out of sync:messageA
->messageB
->messageA
would trigger each time, due to the "last_nofication" being different each iterationThe text was updated successfully, but these errors were encountered: