If you’re willing to make the interval one minute, you don’t need Webcore to do this: you just daisychain a virtual timer.
have the timer turn itself on when the real light turns off, then have the timer turn itself off after one minute using the official “power allowance” feature, then have the real light turn itself ON when the virtual timer turns itself off.
See the how to article in the community-created wiki. The examples are from the classic app, but the same concept applies.
Real light turns on. Nothing else happens.
Real light turns off. Virtual timer turns on.
Virtual timer turns itself off after one minute because of the power allowance feature.
Real light turns on because the virtual timer turned off.
But you can’t do it after only five seconds, so if you need that, you will have to try Webcore. Just be aware that the Z wave protocol expects there to be a minimum of 30 seconds between each command for a single device, so even if webcore will let you issue the command in a shorter interval it may not always work.