Time condition(时间条件(Time condition))¶
To trigger your automation effects at a specific time or on a schedule, you can use a time condition. Select it by choosing the time condition card.

By default, a daily frequency will be selected.

Configuration¶
There are two ways to configure the time condition: in the user interface or as a cron expression.
User interface¶
This is the default option and will be sufficient for most use cases. The interface provides options to set up hourly, daily, weekly, and monthly schedules.
Cron expression¶
If the default time condition configuration options are not flexible enough for your use case, you can define a custom cron expression.
Requirements for cron expressions:
- Exactly five fields (space separated): minutes, hours, day of month, month, day of week
- Note that seconds and years fields are not supported
- A minimum frequency of once per hour
- The minutes field must be a number between 0 and 59, with no special characters
A natural language preview of your schedule will appear after entering the expression.

For reference, a list of example cron expressions is shown below:
| Cron string | Meaning |
|---|---|
0 * * * * |
Every hour on the hour |
0 0 1 1 * |
At midnight on the first day of every year |
15 8,20 * * * |
At 08:15 AM and 08:15 PM |
15 8,14 * * 1-5 |
At 08:15 AM and 02:15 PM, Monday through Friday |
0 9 1W * * |
At 09:00 AM, on the first weekday of each month |
0 9 L * * |
At 09:00 AM, on the last day of each month |
0 9 1 3,7,10,12 * |
At 09:00 AM, on the first day of the month, in March, July, October, and December |
0 9 * * 1#1 |
At 09:00 AM, on the first Monday of the month |
0 9 * * 5L |
At 09:00 AM, on the last Friday of the month |
中文翻译¶
时间条件(Time condition)¶
要在特定时间或按计划触发自动化效果,可以使用时间条件。选择时间条件卡片即可进行设置。

默认情况下,系统会选择每日频率。

配置¶
用户界面¶
这是默认选项,适用于大多数使用场景。该界面提供了设置每小时、每日、每周和每月计划的选项。
Cron表达式(Cron expression)¶
如果默认的时间条件配置选项无法满足您的使用需求,您可以定义自定义的cron表达式。
cron表达式的要求:
- 必须包含五个字段(以空格分隔):分钟、小时、日期、月份、星期
- 注意:不支持秒和年份字段
- 最低频率为每小时一次
- 分钟字段必须为0到59之间的数字,不能包含特殊字符
输入表达式后,系统会显示计划执行时间的自然语言预览。

以下是一些cron表达式示例供参考:
| Cron字符串 | 含义 |
|---|---|
0 * * * * |
每小时整点执行 |
0 0 1 1 * |
每年1月1日午夜执行 |
15 8,20 * * * |
上午08:15和下午08:15执行 |
15 8,14 * * 1-5 |
周一至周五的上午08:15和下午02:15执行 |
0 9 1W * * |
每月第一个工作日早上09:00执行 |
0 9 L * * |
每月最后一天早上09:00执行 |
0 9 1 3,7,10,12 * |
在3月、7月、10月和12月的第一天早上09:00执行 |
0 9 * * 1#1 |
每月第一个周一早上09:00执行 |
0 9 * * 5L |
每月最后一个周五早上09:00执行 |