Is there an app that will let me turn on a light after a sequence of two motion sensors. So at night if the upstairs sensor is followed by one of the main floor sensors (and only if it is in that order) I want a light on the main floor to turn on. Any app that does this - or source code close to this - would be appreciated.
Thanks to daven and CSC for their quick replies.