thing.attr.change event

The thing.attr.change event is triggered whenever an attribute for a thing is published.

Form

Parameters

Name
Type
Required
Description
Thing key String This trigger can be limited to a thing specified by key. Leave blank to not limit this trigger to a specific thing.
Thing tags String This trigger can be limited to things specified by tags. Leave blank to not limit this trigger to things specified by tag. When multiple tags are specified in the trigger event, the thing must have at least one tag in common for the trigger to execute.
Attribute key String This trigger can be limited to a specified attribute by key. Leave blank to not limit this trigger to a specific attribute.

The trigger fires whenever an attribute is published. The date of the timestamp published is different than the existing attribute (even though the value is the same).

Event variables

Name Type Description
$(event.attr.key) String The key of the attribute that initiated this trigger.
$(event.attr.name) String The name of the attribute that initiated this trigger.
$(event.attr.ts) String The timestamp when the trigger was initiated.
$(event.attr.value) String The value set to the attribute when this trigger was initiated.
$(event.thing.key) String The key of the thing that initiated this trigger.
$(event.thing.name) String The name of the thing that initiated this trigger.
$(event.thing.type) String The thing definition key of the thing that initiated this trigger.