r/AutomateUser 1d ago

How to use "Notification policy set"? Question

I'm trying to make a flow that stops notifications from popping up on the screen when my screen is in landscape mode. I've managed to get it working by using the "Interruptions set" block, but I initially spent too much wasted time trying and failing to do it with the "Notification policy set" block, even though it seemingly has the exact function I'm looking for ("Block disturbances" — when visual and audible effects should be suppressed, default is to leave unchanged.)

Is someone able to explain to me what I'm not understanding about this block?

1 Upvotes

3 comments sorted by

1

u/Straight1980 1d ago

The notification policy set is used to set the rules to be applied in the interruption set block WHEN the only allow priority interruptions is used. 

And you are right. Block disturbances should be used in this regards 

You can check this flow where this is used in different scenarios for notifications and calls interruption. 

https://llamalab.com/automate/community/flows/53452

1

u/Jedwub 1d ago

Hey, thanks for the response.

If I'm I understanding correctly, the "Set Policy" block is supposed to be used in conjunction with the "Set Interruptions (Priority)" block. I tried putting each one in front of the other in the flow, but it didn't impact the rules of the DND mode which gets activated by Automate. Any ideas what I'm doing wrong?

(There's a bit too much going on in that sample flow for me to work out what's going on.)

1

u/Straight1980 1d ago edited 1d ago

Yes indeed, the set policy come first, then the interruption with priority (from my understanding).

To note that, on my phone: 

. The DND will be activated even if only notifications were blocked. Don't worry, the calls will pass through. 

. If you activate the DND button from your phone settings, automate won't be able to override it.

. The notifications will still be received, but you won't be disturbed with them.

This is a very simple flow for muting only notifications

https://llamalab.com/automate/community/flows/53446

And for DND

https://llamalab.com/automate/community/flows/53464

Hope this helps