Skip to content

Alarm and scene format ​

提示

Actions and triggers are used in the Scene Linkage, Alarm, and Timer modules.

shell
# Action
#type: 1=property, 2=function
#deviceId: optional
#serialNumber: optional, device number
#deviceName: optional
[{
	"id": "",
	"name": "",
	"value": "",
	"type": 1,
	"deviceId": 1,
	"deviceName": "",
	"serialNumber": "D99887",
	"productId": 1,
	"productName": "",
}]

# Trigger
#operator: equals, not equals, greater than, less than, greater than or equal, less than or equal, contains, not contains (string, array)
#type: 1=property, 2=function, 3=event, 4=device upgrade, 5=device online, 6=device offline
#source: 1=device trigger, 2=scheduled trigger
#isAdvance: whether to use a custom CRON expression, 0=no, 1=yes
#jobId: job ID
#cronExpression: CRON expression
 [{
    "id": "",
    "name": "",
    "value": "",
    "operator": "",
    "type": 1,
    "source": 1,
    "deviceId": 1,
    "deviceName": "",
    "serialNumber": "D99887",
    "productId": 1,
    "productName": "",
    "jobId": 0,
    "isAdvance": 0,
    "cronExpression": "",
}]

FastBee | fastbee.cn