Light switch completely works! It is currently always bedtime. You must edit the condition in checkBedtime to only call the method where appropriate.