Rule Not Running Constantly - Lock Door

I created a rule to lock my door 2 minutes after it has closed. However the rule does not always run. When I check that my door is in fact closed and the lock is not locked I expect the rule to run, but sometimes it will, and other times it will not. Is my rule correct based on what I am trying to do?

Currently I have 2 seperate rules, one for my front door and one for my garage door that are bascially the same. Is there a way to combine them or should I keep them separate.

Screenshot 2025-03-05 215519

Screenshot 2025-03-05 215652

Unless you turn on logging (events triggers and actions) and share a screenshot of the rule running it is hard to guess what is wrong. Itā€™s good if you also turn on logging for the devices.

You could simplify your rule however and avoid relying on retriggering. It could look like this:

Keep distinct rules, easier to debug.

4 Likes

Take a look at this app. Might be easier than maintaining multiple rules for multiple locks.

2 Likes

Thatā€™s a good theory as to why the OPā€™s rule might be failing.

There is no need for these checks however (contact canā€™t close if it wasnā€™t previously open: locking an already locked lock is a non issue) and a Basic Rule would perform just as well.

Mine is essentially instant. I use the app posted above and have never had my lock fail to re-lock after the door was closed.

1 Like

I redid the rule using your shortened version and it seems to be running as expected now. I have not had it fail yet. Thanks.

3 Likes