HA stored RF commands slowly sent to Broadlink RM Pro

Hello!
I have a Broadlink RM Pro as an RF remote to move my shutters. I need a few presses on the remote to set the shutters as I like so I made a script. In my script it is important to quickly press up then stop button for the shutter so it stays in position.
The broadlink integration can only do it with 5sec timing between presses. The broadlink device runs locally, not through the cloud, HA reports the delay.

This is the script I want to run: https://pastebin.com/cS27wtm0
This is my timeline output:

As you can see even though I don’t have delay in the script and my button presses are 0.4sec long only the commands are being sent 3-5sec apart which time my shutter is halfway up.
When I make the script in Broadlink cloud it still has a delay but about 1sec not 5. In HA it is much worse.
How to solve this?