How do I configure an actionable Notification?
I get the notification but I only can dismiss it…
Automation:
- alias: "Alarm triggered"
trigger:
platform: state
entity_id: alarm_control_panel.ha_alarm
state: 'triggered'
action:
service: notify.iOSApp
data:
message: "Alarm triggered"
data:
push:
badge: 5
category: "ALARM"
config:
ios:
push:
categories:
- name: Alarm
identifier: 'ALARM'
actions:
- identifier: 'SOUND_ALARM'
title: 'Sound Alarm' # Needs to be short!
activationMode: 'background' # foreground or background. The mode in which to run the app when the action is performed.
authenticationRequired: yes # A Boolean value indicating whether the user must unlock the device before the action is performed.
destructive: yes # A Boolean value indicating whether the action is destructive. When the value of this property is true, the system displays the corresponding button differently to indicate that the action is destructive.
behavior: 'default' # default or TextInput. When TextInput the system provides a way for the user to enter a text response to be included with the notification.
- identifier: 'SILENCE_ALARM'
title: 'Silence Alarm' # Needs to be short!
activationMode: 'background' # foreground or background. The mode in which to run the app when the action is performed.
authenticationRequired: yes # A Boolean value indicating whether the user must unlock the device before the action is performed.
destructive: no # A Boolean value indicating whether the action is destructive. When the value of this property is true, the system displays the corresponding button differently to indicate that the action is destructive.
behavior: 'textInput' # default or TextInput. When TextInput the system provides a way for the user to enter a text response to be included with the notification.
textInputButtonTitle: 'Silencio!' # Only when behavior is TextInput.
textInputPlaceholder: 'Placeholder' # Only for iOS 10 when behavior is TextInput.