Automation not working as before

The below automation used to work perfectly before. I am on Home assistant 2024.7.4. I will appreciate any assistance to make it work again. Thank you.

alias: FrontDoor Dayactivities
description: ""
trigger:
  - platform: device
    device_id: xxxxx702fbeb1xxxxx13cxxxxxx14c
    domain: lock
    entity_id: lock.frontdoor_2
    type: unlocked
condition:
  - condition: time
    after: "04:21:00"
    before: "19:59:00"
action:
  - service: media_player.volume_set
    data:
      volume_level: 0.81
    target:
      entity_id: media_player.living_room_show
  - service: notify.alexa_media
    data:
      message: Attention! Front Door is open
      target:
        - media_player.living_room_show
      data:
        type: announce
  - delay:
      hours: 0
      minutes: 0
      seconds: 2
      milliseconds: 0
  - service: notify.alexa_media
    data:
      message: >-
        <audio
        src='https://uabuid.nabu.casa/local/audio/greeting.mp3'/>
      target:
        - media_player.living_room_show
      data:
        type: tts
  - delay:
      hours: 0
      minutes: 0
      seconds: 2
      milliseconds: 0
  - service: media_player.volume_set
    data:
      volume_level: 0.7
    target:
      entity_id: media_player.living_room_show
mode: single

Hi raub21,

I can see what it is supposed to be doing.
What is it doing instead?
Not playing at all?
Playing one or the other?
Playing something else?

Hi @Sir_Goodenough . Thank you for willing to assist. It s playing one or the other or just a beep to increase the volume

Then my suggestion is to add a delay: action between the commands to allow the prior action to complete before it sends the next to your puck. The amount of delay depends on the tts or mp3 length, so you will have to trial and error to find just right.

Thank you again. I tried to put the delay between the actions but that it did not help. However, I switch to tts from announce and it seems to work, Wlll continue to test. Thank you again