Skip to main content
Coreflux HUB LoT Editor showing the Models tab with a ProductionCount model definition, code editor, and navigation tabs for Actions, Models, and Rules

Why Use the LoT Editor?

You need to deploy LoT (Language of Things) definitions quickly—Actions, Models, and Rules—without opening VS Code or publishing to MQTT command topics. The LoT Editor in the Coreflux HUB lets you create, edit, and delete Actions, Models, and Rules directly in the browser.
The LoT Editor manipulates Actions, Models, and Rules only. Routes are managed in the Routes section. LoT Notebooks are edited in VS Code.

When to Use It

  • Quick deployments — Deploy an Action or Model in seconds from the browser
  • Docker-only setups — When you run Coreflux without VS Code
  • Rapid iteration — Edit and save changes without switching tools

LoT Editor Tabs

The LoT Editor is organized by entity type:
TabWhat You Manage
ActionsLoT Actions that react to topics or timers
ModelsLoT Models for data structure and transformation
RulesLoT Rules for access control and permissions
Coreflux HUB LoT Editor showing the Actions tab with Models, Rules, and Actions tabs, an empty Actions (0) list, + New Action button, and a Create New Action button in the center

Creating an Action

  1. In the top navigation, select LoT, then LoT Editor.
  2. Open the Actions tab and click + New Action.
  3. Create your Action in the editor. The HUB deploys it to the broker automatically.
  4. Confirm creation. The action appears in the list and runs on the broker immediately.
Animated walkthrough of creating a new Action in the Coreflux HUB LoT Editor and viewing the published data in MQTT Explorer
Example:
DEFINE ACTION Heartbeat
ON EVERY 10 SECONDS DO
    PUBLISH TOPIC "system/heartbeat" WITH TIMESTAMP "UTC"

Creating Models and Rules

Use the Models and Rules tabs to create and edit those entities in the same way. Each tab provides a code editor where you paste or type LoT definitions.

Editing and Deleting

  • Edit: Select an Action, Model, or Rule from the list and modify its code in the editor. Save to apply changes.
  • Delete: Use the delete control for the entity. Confirm the deletion to remove it from the broker.
Animated walkthrough of selecting and deleting an Action in the Coreflux HUB LoT Editor

Next Steps

Routes

Add and configure Routes in the HUB.

LoT Actions Syntax

Learn LoT Action syntax and triggers.