Managing attributes
The Initiate Attribute node allows you to create, edit, and manage data attributes throughout your IoT Logic flow. This guide covers the essential attribute management operations: create, edit, and delete.
Creating attributes
Here's how to create a new attribute in the Initiate attribute node:
Click the Add attribute button
Enter a name for your attribute (e.g., "Speed mph")
Define the value expression (e.g.,
value('can_speed')/1.609
)Optionally configure generation time and server time, to do it, enable the Specify generation time toggle
For details, see Time settings for attributesClick Save to confirm the node configuration
The new attribute is saved in the node and the configured calculation is applied immediately in the flow.
Time settings for attributes
Time settings give you control over timestamps associated with your attributes:
Generation time: When the data was created
Use
now()
to set the current time in millisecondsUse
genTime('parameter_name', 0, 'valid')
to use the parameter's own generation time
Server time: When the data was received by IoT Logic
Use
now()
to set the current time in millisecondsUse
srvTime('parameter_name', 0, 'valid')
to use the parameter's server timeAdd offsets to adjust for time zones (e.g.,
srvTime('can_speed', 0, 'valid') + 120000
adds 2 minutes)
Time settings are important for data analysis and synchronization. Proper time configuration ensures that your data maintains chronological integrity throughout the flow.
Editing existing attributes
To modify an existing attribute:
Open the node configuration window by hovering your mouse over the node to display quick actions, or double-clicking the node
Find the attribute you wish to edit in the attribute list
Make the needed changes in the text fields of the attribute properties: Attribute name, Formula or time settings
If you need to edit other attributes in this node, repeat step 3 for them
Click Save to apply your changes to the node configuration
When you edit an attribute, the changes will only apply to new data received after saving. Historical data already collected will not be recalculated.
Deleting attributes
To remove an attribute that is no longer needed:
Open the node configuration window by hovering your mouse over the node to display quick actions, or double-clicking the node
Find the attribute you wish to delete in the attribute list and hover your mouse over it to display a
menu
Click the appeared menu and select Delete
Confirm your decision to delete the attribute
Click Save to apply your changes to the node configuration

Deleting attributes in the Initiate attribute node
When you delete an attribute, it will no longer be calculated for new data, but historical data containing this attribute will remain unchanged in the database.