I recently upgraded my home lighting system with a Nodn In-Wall Module, aiming to create a seamless automation setup alongside my existing wall switches. The integration with openHAB has been a fantastic journey, allowing me to control the lights both manually and through automated rules. However, I encountered a challenge that I wanted to share and seek advice on.
Currently, I have a rule in place that switches off the lights after three minutes of inactivity, which works perfectly. Now, I want to introduce a motion sensor to enhance this system. The goal is for the lights to turn on when motion is detected and off after a period of inactivity. However, if the lights were manually switched on using the wall switch, they should remain on for at least three minutes, regardless of motion detection. This differentiation between manual and automated control is crucial for energy efficiency and user convenience.
The issue I’m facing is that the Nodn module doesn’t distinguish between commands initiated by the wall switch and those triggered by the motion sensor. Both actions result in the same state change, making it difficult to implement the desired behavior. I explored using the ‘Item received command’ event, but it doesn’t provide the necessary differentiation.
I’m curious if anyone has successfully implemented a similar setup or has suggestions on how to achieve this differentiation. Perhaps there’s a way to track the source of the command or use additional sensors to detect manual interventions. Any insights or experiences would be greatly appreciated!
This project has been a rewarding experience, and I’m excited to refine it further. Thanks in advance for your help!