Skip to main content

Usage

Alarm Pipeline

Add a Notification Block with a Teltonika profile in your Alarm Pipeline.

Notification Block Parameters

ParameterTypeDefaultDescription
MessageExpressionSee belowContent of the SMS message to send

Message Templates

Expression Syntax

The message field supports Ignition's expression syntax, allowing dynamic content based on alarm properties.

Default Message:

At {eventTime|hh:mm:ss}, alarm "{name}" at "{displayPath}" transitioned to {eventState}.

Available Variables

VariableDescriptionExample
{name}Alarm nameHigh Temperature
{displayPath}Alarm source pathFurnace/Zone1/TempSensor
{eventTime|format}Event timestamp with format{eventTime|hh:mm:ss}
{eventState}Alarm stateActive, Cleared, Acknowledged
{priority}Alarm priorityHigh, Medium, Low
{label}Alarm labelTemperature Alarm

Message Examples

Simple notification:

ALARM: {name} is {eventState} at {eventTime|HH:mm}

Detailed notification:

[{priority}] {name} at {displayPath} - State: {eventState} - Time: {eventTime|yyyy-MM-dd HH:mm:ss}

Concise alert:

{name}: {eventState}

Phone Number Handling

The module automatically converts phone numbers to the format required by Teltonika routers:

Input FormatConverted Format
+336123456780033612345678
+1234567890001234567890
06123456780612345678 (unchanged)
International Format

Always store phone numbers in international format (+XX...) in user contacts to ensure proper conversion.


API Communication

REST API Flow

1. POST /api/login
→ Receive token (cached for 5 minutes)

2. POST /api/messages/actions/send
Authorization: Bearer {token}
Body: { "data": { "number": "...", "message": "...", "modem": "..." } }
→ Receive success/failure response

Legacy API Flow

GET /cgi-bin/sms_send?username={user}&password={pass}&number={num}&text={msg}
→ Receive response

Audit Logging

When an audit profile is configured, all notification events are logged.

Logged information:

  • Action: "Teltonika SMS"
  • Actor: Ignition username receiving the notification
  • Target: Alarm event path with ID
  • Value: "SUCCESS" or "FAILURE"
  • Timestamp

Troubleshooting

IssuePossible CauseSolution
SMS not receivedInvalid phone numberVerify number format in user contacts
SMS not receivedNo signalCheck router signal strength
SMS not receivedSIM balanceVerify SIM has SMS credits
Authentication error (REST)Wrong credentialsVerify username/password
Authentication error (REST)Firmware too oldSwitch to Legacy mode
"Modem required" errorMissing modem IDConfigure Modem field in profile
Token expired errorsNetwork latencyModule auto-refreshes tokens
License expiredTrial endedContact OperaMetrix for licensing

Router Status Verification

To verify your router is ready to send SMS:

  1. Check Signal Strength - Router web interface > Status > Mobile
  2. Verify SIM Status - Ensure SIM is registered on network
  3. Test Manual SMS - Send a test SMS from router interface
  4. Check SMS Logs - Router web interface > Services > Mobile Utilities > SMS

Best Practices

  1. Test connectivity first - Verify Ignition can reach the router before configuring alarms
  2. Use REST API - Prefer REST API mode for better security and reliability
  3. Configure auditing - Enable audit logging for troubleshooting and compliance
  4. Monitor SIM balance - Set up alerts for low SMS credits
  5. Keep messages short - SMS has a 160 character limit (longer messages are split)
  6. Use international format - Store all phone numbers with country codes
  7. Dedicated SIM - Consider a dedicated SIM for alarm notifications