I’ve been diving into the world of smart home automation lately, and I’m thrilled to share my journey with you! One of my biggest goals has been to create a smooth nighttime routine that locks all doors, turns on the bedroom lights, and adjusts the ceiling fans to their night mode setting. While I’ve managed to get Alexa to lock individual doors without needing a pin code, I stumbled upon a challenge when trying to lock all doors at once as part of a scene. Alexa doesn’t seem to support lock commands within a scene, which was a bit of a setback. However, I found some Lua code on the forum that was supposed to help, but I was a bit overwhelmed by the coding aspect. After some trial and error, I managed to get it working! The code uses Luup to send lock commands to each door lock by their IDs. It’s been a fantastic learning experience, and I’m so happy with how it turned out. If anyone has tips or improvements for the Lua script, I’d love to hear them! ![]()