I’m trying to figure out an issue where I create a timer, and the timer works, however I can’t seem to cancel the timer. Any thoughts on what I’m doing wrong?
Timer Code (Which works): var lightsOutRand = (new java.util.Random).nextInt(20) var Timer timerBedtime = createTimer(now.plusMinutes(lightsOutRand)) [| sendCommand(LampLivingRoom, OFF) sendCommand(LampBedRoom, OFF) timerBedtime = null ]