walkman9999 Posted April 7, 2014 Posted April 7, 2014 Hi all, I have a togglelinc on my front door, and a motion sensor on front gate. Both work fine, but I'd like to combine them in a way that the condition of the togglelinc determines what program runs when the motion sensor is triggered. That is, if the front door (togglelinc) is open and motion detector is triggered then action1 is performed, but if front door (togglelinc) is closed and motion detector is triggered then action12 is performed. I'm not sure how to do this because togglelinc doesn't seem to indicate a current state (open or closed), it just reports a change in state (when door is opened or closed). I'm not sure how to write the program do "check" the togglelinc. I am looking at docs, but thought I'd ask the forum to see if there is a "smart" way to do this. Thanks any/all. :Mike
oberkc Posted April 7, 2014 Posted April 7, 2014 I have always understood a togglelinc to be a switch that is manually turned on or off. How does this indicate whether a door is open or closed? Are you sure that this is the actual name of the device you are using? Regardless, I can offer some conceptual ideas and you can fill in the details based on your setup and devices. Create two programs: if status tooglelinc is ON <<< assuming ON = OPEN and control motion sensor is set ON << then perform action1 else do nothing If status togglelinc is OFF and control motion sensor is set ON then perform action2 else do nothing Keep in mind that this action will be triggered EVERY TIME the motion sensor sends the ON command. The frequency of this is based, in part, on how you have your motion sensor configured. Also, the fact that your togglelinc does not indicate current state is, in my experience, a symptom that something is wrong. This is not normal.
walkman9999 Posted April 8, 2014 Author Posted April 8, 2014 You are right, I screwed-up the name of the module. Insteon says: "Please note that INSTEON Wireless Open/Close Sensor (2843-222) is the new product name and number of TriggerLinc (2421)." So, it is a triggerlinc not a togglelinc. That said, I think your solution will work - it makes sense logically. Let me give it a try and see. Thank you
Recommended Posts