Automation / Triggers

The Automation module serves as a platform for creating alerts and notifications tailored to your vehicles. It offers a range of functionalities, from sending basic email alerts when your car reaches home to executing complex actions such as initiating a phone call with a custom message or remotely turning off your vehicle (subject to appropriate installation).

Automation enables the creation of advanced notifications, termed triggers, by combining multiple conditions with corresponding actions.

In the main view of the Automation module, all triggers are listed, providing an overview of configured alerts and notifications. Users can conveniently organize this list by either ID or creation date using the button located beside the search bar.

To the right of the triggers, there is a panel providing key information about each trigger:

  1. Actions Indicator (1): Indicates the actions associated with the trigger.

  2. Assignment Status (2): Displays whether the trigger is assigned to a group, vehicle, or asset.

  3. On/Off Status (3): Shows whether the trigger is currently active (on) or inactive (off).

  4. Options (4): Offers the ability to copy or delete the trigger.

Creating a Trigger

Creating a trigger involves three main steps:

  1. Name Trigger:

  2. Select Conditions: Choose the conditions that must be met to trigger the action.

  3. Select Entities: Specify the entities, vehicles, or assets to which the trigger will apply.

  4. Select Actions: Define the actions the trigger will perform once the conditions are met.

Let's begin by creating a simple trigger to notify when the ignition of our vehicle is turned ON and send an email notification.

  1. Name the Trigger: Navigate to the Automation module. Click on the top right icon to create a new trigger. Provide a descriptive name for your trigger when prompted.


  2. Select the Conditions: Click on the "+ ADD CONDITION" button to add conditions. A dialog will appear where you can choose from several predefined conditions. For example, select the condition "Ignition turns ON" from the list.


  3. Select the Entities: Click on the "Entities" tab. Choose the entities (either from the Groups, Vehicles, or Assets tab) that you want to apply the trigger to. Click on the vehicles that you want to monitor with this notification. You can select multiple groups, vehicles, or assets as needed.

  4. Select the Actions to Perform:
    Now, let's select the actions to perform when the ignition is turned ON for any of the vehicles we selected. Here are the available actions:

    1. Alerts: These are alerts that appear as popups on the gateway. They can be browsed later in the Alerts app.

    2. Email: This action sends an email notification to the specified email addresses.

    3. Safe Immobilization: This action activates the safe immobilization feature of your vehicle if it's installed.

    4. Output Management: This action activates or deactivates the device's outputs.

    5. SMS & Voice Calls: This action sends an SMS text message or places a phone call to the specified destination number. Note that this feature may require a subscription service.

    6. External Integrations: This action sends an HTTP request to an external API.
      Please select the appropriate action(s) based on your requirements.

Conditions

Hours of Service (HoS)

The Hours of Service conditions are generated after setting up your devices with the proper Maximum Work and Minimum Rest Times.

The possible conditions for either assets or vehicles are:

Started working: when the entity begins its working segment.

Is working: if the entity is working.

Cycle violation: fires one time when the entity exceeds the maximum working.

Cycle exceed: fires if the entity continues exceeding the maximum work time.

Continuous working violation: fires one time when the entity exceeds the continuous working time.

Continuous working time exceeded: fires if the entity continues exceeding the maximum continuous working time.

Started resting: fires when the entity begins to rest.

Is resting: fires if the entity is resting.

Action: Alerts & SLAs

Alerts are the gateway or platform alerts that fire directly inside the application. They are visualized in the Alerts & Notices section and there's an Alerts Report for them.

When you create an Alert you can

  • Give it a level - Whether info, warning, or critical. This is to help you classify the alerts based on the severity of the incident
  • Alert users or roles - you can select to alert a single user, or a role of users. With the role you'll notify all users that belong to that role
  • Series of options such as:
    • Create a popup - this will create a notification inside of the platform and pin it to the toolbar for visibility in any section or application. It will also create an alert inside of your computer if you allow notifications for the page
    • Open the dialog immediately - which will show the users or roles that receive the alert, the alert dialog automatically without them having to click on the notification
    • Play sound - which will play a system sound to notify the users that received the alert
    • Service Level Agreement (SLA) - define the expected response times for different types of alerts. You provide a time in minutes which you would like the alert to be resolved in. If it's not resolved in that time a status will appear in front of the alert that says it's delayed.
      • SLAs can be used:
        • Alerts And Notices: Users will see the SLA status and response times for each alert, they will see a new status "DELAYED" if the SLA is violated
        • Reporting: SLA performance can be tracked with the Alerts report, providing info into how well response times are being met for your alerts
  • And a series of resolution options such as:
    • Require a read receipt - which means that the user that receives the alert will have to click a button that they 'read' the message before resolving it. This is helpful when multiple users receive the alert and you want to know which one is working on which before they resolve it.
    • Resolution Integration - here is a list of integration options with specific services for notifying of alert status. Contact your administrator for more information.
  • Assign an icon - assign an icon with a color for the vehicles or assets that fire this alert. This icon will be reflected in the tracking page on the map while the alert is unresolved. Once the alert is resolved the icon will go back to the vehicle's default.

