Now I understand how to make it not loop, I need to create 2 buttons, UI 1 with the plugin makes UI 2 have a delay when turning on/off the light , pressing UI 1 makes it turn on/off the light.
To simplify things, use a button with a delay so that you can perform an action.Works but with a loop...