Disable a flow after detected 3 times invalid code on a keypad?

I have a z-wave keypad from Popp that I use to lock/unlock my Danalock v3?

I wonder if it’s possible to to disable the flow for unlocking the Danalock if invalid code is entered 3 times on the keypad? I would like this so that any unknown won’t “hammer” codes and some how find the right code.

Have to guess because i haven’t this device and don’t know the triggers. Will be something like. Make a number variable called pincode. In your flows you enter for the flow where you enter the pincode at the else part set logic pincode +1. At the THEN part a extra card set Logic pincode to 0.
Make a new flow, When a variable changes(pincode), AND Logic >2,THEN disable the flow where you enter the pincode

You can also do this in one flow, but then you have to reset the pincode some way yourself.
That could be through another flow or via a virtual button or switch in the app.

First, set a logic variable called “Pincode” and set it to 0
Then in your flow:

IF
code = entered
AND
pincode < 3
code = ok
THEN
unlock danalock
set pincode =0
ELSE
pincode = pincode + 1
send push “Wrong code entered & pincode”

Or something similar to this because i don’t know exactly how the flow is triggered…

1 Like

there is a trigger that is “An invalid code has been entered”

and I would like to disable a flow called “Unlock Danalock”

Sorry that I missed to write that info

Same as above:

Set pincode and the flow would be something like

IF
Invalide code entered
pincode < 3
THEN
pincode = pincode + 1
ELSE
disable flow unlock danalock

Maybe also disable the invalid code flow so it wont trigger anymore anyway.’
Then they can try indefinitely without bothering Homey… :slight_smile:

I’m new to Homey, so sorry for my newbie question. You wrote
THEN
pincode = pincode + 1
ELSE
disable flow unlock danalock

Not sure how to create that part in the flow

For the pincode +1 you have to choose calculate a numeric variable and make the math as in this example

And for the disable flow as above

1 Like