I read this nice idea about Yes/No notifications with wait for trigger:
Unfortunately there was no example code and I’m trying to figure out how to achieve this “Yes/No” notification and action in a single automation?
Lets say I leave home and forget to lock my door.
I want to trigger on to: “not home”
Get a notification: "You forgot to lock the door (again), should I lock it for you? “Yes” or “No”
Where pressing “Yes” continues the automation with an action and “No” just aborts or runs a different action.
Anyone have something ready to share? Would be much appreciated.
Thanks and best regards