thing.connection event
The thing.connection event is triggered when a Thing connects or disconnects.
Form
Parameters
Name | Type | Required | Description |
---|---|---|---|
Thing key | String | This trigger can be limited to a specific thing identified by it's key. Leave blank to not limit this trigger to a specific thing. | |
Thing tags | String | This trigger can be limited to things identified by tag. Leave blank to not limit this trigger by tags. When multiple tags are specified in the trigger event, the thing must have at least one tag in common for the trigger to execute. | |
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 will execute. |
Event variables
Name | Type | Description |
---|---|---|
$(event.state) | String | The connected/disconnected state of the thing 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.ts) | String | The timestamp when the connect/disconnect occurred. |
$(event.remoteAddr) | String | The IP address of the thing. |