Variable Interpolation

For alerts and geo fences, variable interpolation can be used to insert values into the content of notifications.

Any CAN signal from the device that triggered the alert or geo fence can be used in addition to some feature-specific built-in variables.

Types of Values

To find the exact names of CAN signals, go to the CAN database for the device's model.

The values of any CAN signal from the device can be inserted using double curly braces {{}}. For example, to insert the signal engine_rpm into content:

The current engine speed is {{engine_rpm}} RPM.

Built-in values that can't be retrieved via CAN signals can be inserted in the same way, with {{}}.

The built-in signals for alerts are:

  1. alert.name - the name of the alert
  2. device.identifier - the name of the device that sent the alert

The built-in signals for geo fences are:

  1. geoFence.name - the name of the geo fence
  2. device.identifier - the name of the device that crossed the geo fence
  3. device.latitude - the latitude of the device when it crossed the geo fence
  4. device.longitude - the longitude of the device when it crossed the geo fence

For example, to insert the name of the device into the above content:

The current engine speed for {{device.identifier}} is {{engine_rpm}} RPM. Example Email

A geo fence email action that sends whenever a device leaves the garage might look like this:

Subject: {{device.identifier}} Left {{geoFence.name}} Body: The device {{device.identifier}} left the {{geoFence.name}}. Location: {{device.latitude}}, {{device.longitude}} Speed: {{driving_speed}} MPH Fuel Level: {{fuel_level}}