Create an Alarm on Alexa Device

Ok yep I use that but didn’t realize you could send commands to Alexa devices.

Example below

Awesome thanks!

Oh hey what is the content type that you specify please?

The content_type is custom

Alexa Media Player Custom Commands

Thanks that works great. don’t suppose you know how to not have Alexa say what it just did out loud?
At the moment, when I run a custom command like “create alarm on the Kitchen Echo for 6:30 a.m”, Alexa says out loud that it has created an alarm. I want this to be silent as it happens early in the morning.
I have tried setting the volume to 0 before the custom command and setting do not disturb mode on and setting mute to on but it seems to ignore that and still say it out loud.

It’s impossible to find in the Alexa App, but you can set the device to respond with a tone.
In the app select “Settings”
then the echo device,
then “Sounds & Notifications”
then “Request Sounds”
then turn on “End of Request”, which will play the tone after it recognizes your Alexa command.

You can’t change the tone, but this should make it less objectionable.

Thanks but it still says “alarm set for 6:45 on kitchen echo” after it has created the alarm.

So for now I have had to do 2 automations:

Automation 1

  1. Set the volume on an echo down the other end of the house to 0
  2. Send custom command to this echo to create the alarm on my bedroom echo

Automation 2

  1. Set the volume on the echo that the command was sent to back to normal levels.

Seems like you can’t do this in the one command. Even if I try from an Alexa routine it wont allow you to set the volume back after a custom command.

This has the result of speaking very quietly (apparently volume level 0 isn’t actually muted) down the other end of the house when it create the alarm and then setting the volume back to normal.

It is interesting, i never heard the command through Alexa device, just a short beep and it is executed after all. Probably, there is some setting in alexa app itself?

Amazon has not implemented a way to disable or completely mute the alarm confirmation message… even though people have been asking about it for years now. What you did is exactly what I ended up doing… call the service on the echo in the basement to set the alarm in the bedroom.

You can, however, do it in one automation. You just need to add a delay action between your alarm creation action and your media_player.volume_set action. I use a 20 sec delay just to give Alexa time to finish “thinking” and “talking”, but you may be able to get away with something shorter (I haven’t bothered testing).

Here’s another idea. The reply comes to the Alexa unit that issued the command. So use one without a speaker. Like the Echo Input

That’s an interesting idea…

I wouldn’t use a $50 Echo Input… but it might worth picking up a Flex and desoldering the crappy speaker or converting an extra RaspPi Zero to have a quiet target for Alexa commands.

Most early Echo devices have a speaker jack, but I wouldn’t want no load on the amplifier. Solder a pair of 16Ω from the left and right channels to ground.

Thanks. Yeah I did also read about a guy who used an old unused echo and just stuck a headphone jack in it to mute it.

Fixed it…well solved my problem anyway.
I was thinking that all I am trying to do is play an alarm sound on an echo at a given time.
So started looking into just playing mp3 files from HA on an echo and sure enough you can!
So you just need to find an alarm tone mp3 file on the internet of your choice and then upload to HA and play from your automation. This YoutTube video helped (4) ALEXA CUSTOM MP3’s (Using Home Assistant) - YouTube

There are a number of sounds available in the Alexa sound library which can be called from home assistant.

service: media_player.play_media
target:
  entity_id: media_player.guest_room
data:
  media_content_type: sound
  media_content_id: amzn_sfx_scifi_alarm_04
2 Likes

Didgerdrew is this still working, I can trigger play sound but Alexa devices do not play.

Yes, it is still working. Not all sounds in the Alexa sound library work, but AFAIK all the one’s listed on the AMP wiki link above are working.

I know this is an old thread, however one of the projects I’ve been working on is an alarm system that notifies the entire house if a specific camera detects motion for 5 seconds or more during a specific time when the system is armed (nighttime/sleepy time). Whereas I’m not a real big fan of Alexa (she who should not be named) and will eventually move to a more ‘off cloud’ solution. This particular YAML does a pretty good job and could be of use to some. I have it Max out the volume on all Alexa’s and run the sound sequence twice and then revert back to a 75% volume level. Again I hope this of some use to those who seek it.

alias: Armed Garage Camera at NIGHT
description: ""
trigger:
  - type: motion
    platform: device
    device_id: eebadcca005965d4b80e92330fdd464f
    entity_id: 3656bfa8d80695601c41d1703708cf5c
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 5
condition:
  - condition: and
    conditions:
      - type: is_on
        condition: device
        device_id: eebadcca005965d4b80e92330fdd464f
        entity_id: bfb5269d20cba36c3f504196ca389f7e
        domain: binary_sensor
      - condition: time
        after: "22:00:00"
        before: "05:00:00"
        weekday:
          - sun
          - mon
          - tue
          - wed
          - thu
          - fri
          - sat
action:
  - service: media_player.volume_set
    metadata: {}
    data:
      volume_level: 1
    target:
      entity_id:
        - media_player.office
        - media_player.scott_s_2nd_echo_pop
        - media_player.kitchen
        - media_player.livingroom
        - media_player.studio_alexa
        - media_player.paige_s_bedroom
        - media_player.scotts_bedroom
    alias: Volume MAX on Alexa
  - service: media_player.play_media
    target:
      entity_id:
        - media_player.office
        - media_player.scott_s_2nd_echo_pop
        - media_player.kitchen
        - media_player.livingroom
        - media_player.studio_alexa
        - media_player.scotts_bedroom
        - media_player.paige_s_bedroom
    data:
      media_content_type: sound
      media_content_id: amzn_sfx_scifi_alarm_04
    alias: Sound Alarm on Alexa
  - service: media_player.play_media
    target:
      entity_id:
        - media_player.office
        - media_player.scott_s_2nd_echo_pop
        - media_player.kitchen
        - media_player.livingroom
        - media_player.studio_alexa
        - media_player.scotts_bedroom
        - media_player.paige_s_bedroom
    data:
      media_content_type: sound
      media_content_id: amzn_sfx_scifi_alarm_04
    alias: Sound Alarm on Alexa
  - service: media_player.volume_set
    metadata: {}
    data:
      volume_level: 0.75
    target:
      entity_id:
        - media_player.office
        - media_player.scott_s_2nd_echo_pop
        - media_player.kitchen
        - media_player.livingroom
        - media_player.paige_s_bedroom
        - media_player.studio_alexa
        - media_player.scotts_bedroom
    alias: Volume 75% on Alexa
mode: single