I cannot get my automation in response to a actionable notification to fire. The automation the generates the push works perfectly and if I manually tigger the Clear badge It works perfectly the automation just wont fire.
Notification
ios:
push:
categories:
- name: AcknowledgeNotification
identifier: 'ackowledgenotification'
actions:
- identifier: 'acknowledge'
title: 'OK'
activationMode: 'background'
authenticationRequired: yes
destructive: yes
behavior: 'default'
Automation generating a push notification
- alias: Notification for indoor temp
trigger:
platform: template
value_template: '{{ states.climate.upstairs.attributes.current_temperature - states.climate.upstairs.attributes.temperature | int < -4 }}'
condition:
condition: template
value_template: "{{ states.climate.upstairs.attributes.operation_mode == 'heat' }}"
action:
- service: notify.aaron_email_notification
data:
message: "Home indoor temperature low!"
title: "Home indoor temperature low!"
- service: notify.ios_aarons_work_iphone_7
data:
message: "Home indoor temperature low!"
data:
push:
badge: 1
category: "ackowledgenotification"
Automation in response to push notification action, this is the one that doesn’t work unless manually triggered.
- alias: Clear badge
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: acknowledge
action:
service: notify.ios_aarons_work_iphone_7
data:
message: "clear_badge"