Dynamically disable / enable sending notifications to mobile device

Hi,

I can send notification to my mobile device. I used it in different places in automations and scripts. Each call has different parameters.

I want to disable / enable notification for my mobile device globally. This can be done with defining an input boolean. But I don’t know how to use it with the notify service (if there ia any way at all to disable it)

I can define a script that will have condition based on the input boolean state, but I don’t think I can send the script the different variables, as any call is different.

Any idea how to do it?

Thx