khisanthax Posted November 18, 2014 Share Posted November 18, 2014 So I was wondering if any one has tried using multiple motion sensors to determine direction? For example, walking towards a room triggers multiple sensors in order which let's you know what room or area to turn lights on for. Or multiple sensors to accurately determine motion in a large room? Link to comment
larryllix Posted November 18, 2014 Share Posted November 18, 2014 We just had this conversation here. http://forum.universal-devices.com/topic/14560-complex-trigger/ Link to comment
khisanthax Posted November 18, 2014 Author Share Posted November 18, 2014 What I Didn't see was code for direction. I liked that Lee used variables but it also looks like the order of the trigger doesn't matter so long as both ms are turned on that's all that matters. For me turning on 1 then 2 is different than 2 then 1. Did I Read the code wrong? Link to comment
larryllix Posted November 18, 2014 Share Posted November 18, 2014 I will repost this here then This takes up to four programs but could be combined into three possibly or jus two if the direction of travel is known. I present it as educational tool. If MS1 is switched 'On' Then Enable 'Program1' Wait 1 Minute Disable 'Program1' Else -- If MS2 is switched 'On' Then Enable 'Program2' Wait 1 Minute Disable 'Program2' Else --- Program1 (disabled) ------------- If MS2 is switched 'On' Then do stuff - motion went from MS1-MS2 Else --- Program2 (disabled) ------------- If MS1 is switched 'On' Then do stuff - motion went from MS2-MS1 Else --- Link to comment
Recommended Posts