Explore Plans
Mobile menu Close menu
AT&T M2XAT&T M2X

Trigger fired

This Trigger fires every time a M2X trigger has been fired.

Developer info

API endpoint slug
attm2x.trigger_fired

Trigger fields

Device ID Text input > Other

Label
Which device?
Helper text
The device ID can be found on the Device Details page of your M2X account. Leave this field blank for firing this trigger when an M2X trigger has been fired by any device.
Slug
device_id
Required
true
Can have default value
true

Ingredients

Device IDThe unique ID of the device that has fired the trigger.

Slug
device_id
Filter code
Attm2x.triggerFired.DeviceId
Type
String
Example
65b89448f954f49e42b746d73b385cbb

Device nameThe name of the device that has fired the trigger.

Slug
device_name
Filter code
Attm2x.triggerFired.DeviceName
Type
String
Example
Main Engine

Device serialThe serial number of the device that has fired the trigger.

Slug
device_serial
Filter code
Attm2x.triggerFired.DeviceSerial
Type
String
Example
ABCD1234567890

Trigger IDThe unique identifier of the trigger that has been fired.

Slug
trigger_id
Filter code
Attm2x.triggerFired.TriggerID
Type
String
Example
b1e8abbad65cb52b0d75eb2e63efa782

Trigger nameThe name of the trigger that has been fired.

Slug
trigger_name
Filter code
Attm2x.triggerFired.TriggerName
Type
String
Example
high-temperature-and-humidity

ConditionsA JSON representation of the conditions that caused the trigger to be fired.

Slug
conditions
Filter code
Attm2x.triggerFired.Conditions
Type
String
Example
{"temperature": { "gt": 30, "reset": 28 }, "humidity": { "gte": 80, "lte": 90 }}

ValuesA JSON representation of all the values that has caused the trigger to be fired.

Slug
values
Filter code
Attm2x.triggerFired.Values
Type
String
Example
{"temperature": { "value": 35, timestamp: "2014-06-27T22:22:58.104Z", "unit_symbol": "ÂșC" }}

Custom dataOptional custom data set by the user for this trigger.

Slug
custom_data
Filter code
Attm2x.triggerFired.CustomData
Type
String
Example
{"status": "yellow"}

TimestampDate and time trigger has been fired.

Slug
timestamp
Filter code
Attm2x.triggerFired.Timestamp
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06.000+05:00