--- alias: user-guide-automation-task-core-timer-sleep tags: - automation tasks description: "This task manages a timed emission event after a specified interval" --- # Sleep :iot-timer-sleep-lg: The Sleep task allows the user to configure that after a set amount of time, wishes the task to emit. The task must be activated in order to start the timer. ![Screenshot showing the configuration options for the Sleep task, including the timer duration and activation status.](../images/sleep.png) ## Inputs | Name | Data Type | Description | | --------- | --------- | ---------------------------------------- | | Interval | `Integer` | Interval from activation time until emit | | Activates | `any` | Activates the sleep execution | ## Outputs | Name | Data Type | Description | | --------- | ---------- | ------------------------------------------------------ | | Timestamp | `DateTime` | Current time upon execution | | Success | `Boolean` | If there was no problem emits a true | | Error | `Error` | Error that occurred during the processing of this task | ## Settings | Name | Data Type | Default | Description | | -------- | --------- | ------- | ------------------------------- | | Interval | `Integer` | 10000 | Number of milliseconds to sleep | ## Behavior The Sleep task, allows the user to configure a set amount of time, after which the task will emit. ## Remarks There is no particular remark to be made.