Goodnight switch keeps going 'on' for no reason


A little introduction. In my setup i house some lights, and some door/motion sensors. I have one virtual switch ‘goodnight’ which limits every routine or piston (webcore) to trigger when thats on. Also, this very same switch arms the alarm and sets mode to ‘night’. Thereafter, each day at 06:00 AM this switch will automatically turn off so pistons and automations can run as intended.

Now this ‘goodnight’ switch is coming on out of itsself, ive been plowing every piston and automation for a solution, but nothing has come up. Can anyone help me fix this, or maybe: is there a way to see a debug of everything interacting with this virtual switch?

thanks alot for helping me