Automation - Get Automation Detail
Getting the automation's detail
Gethttps://api.iotstadium.com/ext/automations/:id
Parameter
Field | Type | Description |
---|---|---|
id | Number |
The ID of the automation for which you want to get its details |
{
"message": "success",
"code": 200,
"data": {
"automations": {
"id": 982,
"automation_name": "telemetry testing",
"uuid": "",
"is_active": 1,
"created_at": "2024-05-30 06:41:30",
"description": "test gaes",
"automation_interval": 5,
"automation_delay": 5,
"automation_deadband": "0.00",
"automation_type": "trigger",
"is_automation_from_widget": 0,
"widget_map_layer_automation": [],
"suspend_status": 0,
"suspend_status_desc": "not suspended",
"suspended_until": null,
"suspended_by_user": "",
"json": {
"triggers": [
{
"device": 588,
"source": "telemetry",
"value": [
{
"telemetry_key": "test tele",
"key_wording": "test tele (test tele)",
"comparator_from_profile": 3,
"latest_telemetry_value": ""
}
],
"condition": "=",
"comparator": "10"
},
{
"relation": "AND"
},
{
"device": 588,
"source": "telemetry",
"value": [
{
"telemetry_key": "test tele",
"key_wording": "test tele (test tele)",
"comparator_from_profile": 3,
"latest_telemetry_value": ""
}
],
"condition": "=",
"comparator": "10"
}
],
"schedule": null,
"actions": [
{
"type": "alarm",
"detail": {
"alarm": {
"is_send_email": 1,
"alarm_email": [],
"device": 588,
"detail": "testing",
"alarm_email_group_id": [
37,
39
]
}
}
},
{
"type": "controller",
"detail": {
"controller": {
"device": 588,
"device_action_key": "2139129123",
"device_action_value": "off",
"device_actuator_id": 140,
"device_actuator_action_id": 734
}
}
},
{
"type": "email",
"detail": {
"email": {
"to": [],
"subject": "testing",
"content": "testing",
"email_group_id": [
39,
38,
23
]
}
}
},
{
"type": "api",
"detail": {
"api": {
"url": "testing.com",
"method": "GET",
"headers": [
{
"key": "Content-Type",
"value": "application\\json"
}
],
"params": [
{
"key": "tst",
"value": "1"
}
],
"body": "testing"
}
}
}
]
}
}
}
}