Help Needed: Motion Sensor Rule

Also check out the Time of day triggers design pattern