thing.attr.change Event

The thing.attr.change event is triggered when an attribute for a thing is altered.

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.

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.

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.