Skip to content

SetTimerAction

Source code in docs_src/capo_iot_events/types/set_timer_action.py
class SetTimerAction(TypedDict, closed=True):
    timer_name: "capo_iot_events.types.timer_name.TimerName"
    """<p>The name of the timer.</p>"""
    seconds: NotRequired["capo_iot_events.types.seconds.Seconds"]
    """<p>The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds. </p>"""
    duration_expression: NotRequired[
        "capo_iot_events.types.variable_value.VariableValue"
    ]
    """<p>The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (<code>$variable.<variable-name></code>), and input values (<code>$input.<input-name>.<path-to-datum></code>) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number. </p>"""

duration_expression instance-attribute

duration_expression: NotRequired[VariableValue]

The duration of the timer, in seconds. You can use a string expression that includes numbers, variables ($variable.), and input values ($input..) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.

seconds instance-attribute

seconds: NotRequired[Seconds]

The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.

timer_name instance-attribute

timer_name: TimerName

The name of the timer.