Skip to main content

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.
Start with Basics, then branch out. Complete the Basics tutorials first to understand LoT fundamentals, then explore the topics most relevant to your projects.

Learning Path

Follow this recommended progression from beginner to advanced:

Basics

Start here to learn the fundamentals of LoT Actions and event-driven programming.

What You’ll Learn

TutorialKey Concepts
Timed ActionsON EVERY syntax, time units, PUBLISH TOPIC, timestamps, counters
Topic ActionsON TOPIC triggers, wildcards (+, #), PAYLOAD, topic parsing

Logic

Build intelligent automation with conditional logic and decision-making.

What You’ll Learn

TutorialKey Concepts
Conditional LogicIF/ELSE statements, comparison operators, AND/OR/NOT, text matching with CONTAINS

Models

Structure and transform your data with LoT Models.

What You’ll Learn

TutorialKey Concepts
Basic ModelsDEFINE MODEL, field types (STRING, INT, DOUBLE, BOOL), triggers, topic sources
Action ModelsPUBLISH MODEL, dynamic field values, combining Actions with Models
Model InheritanceEXTENDS, base models, field overrides, model hierarchies

Routes

Connect your LoT system to external databases, APIs, and other MQTT brokers.

What You’ll Learn

TutorialKey Concepts
MQTT BridgeTYPE MQTT_BRIDGE, source/destination config, mappings, bidirectional sync
Database RoutesTYPE DATABASE, connection strings, table mappings, data persistence
REST API RoutesTYPE REST_API, HTTP methods, headers, authentication, request/response handling

Python Integration

Extend LoT with Python for complex calculations, data processing, and advanced logic.

What You’ll Learn

TutorialKey Concepts
Simple PythonCALL PYTHON syntax, script format, parameters, return values
Advanced PythonJSON processing, external libraries, error handling, complex transformations

Advanced Topics

Master architectural patterns and optimization techniques for production systems.

What You’ll Learn

TutorialKey Concepts
Mapping vs EventsPerformance trade-offs, fan-out patterns, aggregation, hybrid architectures

Quick Reference

Need to review a specific concept? Here’s where to find it:
ConceptTutorial
Time-based triggersTimed Actions
Message triggersTopic Actions
IF/ELSE logicConditional Logic
Data schemasBasic Models
Dynamic publishingAction Models
Schema inheritanceModel Inheritance
Broker bridgingMQTT Bridge
Data storageDatabase Routes
HTTP integrationREST API Routes
Python scriptingSimple Python
Advanced processingAdvanced Python
Route optimizationMapping 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.

Next Steps