alandtse / alexa_media_player

This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API.
Apache License 2.0
1.53k stars 290 forks source link

Exclude `clear_notification` from being played via TTS on Alexa media_player #2632

Closed mbenecke closed 1 month ago

mbenecke commented 1 month ago

Problem:

I'm always frustrated when using Home Assistant Alerts with the alexa_media_player integration because the done_message (e.g., clear_notification) is forwarded and played as a voice notification via TTS on Alexa devices.

This issue typically occurs when using a Notify Group that contains both mobile phones and Alexa devices. The clear_notification is useful for clearing notifications on mobile phones, but it is unnecessary and disruptive when Alexa announces "clear_notification" via TTS.

Solution:

I would like an rule where specific messages are not forwarded to TTS on Alexa devices. Specifically, the clear_notification should:

  1. Be processed by devices like Android phones to clear the notification.
  2. Be ignored by Alexa media players to prevent it from being played via TTS.

This would greatly improve the user experience, especially in scenarios where Alexa devices should not replay the done_message after an alert is acknowledged.

Alternatives:

As a workaround, I’ve considered using conditions in Home Assistant to manually avoid sending the clear_notification to Alexa devices. However, this solution is cumbersome and requires additional automations, making the system less flexible and harder to manage.

Additional context:

In the current setup, every message sent via alert to Alexa devices is played via TTS. This feature would help streamline and separate how alerts are handled between different types of devices, specifically mobile phones vs. media players.

Thank you for considering this feature request!
Best regards,
Marco

github-actions[bot] commented 1 month ago

@mbenecke this issue was automatically closed because it did not follow the issue template and this warning: IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.