Delayed routine trigger

Hi all, so I have a few issues here.

I am trying to turn on a light when a qubino relay turns on and turn it off again when the relay turns off.

When turn on / off the relay via the ST phone app its fine. Works fast every time.

When I do it from the physical relay switch sometimes its fine and other times it can take minutes to trigger the routine.

Any ideas how I can fix this would be greatly appreciated.

Also worth adding I have the exact same setup running on another relay and it always works fine.