attribute.current Action

This trigger action will retrieve the current thing's attribute.

Action

This trigger action is found under the Attribute heading.

Canvas

When dragged onto the canvas, the appearance of the action is a rectangle with two routing points.

The left routing point (red) is the failure route. This route will be taken if there is an error during execution.

The right routing point (green) is the success route. This route will be taken if action executes successfully.

Form

Parameters

Name

Type

Required

Descriptions

Thing key

String

Yes

Identifies the thing for which the attribute is to be retrieved. It can be the thing key associated with the trigger event: $(event.thing.key).

Attribute key

String

Yes

Identifies the attribute of the thing the be retrieved.

Action variables

Name

Type

Description

$(action.X.value)

String

The value of the attribute.