Notifying about various device events

Who can do it: Service provider
Where: Wialon Platform Studio

This guide describes how to set up automations to notify customers about various device events, including the following:

  • driving without headlights or a seatbelt
  • panic button activation
  • seatbelt status changes
  • driving with an open door

The automations use logical expressions to detect these conditions and the Send online notification action to inform the user.

Step 1: Create an action template for online notification

First, create an action template that will display an online notification in Wialon Platform FleetSpace.

  1. In Wialon Platform Studio, navigate to the Customers tab.
  2. Select a customer from the list to open their details.
  3. Go to the Automations tab.
  4. Click on the Action templates sub-tab.
  5. Click the Add action template button.
  6. In the New action template form, fill in the following parameters:
    • Name: Enter a descriptive name, for example, Driving notification.
    • Enabled/Disabled toggle: Set to Enabled.
    • Action template type: Select Send online notification.
  7. Click Save.

Step 2: Create an automation with a logical expression

Next, create an automation that uses a logical expression to detect if the headlights are off or the seatbelt is unbuckled, and then triggers the online notification.

  1. In the customer Automations tab, click the Add automation button.

  2. In the New automation form, on the Settings sub-tab, enter a descriptive name, for example, Driving violations.

  3. In the Type field, select Logical expression.

  4. In the Expression to trigger alarm field, create a logical expression using the section on the right. This section helps you find the necessary parameters and logical operators to join them into an expression. Learn more about the logical expression format.

Use the following expression for driving without headlights or a seatbelt:

Copied!
position.speed>10 && headlight.status == false || can.driver.seatbelt.indicator.status == false

This triggers when the device is moving at the speed greater than 10 km/h with headlights off (false) or when the seatbelt indicator is false (unbuckled).

See other logical expression samples

Use the following expression to detect when the panic button is activated:

Copied!
sos.alarm == true

This triggers when the alarm is activated.

Use the following expression to detect when the seatbelt status changes:

Copied!
position.speed>10 && can.seatbelt.status == false

This triggers when the vehicle is moving at a speed greater than 10 km/h and the general seatbelt status is false (unbuckled). You can change false to true to trigger when the seatbelt is buckled.

Use the following expression to detect when the vehicle is moving with an open door:

Copied!
position.speed>10 && can.doors.status == true

This triggers when the vehicle is moving at a speed greater than 10 km/h and the door status is true (any door is open).

  1. (Optional): In the Geofences field, select specific geofences and geofence groups to restrict the area where the automation can be triggered.
  2. In the Minimum duration of alarm state field, enter the minimum duration, in seconds.
  3. (Optional): In the Time limitation field, restrict the automation to specific days or hours.
  4. (Optional): In the Maximum triggers per day field, you can limit activations to reduce notification overload.
  5. Ensure the Enabled toggle is active.
  6. Select the devices or groups in the Labels or Devices field.

Now you need to link the automation to the action template to loop the automation workflow.

Step 3: Complete the workflow

To finish the automation configuring:

  1. Navigate to the Associated actions tab.
  2. Click Link action template.
  3. From the dropdown list, select the pre-configured action. For example, select the Driving notification action.
  4. In the Text field, customize the notification message. Use the available placeholders to include dynamic information in the text, such as speed, time, and geofences. For example, The <device_name> is moving at the speed <speed> with the headlights off or the seatbelt unfastened.
  5. Click Save.

Once saved, this automation will monitor the selected devices.
If any of the defined conditions are detected, an online notification will be displayed to the customer in Wialon Platform FleetSpace.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

See also