Assigning and removing labels automatically
Who can do it: Service provider
Where: Wialon Platform Studio
Once you have created labels and label groups, use the Automations module to dynamically assign labels when specific conditions are met.
This guide provides an example of how to create an action template to assign a Moving label and an automation to define the trigger condition.
Step 1: Configuring the action template
- In Wialon Platform Studio, navigate to the Customers tab.
- Select the necessary customer.
- Open the Automations tab.
- Click the Add button and select Add action template.
- In the Name field, enter a name for the action template, for example
Assign 'Moving' label. - In the Type field, select Assign a label.
- In the Labels field, select the
Movinglabel from the dropdown list. - In the Devices field, select the devices whose status you want to change when they start moving.
- Ensure the Enabled toggle is active.
- Click Save.
Step 2: Configuring the automation
- In the Automations module, click Add and select Add automation.
- On the Settings tab, enter a descriptive name for the automation, such as
Set status to moving. - For the automation Type, select Logical expression.
- In the Expression to trigger the alarm field, set the condition to trigger when the vehicle is moving. For example, the condition could be
position.speed>2. - Optionally, set the Minimum duration of alarm state and Maximum triggers per day.
- In the Devices to monitor, select the devices.
- Ensure the Enabled toggle is active.
Step 3: Linking the action template to the automation
After indicating the conditions on the Settings tab, you must link the automation to the action template.
- Navigate to the Associated action templates tab within the automation.
- Click Link action template.
- From the dropdown list, select the pre-configured action template:
Assign 'Moving' label. - Click Save.
The workflow is now fully configured. Whenever a vehicle starts moving, its status will automatically be updated to Moving with the corresponding label.