Skip to content

Triggers

Condition-based automations.

Every call needs the project’s API key in x-header-apikey. See Authentication. Errors use the codes in Error codes.

GET https://openapi.rogo.com.vn/api/v2.0/iot-core/smarttrigger/{userId}
Parameter In Type Required Description
userId path string Yes
Terminal window
curl -X GET "https://openapi.rogo.com.vn/api/v2.0/iot-core/smarttrigger/<userId>" \
-H "x-header-apikey: $API_KEY"
Status Meaning
200
Example answer
{
"uuid": "string",
"devId": "string",
"smartId": "string",
"cfm": 0,
"elm": 0,
"condition": 0,
"mix": 0,
"value": [
"string"
],
"type": 0,
"conditionExt": 0,
"zone": 0,
"valueExt": [
"string"
],
"elmExt": 0,
"locId": "string",
"userId": "string",
"timeJob": [
"string"
],
"timeCfg": [
"string"
],
"triggerCondStatus": [
"string"
]
}
GET https://openapi.rogo.com.vn/api/v2.0/iot-core/smarttrigger/{userId}/{uuid}
Parameter In Type Required Description
uuid path string Yes
userId path string Yes
Terminal window
curl -X GET "https://openapi.rogo.com.vn/api/v2.0/iot-core/smarttrigger/<userId>/<uuid>" \
-H "x-header-apikey: $API_KEY"
Status Meaning
200
Example answer
{
"uuid": "string",
"devId": "string",
"smartId": "string",
"cfm": 0,
"elm": 0,
"condition": 0,
"mix": 0,
"value": [
"string"
],
"type": 0,
"conditionExt": 0,
"zone": 0,
"valueExt": [
"string"
],
"elmExt": 0,
"locId": "string",
"userId": "string",
"timeJob": [
"string"
],
"timeCfg": [
"string"
],
"triggerCondStatus": [
"string"
]
}