Overview
Every Action needs a trigger—the event that starts its execution. Choosing the right trigger type determines how your automation responds to real-world conditions.When to Use Each Type
| Trigger Type | Use When | Example |
|---|---|---|
Time-Based (ON EVERY) | You need regular intervals regardless of data | Heartbeats, polling, scheduled reports |
Topic-Based (ON TOPIC) | You need to react when data arrives | Sensor processing, command handling |
| Callable (no trigger) | You need reusable logic invoked by other actions | Utility functions, shared calculations |
In This Page
- Time-Based Triggers — Execute on a schedule with
ON EVERY - Topic-Based Triggers — React to MQTT messages with
ON TOPIC - Callable Actions — Invoke manually or from other actions
Time-Based Triggers
UseON EVERY to execute actions at regular intervals:
Supported Time Units
| Unit | Singular | Plural | Example |
|---|---|---|---|
| Second | SECOND | SECONDS | ON EVERY 30 SECONDS |
| Minute | MINUTE | MINUTES | ON EVERY 5 MINUTES |
| Hour | HOUR | HOURS | ON EVERY 1 HOUR |
| Day | DAY | DAYS | ON EVERY 1 DAY |
| Week | WEEK | WEEKS | ON EVERY 1 WEEK |
Singular and plural forms are interchangeable:
1 SECOND works the same as 1 SECONDS.Time-Based Examples
System Heartbeat
System Heartbeat
Publish a status signal every 5 seconds for monitoring:
Counter with State
Counter with State
Maintain a counter that persists between executions:
Topic-Based Triggers
UseON TOPIC to execute actions when MQTT messages arrive:
Wildcard Patterns
LoT supports MQTT wildcards for flexible topic matching:- Single-Level (+)
- Multi-Level (+/+)
The
+ wildcard matches exactly one topic level:Matches:
sensors/room1/temperature, sensors/room2/temperatureCallable Actions
Actions without an event trigger are callable—they execute only when explicitly invoked by other actions or via system commands.Basic Callable Action
Callable Action with Parameters
Callable actions can accept input parameters and return values:Invoking Callable Actions
- From Another Action
- Via Command Topic
Use
CALL ACTION to invoke from within another action. This is the primary way to reuse logic across your automation:Comparing Trigger Types
| Aspect | Time-Based | Topic-Based | Callable |
|---|---|---|---|
| Trigger | Clock interval | MQTT message | Manual command |
| Frequency | Predictable | Event-driven | On-demand |
| Payload Access | No | Yes (PAYLOAD) | Via parameters |
| Best For | Monitoring, reporting | Data processing | Reusable utilities |

