Audio-only notifications?

Hi, is it possible to send audio-only notifications to an iOS device (with the official HA app)?

I have a door open/close notification with a sound effect which is useful for me but I’d only like to hear it - not see it on the screen. I know I can disable the actual notification in iOS Settings but that’s per-app only and I do want to keep other notifications.

Also I’d like to have those on the phone, not on any device within the apartment.

Possible somehow? Thanks!

there an iOS section down on the page :wink:

clear_notification looks great, thank you!

1 Like

Maybe I’m misunderstanding what the clear_notification thing actually does but it definitely does not clear the notification off my iPhone lockscreen… Any clues?

Here’s the automation

alias: Notify front door open (Duplicate)
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.midoorsensor1_contact
    to: 'on'
condition: []
action:
  - service: notify.mobile_app_iphone
    data:
      message: Door
      title: Front door opened
      data:
        push:
          sound: 3rdParty_DirectionUp_Haptic.caf
        tag: door-open
  - delay:
      hours: 0
      minutes: 0
      seconds: 2
      milliseconds: 0
  - service: notify.mobile_app_iphone
    data:
      message: clear_notification
      data:
        tag: door-open
mode: single

It’s probably not me, it seems not to work for other people as well

Nothing? Anyone?

From the companion app documentation: “iOS will only clear the most recent critical notification from a given tag”

So for me it works like this:

  - action: notify.mobile_app_iphone
    data:
      message: Turning OFF all the house lights
      data:
        tag: goodnight
        push:
          sound: US-EN-Morgan-Freeman-Good-Night.wav
          interruption-level: critical
  - delay:
      hours: 0
      minutes: 0
      seconds: 2
      milliseconds: 0
  - action: notify.mobile_app_iphone
    data:
      message: clear_notification
      data:
        tag: goodnight

You’ll have to adjust the delay for the duration of the sound you want to play.