I have a Dakota IR sensor at the end of my driveway to detect motion. It's aimed in such a way that 'street traffic' doesn't set it off. When motion is detected, it sends an alert to the base until. I have a Window sensor that I've hardwired into the base unit and THAT is what's connected to my Vera (Z-Wave).
The base unit trips the circuit on the window sensor and I use that as a scene trigger for my Vera. I have some LUA code that works with the scene to determine if it's after sundown / before sunup (i.e. it's dark outside) and allow the front lights to be turned on if it's dark.
The front lights turning on is used as a trigger for another scene that starts a timer of a few minutes. At the end of the timer, it checks to see if the garage door was opened or not. And, if not, it turns the lights back off.
There's additional logic that I use to determine how the front lights were turned on in the first place (manually, by the sensor, by a scene, etc.) as this impacts whether and after how long to turn the lights back off.