#TTS Resumes Music That Wasn't Playing

1 messages · Page 1 of 1 (latest)

sly pecan
#

I searched around but didn't see any posts about this. Apologies if I missed it. But I have an automation that tells me when my porch door is locked and unlocked. It sends a message via TTS. This works great, but occasionally it resumes music that was paused from earlier. I'm using Music Assistant to pass through the media_player entity. Anyone else have this issue?

Example code:

alias: Door Lock Status Notification
description: Notifies when porch door is locked or unlocked
triggers:
  - entity_id: lock.porch_lock
    trigger: state
conditions: []
actions:
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state == 'locked' }}"
        sequence:
          - action: tts.cloud_say
            data:
              entity_id: media_player.everywhere
              message: >-
                The {{ trigger.to_state.attributes.friendly_name}} has been locked.
mode: single
wooden arrow
#

Sorry for not having an answer but I was having the same issue with my garage door TTS.

sly pecan
#

Hey--just thought through this. If I figure out an alternative, I'll let you know. But we should likely rework our automations to add some conditionals. So check if musicis playing and if so, then resume. Otherwise just do TTS without resuming

sly pecan
#

And I looked at my YAML again--shouldn't be a conditional issue as the TTS command doesn't require checking if music is playing or paused. I'll read into TTS more/restart HA/test this week. Might just be a weird blip on my system

#

"Currently the only (known) player types that support native announcements are Sonos S2 speakers and Snapcast. Hopefully more player types will follow."

Maybe I just send my announcements to my Sonos S2 speakers for now rather than my Everywhere group, which includes S2 + 2 homepods

wooden arrow
#

Haven't been able to reply in a few days. Busy one night, next night was having some Matter issues, and then last night had no internet. Hopefully be able to get back up and running. I'm using an Apple HomePod Mini for my MA. Hopefully others will be added.