Skip to content
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

Add new alert/announce feature #291

Merged
merged 6 commits into from
Jun 2, 2022
Merged

Add new alert/announce feature #291

merged 6 commits into from
Jun 2, 2022

Conversation

marcelveldt
Copy link
Member

  • When you call play_media with the announce flag set to true:
    -- a snapshot will be made of the queue
    -- the volume will be increased with 10%
    -- the url will be played
    -- the volume is restored
    -- the queue is restored
    -- if the queue was playing it will resume, otherwise it will stay off/idle

  • When you use the TTS feature in HA on the MA player, the above will be automatically used and a small announcement sound will be prepended.

  • Added "snapshot_create", "snapshot_restore" and "play_alert" to the custom service commands for external control of this feature.

@marcelveldt marcelveldt merged commit a85d079 into main Jun 2, 2022
@marcelveldt marcelveldt deleted the alert-feature branch June 2, 2022 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant