I’ve been working on setting up a smart system to make moving around at night easier and safer. I installed a Z-Wave motion sensor outside my bedroom and connected it to some Z-Wave light switches. The goal is to have the lights turn on automatically when I get out of bed and stay on for about five minutes as I head to the kitchen. It’s a small thing, but it makes a big difference in convenience and safety.
Here’s what I did: I created an input in PLEG called ‘movement’ that triggers when the sensor detects motion. I also set up two schedules—one for midnight and another 30 minutes after sunrise. The tricky part was figuring out how to make the lights turn on only during specific times. After some research and trial and error, I managed to create a condition expression that checks if the ‘movement’ input is true and if the current time is between midnight and sunrise. Once that condition is met, the lights come on. To make sure they turn off after five minutes, I used a timer within the action settings.
It’s been a learning experience, and I’m really happy with how it turned out. This setup not only helps me navigate at night but also gives me peace of mind. If anyone has tips or suggestions for improving this system, I’d love to hear them! Thanks to everyone in the community who shares their knowledge and helps others like me learn and grow.