I have multiple automations that include sending notifications to my android phone, with the notifications including a couple of buttons for doing various things. The buttons are usually ‘do the thing now’ or ‘stop asking’.
These notifications are sent at various times while I’m at home. For when I’m out, they flip a boolean helper thats used by my ‘get home’ automation to send the same messages as I get home, so I end up with a to-do list of notifications.
This all works perfectly when I’m at home and they happen at different times, but when I arrive home and get multiple reminders at once then dismissing one of them dismisses them all.
1 original message:
metadata: {}
data:
message: Feed the fish now?
title: It's fish feeding time
data:
ttl: 0
priority: high
notification_icon: mdi:fish
tag: FishFeeding
sticky: "true"
actions:
- action: DISMISS_ASKING
title: Dismiss
- action: START_FISHFEEDING
title: Feed now
action: notify.mobile_app_pixel_8
1 sent when I choose Dismiss:
metadata: {}
data:
message: clear_notification
title: FishFeeding
data:
ttl: 0
priority: high
tag: FishFeeding
action: notify.mobile_app_pixel_8
2 original message:
data:
title: It's bedtime
message: It's {{ now().strftime('%H:%M') }}, get some sleep.
data:
ttl: 0
priority: high
notification_icon: mdi:bed-king-outline
tag: Bedtime
sticky: "true"
actions:
- action: DISMISS_ASKING
title: Dismiss
- action: START_BEDTIME
title: Bed now
enabled: true
action: notify.mobile_app_pixel_8
2 Sent when I choose Dismiss:
data:
data:
ttl: 0
priority: high
tag: Bedtime
title: Bedtime
message: clear_notification
action: notify.mobile_app_pixel_8
Each notify.mobile_app_pixel_8
and its matching clear_notification
have a matching tag:
, and each pair have a different tag:
.
Shouldn’t this mean that each clear_notification
should only dismiss the matching notification?
Have I misunderstood how this should work, or used them incorrectly somehow?