IndigoDomotics / indigo-pushover

Indigo plugin to send push notifications via Pushover.
MIT License
17 stars 11 forks source link

Allow cancelation of emergency priority (2) from Indigo #12

Closed BradyRosino closed 6 years ago

BradyRosino commented 7 years ago

When sending a pushover message of emergency priority, Pushover will return a receipt value. Using that receipt value the API can cancel the emergency.

This would be EXTREMELY useful in the following example.

I have a trigger where if it becomes dark outside and the garage door was left open, it will send an emergency priority notification to my phone. I send emergency so it keeps pestering in case I miss the original notification. Once I close the garage door I'd love that to trigger the pushover plugin to cancel the emergency notification.

This can be done by a POST notification to

https://api.pushover.net/1/receipts/(your receipt)/cancel.json

This could probably just be handled by storing the latest emergency notification receipt number in an indigo variable. Then hitting the cancel trigger (or action group) would just do the POST request with that variable in the above URL.

YES - this is currently possible using Indigo timer and pesters and repeatedly sending the notification.... then cancel the pester on the resolution of the emergency. But that requires a lot more moving parts.

Appreciate this plug in, works great!

jcs commented 6 years ago

This could be done with tags without having to store the receipt ID

indigodomo commented 6 years ago

Added in the 1.3.0 release (see above comment).

BradyRosino commented 5 years ago

Missed this a few months back... Thanks for following up on this! Great improvement.