I’ve been using smart locks for a while now, and I must say, they’ve completely transformed the way I manage access to my home. One of the most frustrating issues I encountered was my Nuki Smart Lock switching between locked and unlocked states during the night. It was quite unsettling and a bit concerning for security. After some research and experimentation, I found a reliable solution using Home Assistant automations.
Here’s what I did: I set up an automation that locks the door at 10 PM and keeps it locked until 7 AM. But I also wanted to make sure it doesn’t lock if the door is already open, so I integrated a door sensor into the automation. This way, if someone leaves the house and forgets to lock the door, it will automatically lock after a short delay, ensuring security without any hassle.
I also discovered that using the ‘wait_template’ condition was crucial to prevent the automation from triggering unnecessarily. It ensures that the lock only engages when the door is closed and the sensor is triggered. This setup has been working flawlessly for me, and I feel much more secure knowing my home is automatically locked during the night.
If anyone else is struggling with similar issues, I highly recommend exploring Home Assistant’s automation capabilities. It’s a powerful tool that can turn even the most frustrating smart home problems into non-issues. Happy automating! ![]()