Enabling and disabling private mode automatically according to schedule

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

You can automate the vehicle private use so that the private mode turns on for selected vehicles on a schedule. This helps customers ensure that vehicle location is hidden during non-working hours or other predefined periods.

This page shows how to enable private mode every weekday from 6:00pm to 8:00pm using the Schedule automation and the Start private mode action template.

Prerequisites

To enable and disable private use automatically for your customers, ensure the following requirements are met:

  • The Private use module is included in the billing plan and enabled for the customer.
  • The Automations module is included in the billing plan and enabled for the customer.
  • You know which customer vehicles must enter private mode according to predefined rules or schedules.

To configure a workflow that enables private mode automatically based on the schedule, follow the next steps:

  1. Create a Start private mode action template.
  2. Create a Schedule automation (weekdays at 6:00pm).
  3. Link the automation to the action template.

Step 1: Create a “Start private mode” action template

First, create an action template that will turn the private use on and off for the selected vehicles:

  1. In Wialon Platform Studio, navigate to the Customers page.
  2. Select a customer from the list to open their details.
  3. Go to the Automations tab.
  4. On the Automations tab, click Add.
  5. Select Add action template.
  6. In the Name field, enter a name, for example, Car private use after working hours.
  7. In the Type field, select Start private mode.
  8. In the Devices field, select the devices for which this action enables private mode.
  9. Make sure the action template is Enabled.
  10. Click Save.

Step 2: Create a “Schedule” automation

To create a schedule that acts as a trigger for the action template, follow the next steps:

  1. On the Automations tab, click Add.

  2. Select Add automation.

    schedule automation settings

  3. In the Name field, enter a name, for example, Mon–Fri 6 - 8.

  4. In the Automation type field, select Schedule.

  5. In the Expression field, specify the cron expression for weekdays at 6:00pm:
    0 0 18 ? * MON-FRI *

  6. Enable the automation.

Before saving the automation workflow, it is necessary to associate it with the created action template.

Step 3: Link the automation to the action template

To finish the automation workflow:

  1. In your automation, go to the Associated action templates tab.

  2. Click Link action template.

    associated actions template

  3. Select the Start private mode action template you created in Step 1.

  4. Click Save.

Every weekday at 6:00pm, the automation triggers the Start private mode action template.

Disabling private mode according to a schedule

To configure automatic deactivation of private mode, follow the next steps:

  1. Create an End private mode action template for the same devices. Make sure the action template is enabled.
  2. Create another Schedule automation that will trigger the end of the private use. For 8:00pm on weekdays, enter 0 0 20 ? * MON-FRI * in the Expression field. Make sure the automation is enabled.
  3. Link the automation to the action template.
  4. Save the automation workflow.

Now private mode is enabled for the selected vehicles for 2 hours, and then it turns off automatically.

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