Consistent naming is the single most impactful practice for maintainable LoT systems. These conventions apply to all LoT entities and keep notebooks readable as your project grows.
Like street names in a city. Predictable patterns let anyone find an address without a map — and let AI assistants generate code that matches your project.
Variables use snake_case inside double quotes for SET declarations, and curly braces for references.
DEFINE ACTION ProcessSensorDataON TOPIC "sensors/+/raw" DO SET "sensor_id" WITH TOPIC POSITION 2 SET "raw_value" WITH (GET JSON "value" IN PAYLOAD AS DOUBLE) SET "converted_value" WITH ({raw_value} * 1.8 + 32) PUBLISH TOPIC "processed/" + {sensor_id} + "/fahrenheit" WITH {converted_value}
Topics use lowercase with forward-slash separators. Multi-word segments use snake_case.Whenever possible, follow a Unified Namespace (UNS) format for topic naming. This enables readability and scalability as systems grow.