Alexa announcement in script

Here’s mine that does the same thing but works. The only difference I see is the lack of “method: all”. Check your formatting closely. An improper indent can cause all kinds of issues.

- alias: Announce mailbox opened
  trigger:
  - entity_id: binary_sensor.mailbox_vibration
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - service: notify.alexa_media
    data:
      target:
        - media_player.utility_echo_dot
        - media_player.bedroom_echo_dot
        - media_player.kitchen_echo
        - media_player.bedroom_a_echo_dot
        - media_player.kitchen_a_echo_dot
      message: You've got real, post office type, physical, mail!
      data:
        type: tts

6 Likes