I’ve got a piston that reminds me to take my medicine at night by checking to see if it’s 9:00PM and the medicine drawer hasn’t been opened within the last few hours. I do this by having a variable {medicine} which is initialized to False and if it is still False and time is 9:00PM it will send me a push notification every 5 minuted until I open my medicine drawer. When the medicine drawer is opened the expected behavior is to set the variable {medicine} to true, wait until midnight and then set it back to false for the next day.
Everything works up until the part where it’s supposed to set back to false. It just stays true. Any ideas?