Notify.sound silence

i created home automation with pir and magnetic reed switch sensors.
if a movement is detected i get a pushbullet or facebook messenger text message with the alert.
(by the way which notification you guys use and is the ‘preferred’ one? )

my problem is the shell_command notifier.

notify:

  • name: omxplayer
    platform: command_line
    command: ‘omxplayer /home/homeassistant/.homeassistant/mp3/alarm.mp3’

it sends a 2min audio from the raspberry audio-out jack.

how can i add a silence button slider to disable the sound in case the alarm was triggered by our fault?

thanks

Could you just set a condition of the notifier not to run when your presence detection is “home”?

I’m in the process of changing my notification logic on my automations to route appropriately to either TTS > Google Home or Pushbullet based on whether I am home or not home.

the notification is triggered only if my wife or me forgets to disarm it and enter the home.
the text notifications are one shot off, but the sound is playing for the duration. i would like to disarm it manually…

this is the main issue

You could make a switch and just disable the automation itself; I do this in an automation I use to notify my about the rain. I use a delay and turn off the automation directly for 30 minutes so I don’t get to many notifications but the same idea could be done manually.

- alias: 'Raining'
  trigger:
    platform: state
    entity_id: sensor.dark_sky_precip_intensity
    from: '0'
  action:
    - service: tts.google_say
      entity_id: media_player.living_room_home
      data_template:
        message: 'Excuse me Robert, but is currently {{ states.sensor.dark_sky_precip.state }} ing and it is {{ states.sensor.dark_sky_temperature.state | int }}degrees outside.  Forecast says {{ states.sensor.dark_sky_minutely_summary.state }}.'
        cache: false
    - service: automation.turn_off
      entity_id: automation.raining
    - delay: 00:30:00
    - service: automation.turn_on
      entity_id: automation.raining

This might also help…he puts in the control input