had this action in a multiple condition automation before, but since I use DISMISS in several actionable notifications, thought to lift this and create a global automation for the action.
However, even though the automation fires, (last_triggered is set)
the badge isn’t reset (as it was in the full automation).
Am I missing something crucial here? Nothing in the logs btw.
- alias: Mobile app - Dismiss
id: Mobile app - Dismiss
trigger:
platform: event
event_type: mobile_app_notification_action
condition:
>
{{trigger.event.data.action == 'DISMISS'}}
action:
service: notify.mobile_app_calltheboss
data:
message: clear_badge
please have a look?
btw, this still works:
- alias: iOS - Dismiss
id: iOS - Dismiss
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: DISMISS
condition: []
action:
service: notify.mobile_app_calltheboss
data:
title: iOS notification
message: iOS - Dismissed, badge reset
data:
push:
badge: 0