evalinkdocs

Text templates (Pebble)

Wherever evalink talos sends or shows text, you can write placeholders that are filled in from the alarm, the site and the workflow when the text is needed. The template language is Pebble.

Alarm {{ alarmCode }} at {{ device.name }}, {{ alarm.timestamp | date('dd.MM.yyyy HH:mm') }}

Output: Alarm BA at Shop Bahnhofstrasse, 04.04.2025 14:14

Where you can use templates

Where For example
Workflow steps Step texts, SMS and call texts, email subject and text, webhook URL and body
Notifications Email, SMS and call texts
Incoming webhooks Field mappings that build the alarm
Alarm Dispatcher and escalation Messages to monitoring stations and escalation texts
Integrations Free texts of interventions
Reports Report and PDF texts

Three kinds of braces

Write Does
{{ … }} Prints a value
{% … %} Logic: if, for, set
{# … #} A comment that doesn't appear in the text
{# Test mode first #}{% if device.testMode %}TEST: {% endif %}{{ alarm.alarmName }} at {{ device.name }}

Find the names you can use

  • In a text field, press Ctrl+Space: the list shows what the field offers, including your company's custom fields.
  • Print a value as JSON with dump(), for example {{ dump(alarm.headers) }}, and run the workflow on a test alarm.

A name that doesn't exist prints nothing, not an error. See When a template doesn't work.

Watch the whole story

WalkthroughPresent

Loading the walkthrough…