I recently set up a smart lighting system in my home using Hubitat, and I’m really enjoying the flexibility it offers. One of the features I wanted to implement was a motion detection system that changes the color of my LED lights when a door is left open. This would serve as a visual reminder for me and my family to ensure all doors are secure, especially before going to bed.
I started by connecting my door sensors to Hubitat and creating a rule that triggers when any door is opened. The rule is designed to turn the LED lights red if a door is open and green when all doors are closed. However, I ran into an issue where if multiple doors are opened one after the other, the system only recognizes the last door’s status. For example, if I open door A, the lights turn red, and then if I open door B, the lights remain red. But when I close door A, the lights turn green even though door B is still open. This inconsistency is a bit frustrating, and I think it has to do with how the system loops through the door statuses.
I’m sure there’s a way to adjust the rule so that it checks all doors before changing the LED color back to green. I’ve tried modifying the rule to include a loop that verifies the status of each door, but I’m not entirely sure how to structure it correctly. Any advice or tips on how to implement this would be greatly appreciated!
Here’s a quick overview of my setup:
- LED Lights: Inovelli smart switches
- Door Sensors: Z-Wave sensors
- Hub: Hubitat Elevation
- Firmware Version: 2.3.9.177
I’m excited to see how this system can be improved and would love to hear from anyone who has successfully implemented a similar feature. Let’s keep the conversation going and share our experiences!