Controlling lights and measuring current consumption