--- title: "设备状态重置" slug: "equipment-status-reset" updated: 2026-10-22T18:25:49Z published: 2026-10-22T18:25:49Z canonical: "support.tulip.co/equipment-status-reset" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # 设备状态重置 ## 应用场景 在生产区域,设备清洁完成后,系统会将其状态设为**“CLEAN”**。 当清洁待机时间到期时,设备将失去**“CLEAN”**状态。该自动化流程为这一过程提供支持。它每小时对**“设备与资产”**表中列出的设备进行检查,识别所有处于**“CLEAN”**状态且清洁待机时间已过期的设备。若发现此类记录,其状态将自动更新为**“DIRTY”**。 ### 自动化流程 ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28778%29.png) ## 配置自动化 ### 先决条件 此自动化流程利用 Tulip 表连接器功能,从表中提取需要修改的记录。连接器将与自动化流程同时安装在实例上。为确保连接器正常运行,必须配置以下设置: #### 设置身份验证 Feature rename Prior to r383, Service Accounts were called "API Tokens". 1. 在实例上创建一个具有读取 Tulip 表所需权限的服务账户。如果已存在具有所需访问权限的服务账户,则可以跳过此步骤。 Using multiple workspace If you are using multiple workspaces, create the Service Account under the workspace settings during the setup process for the workspace where you want to use the automation. Otherwise, you will need to define the workspace in the connector function.![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28775%29.png) ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28771%29.png) 1. 在连接器中输入服务账户详细信息以进行身份验证。![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28772%29.png) ![Set authentication.gif](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Set%20authentication.gif) 如需了解有关连接器的更多信息,请参阅此链接:[如何创建连接器](https://support.tulip.co/docs/how-to-configure-a-connector)。 #### 设置服务器地址 除了连接器的身份验证外,还必须配置服务器地址。在连接器环境设置中,将实例 URL 粘贴到您希望使用自动化功能的该环境的“服务器地址”字段中。 ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28774%29.png) ### 针对其他表调整自动化 若要将自动化应用于其他表,您需要修改**“从设备与资产表获取记录**”函数中的表 ID,该**函数**位于**“Tulip 表操作连接器**”下。只需将表 ID 更新为与您希望从中检索列表的表对应的 ID 即可。 ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28776%29.png) 修改连接器函数后,您只需更新自动化流程中的表数据。在块配置中,找到“表”字段下的相应表,然后从字段列表中选择“状态”字段,并设置所需的状态(例如 DIRTY)。 ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28779%29.png) ### 更改“清理状态”的持续时间 ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28780%29.png) 评估条件位于决策块中。该表达式的结构是将已加载记录中**最后一个“状态更新**”字段的值,加到“允许的最大清洁状态持续时间”上——本例中该值为30天。 **要调整时长:**请将表达式中指定“允许的最大‘已清理’状态持续时间”的部分更新为您所需的值。 随后,自动化流程将检查该计算值是否小于或等于评估时的当前日期和时间。