Stop a Macro run if something happens

SuzukiKev

New member
Hi All, I'm really struggling will a Macro. I basically want to have a macro run unless something happens to stop it. This is what I'm trying to do:

Turn off the heating via a webhook to IFTTT when a door is open, but only if it's opened for 'X' amount of time. I've tried if commands but no matter what the macro still runs to the end. I use Notification as a trigger as that's the only way I can get my phone to see the door is open or closed. See below

Trigger:

Notification received (Door Open)

Action:

Wait 1 minute
If I then get a notification that reads Door Closed cancel the macro from finishing. If that Door Closed notification doesn't arrive then run the webhook action

Thank you in advanced
 

Dm114

Well-known member
Hi All, I'm really struggling will a Macro. I basically want to have a macro run unless something happens to stop it. This is what I'm trying to do:

Turn off the heating via a webhook to IFTTT when a door is open, but only if it's opened for 'X' amount of time. I've tried if commands but no matter what the macro still runs to the end. I use Notification as a trigger as that's the only way I can get my phone to see the door is open or closed. See below

Trigger:

Notification received (Door Open)

Action:

Wait 1 minute
If I then get a notification that reads Door Closed cancel the macro from finishing. If that Door Closed notification doesn't arrive then run the webhook action

Thank you in advanced
You've just written it: use the Cancel macro action... unless I misunderstood!
 
Top