I am creating a rule to control my doorbell. Door bell is just a single button Zigbee device. Essentially, a rule called "Doorbell Activator" was created for this purpose. You press the button and it plays chime on Google/Nest Mini Speakers. I added a required expression to limit the times of day that this rule is activated so that the chime wont play at silly times like 2AM. So far, easy.
What I'd like to do next is put a limit on how many times pressing the button will sound the chime before the rule is disabled for a pre-defined period of time. For example, how could I create a condition or expression with the effect of: "if this button is pressed more than 3 times in any given 30 second period, disable the rule for 5 minutes."
@a.mcdear you could also skip the second rule and set your main doorbell rule to have a required expression (there's a toggle to enable this). Then you would set the required expression to: