return entire array, not just latest $state in getLightState()

getLightState wasn't returning the entire $result array. It was just returning the latest iteration of $state