I need to count the trips of a motion sensor within a set period and have different scenes run depending on the trip count.
For instance:
Motion1trip activates Scene1
Motion1Trip within 120secs (double trip) of Scene1 activates Scene2
Can this be done with a PLEG?