Locks are known to do this as they tend to be sleepy devices to save power. I have two Yale Zigbee locks and they have always acted this way. There is a community app called Reliable Locks that was made because of this. I use it and it works great great for me. Part of what it does is essentially what you are doing with your Rule but with the app, you don't have to do it within any of your rules.
1 Like