3-way switching-Auto on&off-Motion sensor