Learn by Building
The best way to master LoT is through hands-on practice. These tutorials are interactive notebooks you can download and run in VS Code—each one builds your skills progressively.Learning Path
Follow this recommended progression from beginner to advanced:Basics
Start here to learn the fundamentals of LoT Actions and event-driven programming.Timed Actions
Create actions that run on schedules—heartbeats, counters, and periodic tasks. Learn
ON EVERY triggers and state persistence.Topic Actions
React to MQTT messages in real-time. Master
ON TOPIC triggers, wildcards, and payload processing.What You’ll Learn
| Tutorial | Key Concepts |
|---|---|
| Timed Actions | ON EVERY syntax, time units, PUBLISH TOPIC, timestamps, counters |
| Topic Actions | ON TOPIC triggers, wildcards (+, #), PAYLOAD, topic parsing |
Logic
Build intelligent automation with conditional logic and decision-making.What You’ll Learn
| Tutorial | Key Concepts |
|---|---|
| Conditional Logic | IF/ELSE statements, comparison operators, AND/OR/NOT, text matching with CONTAINS |
Models
Structure and transform your data with LoT Models.Basic Models
Define data schemas with typed fields. Create structured sensor readings, equipment status reports, and alarm messages.
Action Models
Publish models dynamically from Actions. Combine event-driven logic with structured data output.
Model Inheritance
Extend base models to create specialized variants. Build hierarchies for sensors, equipment, and production data.
What You’ll Learn
| Tutorial | Key Concepts |
|---|---|
| Basic Models | DEFINE MODEL, field types (STRING, INT, DOUBLE, BOOL), triggers, topic sources |
| Action Models | PUBLISH MODEL, dynamic field values, combining Actions with Models |
| Model Inheritance | EXTENDS, base models, field overrides, model hierarchies |
Routes
Connect your LoT system to external databases, APIs, and other MQTT brokers.MQTT Bridge
Connect multiple MQTT brokers. Forward messages, sync data between systems, and build distributed architectures.
Database Routes
Store MQTT data in SQL databases. Configure connections, map topics to tables, and query historical data.
REST API Routes
Integrate with HTTP APIs. Send data to web services, receive webhooks, and connect to cloud platforms.
What You’ll Learn
| Tutorial | Key Concepts |
|---|---|
| MQTT Bridge | TYPE MQTT_BRIDGE, source/destination config, mappings, bidirectional sync |
| Database Routes | TYPE DATABASE, connection strings, table mappings, data persistence |
| REST API Routes | TYPE REST_API, HTTP methods, headers, authentication, request/response handling |
Python Integration
Extend LoT with Python for complex calculations, data processing, and advanced logic.Simple Python
Get started with Python in LoT. Learn the script format, parameter passing, and return value handling.
Advanced Python
Build sophisticated data pipelines. Use external libraries, handle JSON, and implement validation logic.
What You’ll Learn
| Tutorial | Key Concepts |
|---|---|
| Simple Python | CALL PYTHON syntax, script format, parameters, return values |
| Advanced Python | JSON processing, external libraries, error handling, complex transformations |
Advanced Topics
Master architectural patterns and optimization techniques for production systems.What You’ll Learn
| Tutorial | Key Concepts |
|---|---|
| Mapping vs Events | Performance trade-offs, fan-out patterns, aggregation, hybrid architectures |
Quick Reference
Need to review a specific concept? Here’s where to find it:| Concept | Tutorial |
|---|---|
| Time-based triggers | Timed Actions |
| Message triggers | Topic Actions |
| IF/ELSE logic | Conditional Logic |
| Data schemas | Basic Models |
| Dynamic publishing | Action Models |
| Schema inheritance | Model Inheritance |
| Broker bridging | MQTT Bridge |
| Data storage | Database Routes |
| HTTP integration | REST API Routes |
| Python scripting | Simple Python |
| Advanced processing | Advanced Python |
| Route optimization | Mapping vs Events |
Download Tutorials
All tutorials are available in the Coreflux Community GitHub repository:LoT Tutorials Repository
Download complete tutorial notebooks with documentation, examples, and exercises.
Getting the Tutorials
1
Clone or Download
Clone the repository or download as ZIP from GitHub.
2
Open in VS Code
Open any
.lotnb file—VS Code automatically uses the LoT Notebooks extension.3
Connect Your Broker
Configure your broker credentials, then start running cells.

