thing.connection Event

The thing.connection event is triggered when a thing connects or disconnects.

Form

Parameters

Name

Type

Required

Description

Thing key

String

 

To limit this trigger to a specific thing, specify the thing key. Otherwise, leave blank.

Thing tags

String

 

To limit this trigger to a specific thing identified by tags, specify the tags. Otherwise, leave blank.

State

String

Yes

Whether the thing has connected or disconnected.

Time in condition (seconds)

Integer

 

The length of time (in seconds) that the thing must be in the specified state before this trigger executes.

Event Variables

Name

Type

Description

$(event.state)

String

The connected or disconnected state of the thing when this trigger executed.

$(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.ts)

String

The timestamp when the connect or disconnect occurred.