Skip to main content
Documentation

Device Profiles

A device profile is a versioned set of property values shared by devices in one project. Use profiles for common configuration, such as an update channel or sensor settings, and device values for local exceptions. A device can apply several profiles in order.

Profiles require a subscription that includes device profiles on instances that enforce subscriptions. Existing profiles keep applying if the feature becomes unavailable; you can still remove assignments or delete profiles.

How Values Combine

Nexigon Hub combines the assigned profiles in order, then the device’s own values, into one JSON merge patch. Objects merge recursively, and arrays and scalar values replace the value before them. An object member set to null requests removal of that member when a consumer applies the patch to its defaults. Nexigon Hub retains these null members in the effective property. A later profile can therefore change one setting while retaining the others. A device’s own value has the highest precedence.

For example, a base profile sets com.example.sensor.config to:

{ "sample_rate_hz": 10, "channels": ["temperature"], "debug": false }

A second profile sets the same property to:

{ "sample_rate_hz": 60 }

The device gets a sample rate of 60, the temperature channel, and disabled debugging. A later value { "channels": null } leaves "channels": null in the effective property, so a consumer can remove its default channels. If the device has its own value { "debug": true }, that value changes only debugging. An array such as channels is replaced as a whole.

Each profile property has its own protection flag. If any contributing profile or the device’s own value protects a property, device credentials cannot change it. Platform users need permission to manage protected properties to change it. A profile does not protect every value automatically.

Removing a device’s own value reveals the values from its profiles. Removing a profile from a device removes that profile’s contribution; it does not copy the effective values into the device’s own properties.

Create and Assign a Profile

  1. Open Profiles in the project’s sidebar and choose Create Profile.
  2. Enter a name and create the profile.
  3. On its Properties page, choose Add Property, enter a property name and JSON value, choose whether it is protected, and select Save Property.
  4. Open a device and choose Edit profiles beside its profiles. Add the profile, put the profiles in the order they should apply, and choose Save Profiles.

Each property edit saves a new revision. Devices following the latest revision apply the change immediately. A device can instead pin a revision or receive revisions through a staged rollout. Profile Rollouts describes these modes.

To apply a profile to many devices, choose Apply to Devices on the profile’s Devices page and select the devices by group conditions. The same page removes the profile from devices. Assignment selects the devices that match now; it does not automatically assign the profile to devices that match later. New assignments go after the device’s existing profiles. Devices already at their profile limit are skipped.

Revisions and Configuration References

A revision preserves the profile’s property values. It does not resolve or lock references inside them. For example, an OTA path ending in a floating tag can resolve to new software without a profile edit. Pin a version ID or use a locked tag when the software version must stay fixed.

The Revisions page lists saved revisions. Restoring one saves its values as a new revision. Nexigon Hub keeps recent revisions, 20 by default, and every revision still used by a device or rollout. Other old revisions can be removed, so revision numbers can have gaps.

Configuration and Device Status

Assignment makes the resulting properties available even while a device is offline. It does not prove that the device has read or applied them. Device software interprets the configuration and reports its result separately.

For example, system updates read dev.nexigon.ota.config and report dev.nexigon.ota.status. Rugix Apps reads dev.nexigon.rugix-apps.config and reports dev.nexigon.rugix-apps.status. These values follow the same merging and protection rules as other properties. Follow Deploy System Updates or Deploy Applications to use these integrations.

API Actions

ActionPurpose
profiles_Query and profiles_GetRead profiles and their latest property values.
profiles_CreateCreate a profile with its first revision.
profiles_UpdateChange its name and description without creating a revision.
profiles_SaveRevisionSave property values with an expectedRevision check.
profiles_QueryRevisionsRead saved revisions.
devices_SetProfilesSet a device’s ordered profiles and their revision modes.
devices_QueryPropertySourcesRead a property’s contributions from profiles and the device.
profiles_AssignDevices and profiles_UnassignDevicesAssign or remove a profile for devices matching group conditions.
profiles_DeleteDelete a profile and remove its contributions from devices.

Saving against an outdated revision returns RevisionConflict. Ordinary property writes continue to use expectedVersion to check the effective property version before changing the device’s own value.