I’m very excited to see actionable notifications coming to the android app. But i’m stuck doing something with it : not sending twice the same notification. Before it was easy with push => set a tag.
Now i’m unable to do this, did someone managed to do it ?
One more thing i loved with push, when i dismissed a notification there was an event fired, i can’t see if it’s also the case here.
Thx
Edit ! ok, found it, will come in a future release !
Just a FYI to everyone in this thread but we started updating the companion site to include Android examples! Keep in mind this site will be kept up to date with the firebase builds so at times you may see features described that are not in the play store release yet. Just look for the Android logo to see what is supported and what syntax to use :)’
service: notify.mobile_app_<your_device_id_here>
data:
title: "Motion Detected in Backyard"
message: "Someone might be in the backyard."
data:
clickAction: 'https://google.com' # action when clicking main notification
Don’t forget to check the docs for more things you can do!
i created a seperate view on my lovelace config, where i have my cameras in live view configured
so when doorbell rings, my url is that specific lovelace view page
Big thanks to @NimdaBE for the tip on finding the output. I was building out my notification and thought of something I don’t know how to solve with NodeRed. I’m doing a check every minute after my notification fires to see if the door is still open. If I am working in my garage maybe I want the garage to be open for longer. I thought about just adding another check to see if anyone is home and to not fire, which I am likely going to do, but maybe there is another action I might want the option to ignore? How would you go about stopping the flow with an “ignore” option?
{
"message": "Would you like to close the garage door?",
"title": "Garage Door Left Open",
"data": {
"actions": [
{
"action": "close_door",
"title": "Close Door",
},
{
"action": "ignore",
"title": "Ignore"
}
]
}
}
What if I wanted the message to be the contents of the msg.payload object?
Nevermind, I figured it out. It figures, I messed with it forever before I posted the question and as soon as I post the question, I realized what it needed