Hi everyone. I have motion sensors in my house. I'd like HomeSeer to track me and turn on lights when I enter a room and off when I leave. (I have PIR motion sensors and not presence sensors.) Assuming i'm the only one home, my thought is that if motion sensor in Room A fires and then the motion sensor in Room B fires, the logic would be I've left Room A and went into Room B. Therefore I would want the lights in Room A to turn off and the lights in Room B to turn on.
The only way I could think to make this work is to compare the Last Change Times of the motion sensors. The one that changed last would be the room I'm in. I'm thinking that in the Event, I would run a script or command to poll the times but I'm not sure how to write a script for that purpose.
The only way I could think to make this work is to compare the Last Change Times of the motion sensors. The one that changed last would be the room I'm in. I'm thinking that in the Event, I would run a script or command to poll the times but I'm not sure how to write a script for that purpose.
Comment