Obviously I would not want to pre-fill in the message, but if i wanted to create a notify group with this device in addition to another, how would the yaml look? Unfortunately the template at Group - Home Assistant isnāt helping.
So I realize that this is far from perfect as I, myself, am fairly new to HA and YAML. This may not be the cleanest, most elegant or most efficient, but it does work. When the mailbox has been closed, I have an alert that goes out telling two of my echo devices (in the office and kitchen) to state that the mail has been delivered.
You can customize this for whatever needs you may have (multiple door contacts being opened, instead of closed), temperature alerts, taunting of intruders, whatever, use your imagination.
alias: Mailbox has been closed
description: ""
trigger:
- type: opened
platform: device
device_id: f0cac620b9d2097617c9fb54c90832d1
entity_id: binary_sensor.mailbox_sensor_state
domain: binary_sensor
condition: []
action:
- service: notify.alexa_media_office_echo_2
data:
data:
type: tts
message: Your mail has been delivered
target: notify.alexa_media_office_echo_2
- service: notify.alexa_media_kitchen_echo_2
data:
message: Your mail has been delivered
data:
type: tts
target: notify.alexa_media_kitchen_echo_2
mode: single
Confirm this still works as of June 2023. Was the missing syntax vs other potential solutions I have seen and tried. I finally have this working after 6mos of trying. It will ding the announcement tone before speaking the text.
I know this is an old thread, but for some time I have a failing automation saying the automation uses an unknown action: notify.alexa_media
My automation has a number of targets to announce a message in multiple Alexa devices.
My yaml is pretty much the same as post 9 just above, the only difference is that I use type: TTS rather than announce
Iām currently on 2024.8 but I think this hasnāt been working for a number of releases now. Is anyone aware if this syntax needs to be updated and why I canāt use notify.alexa_media ?
Hi thanks for this, unfortunately itās not resolved my issue.
I have a repair item open for an automation that is saying the automation uses an unknown action ānotify.alexa_mediaā
The yaml for the automation is below and usually announces when someone is entering the home approach zone.
alias: Person Arriving Home
description: Issues an Alexa notification when people arrive out our home.
trigger:
- platform: zone
entity_id:
- person.person1
- person.person2etc
zone: zone.home_approach
event: enter
condition: []
action:
- metadata: {}
data: {}
target:
entity_id: timer.outsideactivitylighting
action: timer.start
- data:
target:
- media_player.office
- media_player.kitchen
- media_player.lounge
- media_player.study
- media_player.master_bedroom
data:
type: tts
message: "{{trigger.to_state.name}} is about to arrive at home."
action: notify.alexa_media
mode: single
I also tweaked the syntax as follows but with the same result:
alias: Person Arriving Home
description: Issues an Alexa notification when people arrive out our home.
trigger:
- platform: zone
entity_id:
- person.person1
- person.person2etc
zone: zone.home_approach
event: enter
condition: []
action:
- action: notify.alexa_media
metadata: {}
data:
message: "{{trigger.to_state.name}} is about to arrive at home."
target: >-
media_player.office media_player.kitchen media_player.study
media_player.lounge media_player.master_bed_tv
mode: single
Yes, although I have just checked that my external url is a custom one, not the nabu Casa one, so I have just reconfigured my DNS and nabu Casa to use a custom domain. I will check if this has any impact on this in a few hours.
I am having the same issue as reported above where none of my automations are sending out alexa_media notifications when I have multiple echos listed.
action: notify.alexa_media
data:
message: Darren! The front door has been opened
target: media_player.office media_player.bedroom_echo
data:
type: announce
if I list a single device it works fine, with with type as āannounceā or āttsā. I have even created a media helper group with the devices listed and it still doesnāt send out the notifications if I select that.
any help on resolving this would be greatly appreciated.
AMP = 4.13.2 (with modified manifest.json file to bypass 2FA issue)
HA Core = 2024.9.3
Supervisor = 2024.09.1