2-way switching-dimmable- motion sensor