@Fox I tried this code but my problem was not solved.
I guess there is no solution.
Unfortunately, this delay does not work for some reason. See in the video:https://dropmefiles.com/DnZGy It's setup to 4 minutes and the BAS doesn't even wait 1mminute. What could I have done wrong?