The Reset qualifier turns off a previously stored (latched) action output by setting it back to FALSE.
Always make sure every stored qualifier has a corresponding R qualifier in your Sequence to avoid outputs that never turn off.
{GIF:HERE} - Step properties panel showing the action 'Reset alarm' with qualifier dropdown set to 'R' (Reset), no duration field visible since R requires no time parameter
from automation_machine import ActionQualifier
step.add_action("alarm", "Reset alarm", qualifier=ActionQualifier.R)
No duration parameter is needed. The variable name must match the one used in the original S (or SD, DS, SL) action.