The function of the "entity icon" action is to change the icon and/or the icon color of a vehicle in the Tracking module when the trigger is fired.

The icon returns to normal when the alert is resolved in the Alerts app.

Action: Email Event

To configure an email action event:

  1. Press the back button to return to the list of actions.

  2. Click on "CONFIGURE" next to the email action.

  3. Click on the input field, which will display a dropdown of users in your group. Alternatively, you can manually enter any email address you want to notify.

Sample Email

The email that the system generates will automatically contain the following information:

Subject: [Name of the Trigger] - [Time Generated] - [Entity Name] - [Event Triggered] - [Geofence Entered or Exited (this depends on the trigger conditions that fired)]

  • Vehicle Name: [Vehicle Name]

  • Event: [Event]

  • Time and Date: [Time and Date]

  • Location: [Address of the Place]

  • Traveling speed (GPS): [Speed_GPS]

  • Traveling speed (Engine): [Speed_Engine]

  • Heading: [Heading]

  • Coordinates: [Coordinates]

  • Image or Video: [JPG]

    • If the event generated includes an image it will be shown, if it's a video then a link to view the video will be provided.

Attached: Map Snapshot of the Location

You can add a custom message to the email (red box below) by going back to the Conditions tab, and going down to the “Default Message” section. Then write your custom message.

It will appear inside the email you send, and on the alert that’s generated inside the gateway. Note the red area, which are the customizable sections of the alert.

Action: Safe Immobilization

In the actions section, you have the option to configure safe immobilization by pressing the configuration button. Then, you can select whether to activate or deactivate it. It's important to note that safe immobilization requires professional installation of the device's output cable to a relay inside the vehicle.

Action: Output Management

Similar to safe immobilization, in this section, you can manage any of the Syrus outputs. For example, you can activate output 2 and deactivate extended output 1.

Action: SMS

📘

Optional SMS Plan

If your SIMs don't support SMS you can purchase a virtual number from us and send SMS messages that way. Contact your account representative for more information

You can configure Pegasus to send personalized SMS messages to assigned numbers.

The "send from device" option allows you to send an SMS from the SIM card that the Syrus device is using. (Note: The SIM card must have the capability to send SMS messages.)

Action: Voice Call

📘

Optional Voice Plan

If your SIMs don't support Voice calling you can purchase a virtual number from us and make phone calls that way. Contact your account representative for more information

You can configure Pegasus to call the numbers you assign with a personalized message. Calls are configured with:

  • To: Call recipient
  • Language: Language that will be spoken by the caller
  • Gender: Gender of the person who will make the call
  • Loop: Number of times the message will be repeated
  • Dialog: Personalized message

Action: External Integrations

You can send an HTTP request to an external API or even consume the same Pegasus APIs.
The following example uses the Pegasus API – it uses $pegasus_api which is a shortcode used to replace the base_url of the API – thus we can use: $pegasus_api/vehicles/{{object.id}}/plugins/photocam/ to tell Syrus to take a photo. (camera accessory required). Note that object.id refers to the ID of the entity that generated the trigger.

Tip: you can use the /event-photos api to add a photo to an external resource request, note that you’ll want to add a countdown of at least 1 minute to allow time for the photo to upload.

Options

The trigger options are used to have more control over the trigger, it allows you to set a limit for how many times it should fire, or create a timed countdown till the actions are fired.

  • Owner: The Owner option allows you to change the owner of the triggers. When modifying this trigger owner, all associations (vehicles, assets, groups, etc.) will be updated to reflect the access of the new owner.

  • Time zone: The Time zone option is used when sending a date/timestamp in a trigger message. For example, the time that appears in the email is controlled by this Time Zone option. By default, it is set to the timezone of your computer browser.

  • Firing limit: The Firing limit is used to limit the number of times the trigger will fire. Once the trigger has fired the specified number of times, it will stop sending messages. Please note that a change in the trigger’s conditions resets this firing limit. Also, note that when the limit is reached, the trigger WILL STAY ACTIVE.

  • Firing rate: The Firing rate is a limit of how many times the trigger will generate in a given time window. This is useful to avoid receiving repeated triggers within a certain time frame. For example, if you set the rate to 'up to 5 times in 2 hours', the trigger will only fire up to 5 times within a 2-hour window. If the trigger generates more than 5 times in less than 2 hours, it will ignore the excess triggers and not fire the actions. This applies per entity, so if you select multiple vehicles, each one will have its own firing rate limit.

  • Countdown: The countdown is a delay in the firing of the trigger’s actions. It is recommended to use this feature with the “Clear active countdown for the following triggers” option. Here’s an example to illustrate its usage:

    Suppose we want to receive a notification when a vehicle spends more than 20 minutes inside a specific geofence with the ignition ON.

    To achieve this, we create a trigger with the condition: Ignition is ON AND Is inside a geofence, and we set a countdown of 20 minutes.

    When this condition is met, the countdown begins.

Then we create a new trigger to get rid of, or clear this 20 minute countdown, the conditions for this new trigger can be whenever the Ignition is turned OFF OR Is outside a geofence.

Thus we would have a trigger that fires a notification after 20 minutes of detecting that the vehicle is inside of a zone with the ignition ON.