Attribute schemas
An attribute schema is a named list of fields: label, key, data type, whether it is required, and the order they come in. It decides which inventory fields an End Point carries — serial number, installation date, mounting note — and in which order the onboarding form asks for them.
In the menu the entry sits under the heading Devices and is called Attributes there — directly below the End Points. That is where it belongs, because an attribute schema means nothing on its own: it is read while filling in a device, and whoever misses a field on that form goes looking for it where the devices are. The longer word Attribute schemas names the machinery; Attributes names the thing people are looking for.
The gain over freely chosen keys is the form itself: a named field gets filled in, an empty key/value box does not. And what nobody fills in, no target system can read. The schema is therefore the promise a target system relies on.
The fields of a schema
Every field has five properties:
| Property | What it decides |
|---|---|
| Key | The machine-readable name. The device stores its value under it, a target system reads it. Unique per schema, without regard to case. |
| Label | What a person reads. Left empty, the key is used. |
| Data type | Which control the field gets, and what passes as a value. |
| Required | Whether a value has to be given when the values are recorded. |
| Order | The order on the form and under a node's attributes. Move up and Move down decide it. |
The data types are deliberately few — text, number, whole number, yes/no, date, choice. Every further one would have to be dragged through the query builder, the published schema and every connector, and an inventory record needs no more.
The data type is an input contract, not a display option: a date is written as yyyy-MM-dd, a whole
number without decimals, a choice field only with one of the values on file. Whatever does not fit
is refused by the write path with a sentence naming the value and the field.
A choice field needs its values — one per line. A choice field with no values is refused, and so is a list of values on any other data type.
There is no schema without a field. It would be a form with nothing on it. That is why the create dialog asks for the first field straight away, and why the last field of a schema cannot be removed.
Nor is there one with more than a hundred. A device's values travel whole wherever it appears — in its row, in the published schema, on its place — and that works because a form has a size. At the hundredth field Add field says why no further one fits.
Changing or removing a field
As long as no device follows the schema, both are free of consequence. As soon as devices point at it:
- The key changes. Values stored under the old key belong to a field that no longer exists. They are no longer kept.
- The data type changes. Existing values stay visible — reading never checks them against the type, because otherwise a schema edit would make every affected device unreadable. The next save, however, checks them against the new type and may refuse them.
- The field is removed. The values under it are no longer kept.
Before each of these the confirmation text says how many devices follow the schema and how many of them have a value stored in that field — the Application Center counts both itself, over all devices. A derived field stores nothing and therefore counts zero: the figure is exactly the number of values no longer kept after the removal. A schema with fifty devices and one field nobody ever filled in costs nothing on removal, and a warning that cannot tell the difference warns about nothing.
The only field of a schema stays. The Application Center does not take a schema without a field; on the last field Remove field therefore cannot be chosen, and the menu says why.
The shipped schema "default"
"default" is neither editable nor deletable. Every write against it is refused, and that is not caution but the only rule that works out.
The reason lies in how the schema comes about: it is a data file inside the product, and on every start of the Application Center the row in the database is reconciled against that file. Fields the file gained are added, fields it lost are removed, the rest are updated. That is safe exactly when there is no customer edit for the reconciliation to destroy — so only while "default" cannot be edited.
The alternative would be "editable, but a product update does not overwrite", and it ends worse: a field somebody deleted and an update brought back is a failure picture nobody understands.
Creating a copy
Whoever needs different fields creates a copy. It carries a name of its own, belongs to the installation and is editable in every respect. Copy is offered on every schema, and on "default" it is the primary action.
A copy is a row of its own. A later reconciliation of "default" never touches it — that is the point of keeping the two apart.
The device type is not typed in
The Device type field in "default" is derived: its value is the name of the blueprint or IODD the device is read with, read fresh on every read. The form shows it and locks it; the write path refuses a typed value with a sentence.
The reason is a second truth that would otherwise arise. A typed type stands beside the device description that actually reads the telegrams, and on the first sensor replacement the two drift apart. Derived, that cannot happen — and "all LDH290" is still an attribute filter like any other, without a query ever having to learn what a device type is.
A derived field is not taken over when copying. Only the shipped schema can carry one; in a copy it would be a typed text field and therefore exactly the second truth the rule prevents. The copy dialog names the field before anything is copied.
Deleting a schema
A schema devices still follow is not deleted but refused; the message says how many devices there are. Move those devices to another schema first — or to none.
The reason is the one a node with children does not cascade for: deleting would strip the affected devices of their inventory record, with no way back.
The archived devices count as well: they still follow the schema, and a deletion fails on them just the same. The Devices tab of the detail page therefore lists them too, marked Archive — paged, and searchable by EUI, place and values.
A device without a schema is a legitimate state and not a gap — a spare on the shelf nobody keeps a record on is a device. The Devices without a schema tile counts them, the archived ones included, and is therefore shown neutrally.
Where the values are recorded
Not here. This page decides which fields exist; the values belong to the device and are recorded there — at onboarding, or through Edit attributes in the End Point list. Under a node of the topology that carries a device they appear in the Attributes tab.