Scheduling doesn't always work

Hello! I use an esp8266 to schedule the lighting on my house through Cayenne web and a daily time schedule. Usually it works fine, but there are some times that the lighting stays on (not only physically, but also in the visualization through the web) and without having made any modifications. I rule out a problem with the device because, as I explained, it appears on the web as connected when it should be offline… What can happens? What I can do? Thank you so much