Alert component

Can someone explain what the “can acknowledge” variable does?
I do get notifications on my iOS device but they look and behave the same, whether “can acknowledge” is set to true or false.

Is it possible to add a custom sound to an alert?
I can with the notify service, but it would be great if this was also possible with alerts.

It means you can disable (acknowledge) the alert.

As for adding custom sounds, if you can do it in the notification, you can do it here.

Yes I know I should be able to acknowledge the alert but there is no difference in looks and behaviour og the push notification I get on my iOS device.
I guess there should be a difference. I can make the notification dissapear but after repeat time a new one just pops up again.

Notifications aren’t alerts themselves. It may be that however you’re making it disappear isn’t acknowledging it - I don’t run iOS so I’ve no idea.

You can certainly acknowledge it in the HA UI.

Okay.

How do you think that I can include a custom sound to the alert?
Should I combine these 2 somehow?

      - service: notify.notify_group
        data:
          title: "Alert"
          message: "Alert"
          data:
            push:
              sound: "US-EN-Alexa-Front-Door-Opened.wav"
alert:
  garage_door:
    name: Garage is open
    done_message: Garage is closed
    entity_id: input_boolean.garage_door
    state: 'on'
    repeat: 30
    can_acknowledge: true
    skip_first: true
    notifiers:
      - ryans_phone
      - kristens_phone

From checking the docs, it’s probably something like

alert:
  garage_door:
    name: Garage is open
    done_message: Garage is closed
    entity_id: input_boolean.garage_door
    state: 'on'
    repeat: 30
    can_acknowledge: true
    skip_first: true
    notifiers:
      - ryans_phone
      - kristens_phone
    data:
      push:
        sound: "US-EN-Alexa-Front-Door-Opened.wav"

Thanks. I will try it out in a few days :slight_smile:

I’m not sure that can_acknowledge actually does anything.

What I would expect is that tapping on the alert would cancel the repeats and end the alert without changing the sate of the watched entity.

However, I can’t seem to have it work that way.

Has anyone experienced it working differently?