Icinga2: Notification for confirmed alarms?

Hello all,

I would like to send a notification to a user group via email as soon as I confirm an service problem.

For this I have made the following settings in the Icinga2 Direcor:

apply Notification “Services” to Service {
command = “notify_service_by_mail”
interval = 0s
period = “everytime”
assign where match("*", service.name)
states = [ Critical, OK, Unknown, Warning ]
types = [ Acknowledgement, Custom ] user_groups = [ “Admins” ] }
user_groups = [ “Admins” ]
}

object User “Marco” {
email = “marco@xxx.de
enable_notifications = true
period = “everytime”
states = [ Critical, Down, OK, Unknown, Up, Warning ]
types = [
Acknowledgement,
Custom,
DowntimeEnd,
DowntimeRemoved,
DowntimeStart,
FlappingEnd,
FlappingStart,
Problem,
Recovery
]
groups = [ “Test”, “Admins” ]
}

Now when I confirm a sensor that is in Warning, or Critical status, no notification is sent.

Screenshot 2021-05-27 075613

What do I wrong?

Thx for any help!

Marco

no idea? is the configuration right?