Added basic functionality to control lights by pulsing light switches