Doorbell flow - too much notifications

Hello,

I have a normal doorbell which is made “smart” with a KAKU doorbell ACDB-7000B using a relais.
It works pretty good, I made a flow where doorbell sounds are played on different Sonos speakers. And it sends a snapshot of a ONVIF camera hanging at the front door with a push notification.

The only problem I have is, that some people press the doorbell 2 or 3 times. Some children even more. That doenst give a problem to Sonos, which plays the doorbell sound only once. But it does give a problem with my push notification. Sometimes I get 4 or 5 push notifications.

Is there a way that I can change my advanced flow that it can only send max 1 push notification every 1 minute? Or is there an other way?

Add a variable DoorbellPressed.
Check whether DoorbellPressed is true.
If yes: do nothing
If no: set Doorbellpressed to yes; do your thing. And reset DoorbellPressed after x time(1 minute ?) to No.

1 Like

Thank you, it seems to work.

Or do you still see some improvements in my flow?

I would first change the variable and after that do the other things.
This because Homey is known to have sometimes issues with executing multiple actions at the same time.

And maybe 5 sec’s is a bit short? I know my own grandchildren :grinning:

And remove the ANY card.
ANY is ment to handle multiple inputs; not outputs.

Can it actually have some negative side-effects usingg ANY this way?

Cause I normally use it to make it easier to change flows. It saves me some time drawing new lines. And it makes it easier visually to see the flow.

The only thing I can think of is that it is an additional step; which might take a millisecond.
But it could also be that is already optimized out somewhere.

Check, i made some changes.

Here is a new flow, maybe also usefull for others.

And yes, 5 seconds was a bit too short :smile:. Thanks for your replies and solution.

…but using ANY can tidy-up the flows, instead of a lot of lines going everywhere you get some lines going to an ANY and just one going to a THEN…

It doesn’t clog up the flow as much…

Try this w/o the ANY’s :laughing: