Platform DocumentationPlatform Documentation
Device TemplateWorkflowsNodes

Update Attribute

Update device attributes from your workflows.

The Update Attribute node updates device attributes during workflow execution. This allows workflows to modify device metadata and configuration.

Overview

The Update Attribute node enables workflows to write back attribute values to devices, providing a way to update device configuration, status, or custom properties.

Update Attribute Screenshot

How It Works

  1. Select the target device and attribute name
  2. Set the new attribute value (constant or workflow variable)
  3. The attribute is updated when the workflow runs

Configuration

SettingDescription
DeviceSelect the target device
AttributeSelect or enter the attribute name
ValueThe new value (constant or variable)

Use Cases

  • Status updates — Update device status based on workflow results
  • Configuration changes — Modify device configuration dynamically
  • Metadata tracking — Record last maintenance date, error counts
  • State management — Implement device state machines

Example: Update Device Status

Node: Update Attribute
  Device: {device}
  Attribute: lastAlertTime
  Value: {currentTimestamp}

Node: Update Attribute
  Device: {device}
  Attribute: alertCount
  Value: {alertCount + 1}

Best Practices

  • Use descriptive attribute names
  • Validate values before updating
  • Handle errors if the device is offline
  • Log attribute changes for audit purposes

Limitations

  • Only updates attributes set on the device
  • Device must be online for immediate sync
  • Some attributes may require device restart

Differences from Datastreams

FeatureAttributesDatastreams
PurposeDevice metadataTime-series data
Update FrequencyInfrequentContinuous
StorageDevice configDatastore
QueryCurrent value onlyHistorical values

Next Steps

Connect the update attribute node after data processing, or use it alongside notification nodes to update device status when alerts are sent.

On this page