Skip to content

Query Automation Details

API Address:/v2/cep/enduserapi/automation/detail

Request Method:GET

Request Data Type:application/x-www-form-urlencoded

Response Data Type:*/*

API Description:Query automation details

Request Parameters:

Parameter NameDescriptionRequest TypeRequiredData TypeSchema
automationIdAutomation IDquerytrueinteger(int64)
Authorizationheaderfalsestring
fidHome ID, required if home mode is enabled, otherwise not requiredqueryfalsestring

Response Status:

Status CodeDescriptionSchema
200OKApiResult«Automation Details»
401Unauthorized
403Forbidden
404Not Found

Response Parameters:

Parameter NameDescriptionTypeSchema
codeinteger(int32)integer(int32)
dataAutomation DetailsAutomation Details
  actionsTrigger actionsarrayAutomation Execution Action
    delayTimeDelay time in secondsinteger
    deviceKeyDevice DK/Group IDstring
    iconDevice/Group/Scene iconstring
    idinteger
    nameDevice/Group/Scene namestring
    productKeyProduct PK/Group PKstring
    propertyDevice propertyThing Model PropertyThing Model Property
      codeThing model identifierstring
      compareComparison operator: >>=<
      dataTypeData type. Supports: BOOL, ENUM, INT, FLOAT, DOUBLE, Available values: BOOL,DOUBLE,ENUM,FLOAT,INTstring
      idThing model function IDinteger
      nameThing model namestring
      subNamestring
      subTypestring
      typeThing model typestring
      unitThing model unitstring
      valueThing model property comparison valueobject
    sceneIdScene IDstring
    sortExecution action order, starts from 1 and incrementsinteger
    typeExecution action type. 1: Delay, 2: Device, 3: Group, 4: Sceneinteger
  automationIdAutomation IDinteger(int64)
  conditionTypeTrigger type. 1: Meet any, 2: Meet allinteger(int32)
  conditionsTrigger conditionsarrayAutomation Trigger Condition
    deviceKeyDevice DKstring
    iconDevice/Group/Scene iconstring
    nameDevice/Group/Scene namestring
    productKeyProduct PKstring
    propertyDevice propertyThing Model PropertyThing Model Property
      codeThing model identifierstring
      compareComparison operator: >>=<
      dataTypeData type. Supports: BOOL, ENUM, INT, FLOAT, DOUBLE, Available values: BOOL,DOUBLE,ENUM,FLOAT,INTstring
      idThing model function IDinteger
      nameThing model namestring
      subNamestring
      subTypestring
      typeThing model typestring
      unitThing model unitstring
      valueThing model property comparison valueobject
    sortCondition order, starts from 1 and incrementsinteger
    timerCondition timeAutomation Trigger Condition TimeAutomation Trigger Condition Time
      dayOfWeekRepeat cycle. Required when timer type is custom, 1,2,3...7 represent Monday to Sundaystring
      timeScheduled execution time. Format: HH:mmstring
      timeZoneTime zone, format: +-HH:mmstring
      typeTimer type. 0: Once only, 1: Daily, 2: Custominteger
    typeTrigger condition type. 0: Device, 1: Timerinteger
  iconAutomation iconstring
  nameAutomation namestring
  nameTypeAutomation name generation method. 1: System generated, 2: User definedinteger(int32)
  preconditionEffective timeAutomation Effective TimeAutomation Effective Time
    effectDateEffective date. Not filled when effective date type is daily. Weekly: 1,2,3,...7 represent Monday to Sunday, Monthly: 1-31, Specific date: format MM-dd/MM-dd, e.g.: 12-19/12-21string
    effectDateTypeEffective date type. 0: Daily, 1: Weekly, 2: Monthly, 3: Specific dateinteger
    effectTimeTypeEffective time type. 0: Day, 1: Night, 2: All day, 3: Specific time periodinteger
    endTimeEnd time. Required when effective time type is all day or specific time period, format: HH:mmstring
    locationCoordinates. Longitude first followed by latitude, required when effective time type is day or nightstring
    regionNameRegion namestring
    startTimeStart time. Required when effective time type is all day or specific time period, format: HH:mmstring
    timeZoneTime zone, format: +-HH:mmstring
extMsgstring
msgstring

Response Example:

javascript
{
	"code": 0,
	"data": {
		"actions": [
			{
				"delayTime": 0,
				"deviceKey": "",
				"icon": "",
				"id": 0,
				"name": "",
				"productKey": "",
				"property": {
					"code": "",
					"compare": "",
					"dataType": "",
					"id": 0,
					"name": "",
					"subName": "",
					"subType": "",
					"type": "",
					"unit": "",
					"value": {}
				},
				"sceneId": "",
				"sort": 0,
				"type": 0
			}
		],
		"automationId": 0,
		"conditionType": 0,
		"conditions": [
			{
				"deviceKey": "",
				"icon": "",
				"name": "",
				"productKey": "",
				"property": {
					"code": "",
					"compare": "",
					"dataType": "",
					"id": 0,
					"name": "",
					"subName": "",
					"subType": "",
					"type": "",
					"unit": "",
					"value": {}
				},
				"sort": 0,
				"timer": {
					"dayOfWeek": "",
					"time": "",
					"timeZone": "",
					"type": 0
				},
				"type": 0
			}
		],
		"icon": "",
		"name": "",
		"nameType": 0,
		"precondition": {
			"effectDate": "",
			"effectDateType": 0,
			"effectTimeType": 0,
			"endTime": "",
			"location": "",
			"regionName": "",
			"startTime": "",
			"timeZone": ""
		}
	},
	"extMsg": "",
	"msg": ""
}