The Delayed Stored qualifier counts a delay only while the step is active, then latches the output to TRUE if the delay completes before the step deactivates.
DS vs SD: With SD, the timer keeps running even after the step deactivates. With DS, the timer resets if the step deactivates early. Use DS when you need to confirm the step was active for the full delay duration.
{GIF:HERE} - Step properties panel showing the action 'Confirmed alarm' with qualifier dropdown set to 'DS' (Delayed Stored) and duration field set to 30000 ms
from automation_machine import ActionQualifier
step.add_action("confirmed_alarm", "Confirmed alarm", qualifier=ActionQualifier.DS, duration=30000)
The duration parameter is required and specifies the delay in milliseconds. Use R in a later step to reset the output.