Automation to have Alexa Announce Visitors not working

Hi All,

i seem to be failing with the Automation here:

- id: "1742061084483"
  alias: G4 Doorbell Announcement with Alexa
  description: G4 Doorbell Announcement with Alexa
  trigger:
    - platform: state
      entity_id: binary_sensor.g4_doorbell_pro_doorbell
      to: "on"
  condition: []
  action: notify.send_message
  data:
    entity_id: notify.media_everywhere
    message: "Es ist jemand an der Tür"

I have Alexa Media Player installed. The entities for Alexa and Doorbell are there. I do get some Erros in Studo Code Server.

Can anyone help?

Actually my initial Plan was to reuse this to have Alexa announce Visitors via Speech, but it did not work.

Original Article on how to do it

- id: '1640995128073'
  alias: G4 Doorbell Announcement with Alexa
  description: G4 Doorbell Announcement with Alexa
  trigger:
  - platform: state
    entity_id: binary_sensor.front_door_doorbell
    to: 'on'
  condition: []
  action:
  - service: notify.alexa_media_everywhere
    data:
      data:
        type: announce
        method: speak
      message: Someone is at the front door
  mode: single
- id: "1742061084483"
  alias: G4 Doorbell Announcement with Alexa
  description: G4 Doorbell Announcement with Alexa
  triggers:
    - trigger: state
      entity_id: binary_sensor.g4_doorbell_pro_doorbell
      to: "on"
  conditions: []
  actions:
    - action: notify.send_message
      target:
        entity_id: notify.media_everywhere
      data:
        message: "Es ist jemand an der Tür"

oh great you are superfast. Automation seems to work without errors. But i am not getting any Announcementa from Alexa … any idea?

No sorry, I don’t use it. You may find something using the forum search: Search results for 'notify alexa' - Home Assistant Community

service: media_player.play_media
target:
  entity_id:
    - media_player.echo_spot_arbeitszimmer
    - media_player.echo_dot_gen_4_uhr_schlafzimmer
data:
  media_content_type: custom
  media_content_id: "Sprich mir nach. Es hat geklingelt: jemand steht vor der Haustür"

This seems to work, how do i combine these now :slight_smile:

Combine what?

Install

action: notify.alexa_media_yor_device
data:
  message: test

Works as intended

it is installed

this code snip to be triggert after the doorbell state changes.

also i get the Feeling that it works with single entities, not with a group (in my case “everywhere” that consists of multiple alexa’s.

Then the method I shared and your service action both work.

If you want to combine create a media player group

thats what i did, its called “everywhere” - but nothing happens. The code snip with targeting each device seems to work.

- id: "1742061084483"
  alias: G4 Doorbell Announcement with Alexa
  description: G4 Doorbell Announcement with Alexa
  triggers:
    - trigger: state
      entity_id: binary_sensor.g4_doorbell_pro_doorbell
      to: "on"
  conditions: []
 

– So how tod i add:

service: media_player.play_media
target:
  entity_id:
    - media_player.echo_spot_arbeitszimmer
    - media_player.echo_dot_gen_4_uhr_schlafzimmer
data:
  media_content_type: custom
  media_content_id: "Sprich mir nach. Es hat geklingelt: jemand steht vor der Haustür"


to combinde this – EG: Door reacts → Alexa Talks

- id: "1742061084483"
  alias: G4 Doorbell Announcement with Alexa
  description: G4 Doorbell Announcement with Alexa
  triggers:
    - trigger: state
      entity_id: binary_sensor.g4_doorbell_pro_doorbell
      from: 'off'
      to: 'on'
  conditions: []
  actions:
    - action: media_player.play_media
      target:
        entity_id:
          - media_player.echo_spot_arbeitszimmer
          - media_player.echo_dot_gen_4_uhr_schlafzimmer
      data:
        media_content_type: custom
        media_content_id: "Sprich mir nach. Es hat geklingelt: jemand steht vor der Haustür"
1 Like

Awsome it works :D. - Thank you very much