Schema administration
Understand and create an attribute type
An attribute type defines the shared meaning and data shape of a value, such as temperature or state. Use this guide when inspecting an existing definition or creating one; neither action publishes a value or creates a live topic by itself.
Worked example
Example: temperature
Use this for numeric temperature readings that should be charted consistently wherever they occur.
Stable identifier shared by compatible attribute paths.
Readable canonical wording for administrators and consumers.
Tells consumers that the value is numeric.
The canonical display unit when a compatible measurement unit is available.
Makes Explore and dashboards start with a time-series chart.
Default summary when chart data is sampled into time buckets.
Procedure
Follow the task in order
- 1Choose a canonical keyUse a lowercase business term such as temperature. Do not put an asset name, ObjectId, or MQTT topic path in the key.
- 2Describe the shared meaningThe label and description should apply to every compatible attribute path, not only one current publisher.
- 3Set the data shapeChoose the value type, preferred unit, presentation kind, and aggregation that consumers should use before they see live values.
- 4Use translations and aliases only when usefulThey provide alternate human terms; they do not create extra attributes or rename a publisher's topic.
- 5Review discovered updatesA microservice may later discover a missing attribute or report another description. Keep the canonical definition deliberate and review any variants.
Expected result
What you should have
Boundaries
Important boundaries
- Do not create a separate type for every asset-specific temperature topic unless their meanings or shapes are genuinely different.
- Changing an active type's data shape can change how Explore, dashboards, and history present existing paths.
- For a package-owned attribute type, choose Edit package definition from Schema. The change remains a package candidate until it is reviewed and applied.
This versioned public guide is maintained with the UNS OpenHub website and linked directly from the controller where the task applies.