So I had a Well No S**t Sherlock moment today with the Alert integration and Android App Notifications. You can get them to auto-dismiss (and I’m not talking about the timeout parameter).
Well it turns out you can use clear_notification in the done_message: parameter of an alert, and the notification will clear when the alert turns off!
alert:
some_alert:
title: Test Alert
message: "This an alert."
done_message: clear_notification
entity_id: binary_sensor.some_alert
I was just able to delete about 40 some odd dismiss notification automations! I used to use Push and I think I just transferred the notifications to the Android app notifications without stepping back and thinking about it. This was probably obvious to most of you geniuses but thought I’d point this out for anybody else who may of had a d’oh! moment with this one.
@jazzyisj thanks for that information. I would have one thing to add
for those who didn’t read the documentation: It’s important to add a tag otherwise you will just receive a “clear_notification” message
so in that case the example should look something like:
alert:
some_alert:
title: Test Alert
message: "This an alert."
data:
tag: some_alert
done_message: clear_notification
entity_id: binary_sensor.some_alert