Commit e974af3d authored by 陈伟灿's avatar 陈伟灿

Merge branch 'cwc' into 'master'

【修改内容】添加Z3设备的物模型

See merge request chenweican/k-sdk!76
parents 6d145874 7db1aac7
...@@ -363,11 +363,11 @@ int kk_is_tcp_channel(char devCode[DEVICE_CODE_LEN]){ ...@@ -363,11 +363,11 @@ int kk_is_tcp_channel(char devCode[DEVICE_CODE_LEN]){
if (devCode == NULL || strlen(devCode) == 0){ if (devCode == NULL || strlen(devCode) == 0){
return -1; return -1;
} }
//printf("[%s] devCode=%s \n", __FUNCTION__,devCode); INFO_PRINT("[%s] devCode=%s \n", __FUNCTION__,devCode);
for(;i < MAX_LISTEN_NUM; i++){ for(;i < MAX_LISTEN_NUM; i++){
if(strcmp(devCode, g_tcp_ctrl[i].deviceCode) == 0){ if(strcmp(devCode, g_tcp_ctrl[i].deviceCode) == 0){
//printf("[%s] idx=%d ip=%s sock=%d\n", __FUNCTION__,i, g_tcp_ctrl[i].ip, g_tcp_ctrl[i].sock); INFO_PRINT("[%s] idx=%d ip=%s sock=%d\n", __FUNCTION__,i, g_tcp_ctrl[i].ip, g_tcp_ctrl[i].sock);
return g_tcp_ctrl[i].sock; return g_tcp_ctrl[i].sock;
} }
} }
......
...@@ -165,6 +165,10 @@ static int kk_property_set_data_check(cJSON * payload,const char *deviceCode){ ...@@ -165,6 +165,10 @@ static int kk_property_set_data_check(cJSON * payload,const char *deviceCode){
propertyItem = cJSON_GetObjectItem(params, property->identifier); propertyItem = cJSON_GetObjectItem(params, property->identifier);
if(propertyItem != NULL){ if(propertyItem != NULL){
if(strcmp(property->accessMode,"rw") != 0){
ERROR_PRINT("ERROR !!!property->accessMode:%s\n",property->accessMode);
return INVALID_PARAMETER;
}
if(property->data_value.type == KK_TSL_DATA_TYPE_STRUCT){ if(property->data_value.type == KK_TSL_DATA_TYPE_STRUCT){
kk_tsl_data_value_complex_t *complex_struct = NULL; kk_tsl_data_value_complex_t *complex_struct = NULL;
kk_tsl_data_t *current_data = NULL; kk_tsl_data_t *current_data = NULL;
...@@ -457,7 +461,7 @@ void kk_platMsg_handle(void* data, char* chalMark){ ...@@ -457,7 +461,7 @@ void kk_platMsg_handle(void* data, char* chalMark){
HAL_GetDevice_Code(ccu_deviceCode); HAL_GetDevice_Code(ccu_deviceCode);
kk_mid_subdev_add(KK_DM_DEVICE_GATEWAY,proCode->valuestring,devCode->valuestring, mac->valuestring,ccu_deviceCode); kk_mid_subdev_add(KK_DM_DEVICE_GATEWAY,proCode->valuestring,devCode->valuestring, mac->valuestring,ccu_deviceCode);
cJSON * sceneSupportStr = cJSON_GetObjectItem(jsonPay, MSG_SCENE_SUPPORT); cJSON * sceneSupportStr = cJSON_GetObjectItem(jsonPay, MSG_SCENE_SUPPORT);
if(sceneSupportStr != NULL&&sceneSupportStr->valueint == 1){ if(sceneSupportStr != NULL&&!strcmp(sceneSupportStr->valuestring,"1")){
kk_subDev_update_sceneSupport(1,devCode->valuestring); kk_subDev_update_sceneSupport(1,devCode->valuestring);
} }
}else{ }else{
......
...@@ -151,6 +151,7 @@ typedef struct { ...@@ -151,6 +151,7 @@ typedef struct {
typedef struct { typedef struct {
char *identifier; char *identifier;
char *accessMode;
kk_tsl_data_value_t data_value; kk_tsl_data_value_t data_value;
} kk_tsl_data_t; } kk_tsl_data_t;
......
...@@ -441,6 +441,17 @@ static int _kk_tsl_property_parse(_IN_ kk_tsl_data_t *property, _IN_ lite_cjson_ ...@@ -441,6 +441,17 @@ static int _kk_tsl_property_parse(_IN_ kk_tsl_data_t *property, _IN_ lite_cjson_
return FAIL_RETURN; return FAIL_RETURN;
} }
memset(&lite_item, 0, sizeof(lite_cjson_t));
res = lite_cjson_object_item(root, KK_TSL_KEY_ACCESS_MODE, strlen(KK_TSL_KEY_ACCESS_MODE), &lite_item);
if (res != SUCCESS_RETURN || !lite_cjson_is_string(&lite_item)) {
return JSON_PARSE_FAILED;
}
res = kk_utils_copy(lite_item.value, lite_item.value_length, (void **)(&property->accessMode),
lite_item.value_length + 1);
if (res != SUCCESS_RETURN) {
return FAIL_RETURN;
}
//Parse DataType //Parse DataType
memset(&lite_item, 0, sizeof(lite_cjson_t)); memset(&lite_item, 0, sizeof(lite_cjson_t));
res = lite_cjson_object_item(root, KK_TSL_KEY_DATATYPE, strlen(KK_TSL_KEY_DATATYPE), &lite_item); res = lite_cjson_object_item(root, KK_TSL_KEY_DATATYPE, strlen(KK_TSL_KEY_DATATYPE), &lite_item);
......
...@@ -172,14 +172,8 @@ ...@@ -172,14 +172,8 @@
"identifier": "week", "identifier": "week",
"name": "重复的周期", "name": "重复的周期",
"dataType": { "dataType": {
"type": "array", "type": "text",
"specs": { "specs": {}
"size": "7",
"item": {
"type": "int",
"specs": [1, 2, 3, 4, 5, 6, 7]
}
}
} }
}] }]
} }
...@@ -492,6 +486,47 @@ ...@@ -492,6 +486,47 @@
} }
} }
}] }]
},
"item4": {
"name": "调用服务",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "动作类型 action/thing/invokeService",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "deviceCode",
"name": "设备唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "identifier",
"name": "服务唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "args",
"name": "参数",
"dataType": {
"type": "struct",
"specs": {
"desc": "服务调用的传参"
}
}
}]
} }
} }
} }
...@@ -726,5 +761,33 @@ ...@@ -726,5 +761,33 @@
} }
}], }],
"outputData": [] "outputData": []
}, {
"identifier": "enableScene",
"name": "enableScene",
"required": true,
"callType": "async",
"desc": "enable场景",
"method": "thing.service.executeScene",
"inputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "启用"
}
}
}],
"outputData": []
}] }]
} }
\ No newline at end of file
...@@ -172,14 +172,8 @@ ...@@ -172,14 +172,8 @@
"identifier": "week", "identifier": "week",
"name": "重复的周期", "name": "重复的周期",
"dataType": { "dataType": {
"type": "array", "type": "text",
"specs": { "specs": {}
"size": "7",
"item": {
"type": "int",
"specs": [1, 2, 3, 4, 5, 6, 7]
}
}
} }
}] }]
} }
...@@ -492,6 +486,47 @@ ...@@ -492,6 +486,47 @@
} }
} }
}] }]
},
"item4": {
"name": "调用服务",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "动作类型 action/thing/invokeService",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "deviceCode",
"name": "设备唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "identifier",
"name": "服务唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "args",
"name": "参数",
"dataType": {
"type": "struct",
"specs": {
"desc": "服务调用的传参"
}
}
}]
} }
} }
} }
...@@ -726,5 +761,33 @@ ...@@ -726,5 +761,33 @@
} }
}], }],
"outputData": [] "outputData": []
}, {
"identifier": "enableScene",
"name": "enableScene",
"required": true,
"callType": "async",
"desc": "enable场景",
"method": "thing.service.executeScene",
"inputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "启用"
}
}
}],
"outputData": []
}] }]
} }
\ No newline at end of file
...@@ -878,13 +878,13 @@ ...@@ -878,13 +878,13 @@
"required": true, "required": true,
"method": "thing.event.DownloadLibCodeNotify.post", "method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{ "outputData": [{
"identifier": "CodeLibId", "identifier": "Process",
"name": "红外码库id", "name": "码库下载进度",
"dataType": { "dataType": {
"type": "int", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "1000" "max": "100"
} }
} }
}] }]
......
...@@ -109,6 +109,21 @@ ...@@ -109,6 +109,21 @@
"step": "0.01" "step": "0.01"
} }
} }
}, {
"identifier": "Illuminance",
"name": "仅用于光照作为场景触发条件",
"accessMode": "r",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"1": "黑夜[0~10]",
"2": "暗淡(10,100]",
"3": "正常(100,500]",
"4": "明亮(>500)"
}
}
}], }],
"events": [{ "events": [{
"outputData": [{ "outputData": [{
......
{
"schema": "https://iot-ap.ikonke.com/model/product_1028.json",
"productType": "controller",
"profile": {
"heartbeat": "3000",
"productCode": "1028",
"productName": "断水面板(电磁水阀控制器)"
},
"services": [
{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}
],
"outputData": []
},
{
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [],
"outputData": []
}
],
"properties": [
{
"identifier": "PowerSwitch",
"name": "电源开关",
"accessMode": "w",
"required": true,
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}
],
"events": [
{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": [
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}
]
}
]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_1029.json",
"productType": "controller",
"profile": {
"heartbeat": "3000",
"productCode": "1029",
"productName": "燃气机械臂控制器"
},
"services": [
{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭"
}
}
}
],
"outputData": []
},
{
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [],
"outputData": []
}
],
"properties": [
{
"identifier": "PowerSwitch",
"name": "电源开关",
"accessMode": "w",
"required": true,
"dataType": {
"type": "bool",
"specs": {
"0": "关闭"
}
}
}
],
"events": [
{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": [
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭"
}
}
}
]
}
]
}
\ No newline at end of file
...@@ -607,6 +607,13 @@ ...@@ -607,6 +607,13 @@
"required": true, "required": true,
"method": "thing.event.UnlockedAlarm.post", "method": "thing.event.UnlockedAlarm.post",
"outputData": [] "outputData": []
},{
"identifier": "MultipleOpenLockFailedAlarm",
"name": "多次开锁失败",
"type": "alert",
"required": true,
"method": "thing.event.MultipleOpenLockFailedAlarm.post",
"outputData": []
}, { }, {
"identifier": "HijackingAlarm", "identifier": "HijackingAlarm",
"name": "劫持报警", "name": "劫持报警",
......
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
"productCode": "1035", "productCode": "1035",
"productName": "kit silicon labs 人体感应" "productName": "kit silicon labs 人体感应"
}, },
"services": [{ "services": [
"outputData": [{ {
"outputData": [
{
"identifier": "MotionAlarmState", "identifier": "MotionAlarmState",
"name": "红外检测状态", "name": "红外检测状态",
"dataType": { "dataType": {
...@@ -17,7 +19,8 @@ ...@@ -17,7 +19,8 @@
"1": "有人" "1": "有人"
} }
} }
}, { },
{
"identifier": "Battery", "identifier": "Battery",
"name": "电池电量", "name": "电池电量",
"dataType": { "dataType": {
...@@ -30,7 +33,8 @@ ...@@ -30,7 +33,8 @@
"step": "0.01" "step": "0.01"
} }
} }
}, { },
{
"identifier": "DismantleState", "identifier": "DismantleState",
"name": "拆卸状态", "name": "拆卸状态",
"dataType": { "dataType": {
...@@ -40,28 +44,42 @@ ...@@ -40,28 +44,42 @@
"1": "被拆卸" "1": "被拆卸"
} }
} }
}], }
],
"identifier": "get", "identifier": "get",
"inputData": ["MotionAlarmState", "Battery", "DismantleState"], "inputData": [
"MotionAlarmState",
"Battery",
"DismantleState"
],
"method": "thing.service.property.get", "method": "thing.service.property.get",
"name": "get", "name": "get",
"required": true, "required": true,
"callType": "async", "callType": "async",
"desc": "属性获取" "desc": "属性获取"
}], }
"properties": [{ ],
"properties": [
{
"identifier": "MotionAlarmState", "identifier": "MotionAlarmState",
"name": "红外检测状态", "name": "红外检测状态(2~7仅用于场景)",
"accessMode": "r", "accessMode": "r",
"required": true, "required": true,
"dataType": { "dataType": {
"type": "enum", "type": "enum",
"specs": { "specs": {
"0": "无人", "0": "不触发",
"1": "有人" "1": "触发",
"2": "智能有人",
"3": "智能无人_2分钟",
"4": "智能无人_5分钟",
"5": "智能无人_10分钟",
"6": "智能无人_15分钟",
"7": "智能无人_30分钟"
} }
} }
}, { },
{
"identifier": "Battery", "identifier": "Battery",
"name": "电池电量", "name": "电池电量",
"accessMode": "r", "accessMode": "r",
...@@ -76,7 +94,8 @@ ...@@ -76,7 +94,8 @@
"step": "0.01" "step": "0.01"
} }
} }
}, { },
{
"identifier": "DismantleState", "identifier": "DismantleState",
"name": "拆卸状态", "name": "拆卸状态",
"accessMode": "r", "accessMode": "r",
...@@ -88,9 +107,12 @@ ...@@ -88,9 +107,12 @@
"1": "被拆卸" "1": "被拆卸"
} }
} }
}], }
"events": [{ ],
"outputData": [{ "events": [
{
"outputData": [
{
"identifier": "MotionAlarmState", "identifier": "MotionAlarmState",
"name": "红外检测状态", "name": "红外检测状态",
"dataType": { "dataType": {
...@@ -100,7 +122,8 @@ ...@@ -100,7 +122,8 @@
"1": "有人" "1": "有人"
} }
} }
}, { },
{
"identifier": "Battery", "identifier": "Battery",
"name": "电池电量", "name": "电池电量",
"dataType": { "dataType": {
...@@ -113,7 +136,8 @@ ...@@ -113,7 +136,8 @@
"step": "0.01" "step": "0.01"
} }
} }
}, { },
{
"identifier": "DismantleState", "identifier": "DismantleState",
"name": "拆卸状态", "name": "拆卸状态",
"dataType": { "dataType": {
...@@ -123,15 +147,18 @@ ...@@ -123,15 +147,18 @@
"1": "被拆卸" "1": "被拆卸"
} }
} }
}], }
],
"identifier": "property", "identifier": "property",
"method": "thing.event.property.post", "method": "thing.event.property.post",
"name": "property", "name": "property",
"type": "info", "type": "info",
"required": true, "required": true,
"desc": "属性上报" "desc": "属性上报"
}, { },
"outputData": [{ {
"outputData": [
{
"identifier": "MotionAlarmState", "identifier": "MotionAlarmState",
"name": "红外检测状态", "name": "红外检测状态",
"dataType": { "dataType": {
...@@ -141,15 +168,18 @@ ...@@ -141,15 +168,18 @@
"1": "有人" "1": "有人"
} }
} }
}], }
],
"identifier": "motionAlarm", "identifier": "motionAlarm",
"method": "thing.event.motionAlarm.post", "method": "thing.event.motionAlarm.post",
"name": "motionAlarm", "name": "motionAlarm",
"type": "alarm", "type": "alarm",
"required": true, "required": true,
"desc": "红外检测告警" "desc": "红外检测告警"
}, { },
"outputData": [{ {
"outputData": [
{
"identifier": "Battery", "identifier": "Battery",
"name": "电池电量", "name": "电池电量",
"dataType": { "dataType": {
...@@ -162,20 +192,23 @@ ...@@ -162,20 +192,23 @@
"step": "0.01" "step": "0.01"
} }
} }
}], }
],
"identifier": "BatteryAlarm", "identifier": "BatteryAlarm",
"method": "thing.event.BatteryAlarm.post", "method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm", "name": "BatteryAlarm",
"type": "alarm", "type": "alarm",
"required": true, "required": true,
"desc": "低电量告警" "desc": "低电量告警"
}, { },
{
"identifier": "TamperAlarm", "identifier": "TamperAlarm",
"name": "防撬报警", "name": "防撬报警",
"type": "alert", "type": "alert",
"required": true, "required": true,
"method": "thing.event.TamperAlarm.post", "method": "thing.event.TamperAlarm.post",
"outputData": [{ "outputData": [
{
"identifier": "DismantleState", "identifier": "DismantleState",
"name": "拆卸状态", "name": "拆卸状态",
"dataType": { "dataType": {
...@@ -185,6 +218,8 @@ ...@@ -185,6 +218,8 @@
"1": "被拆卸" "1": "被拆卸"
} }
} }
}] }
}] ]
}
]
} }
\ No newline at end of file
This diff is collapsed.
...@@ -878,13 +878,13 @@ ...@@ -878,13 +878,13 @@
"required": true, "required": true,
"method": "thing.event.DownloadLibCodeNotify.post", "method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{ "outputData": [{
"identifier": "CodeLibId", "identifier": "Process",
"name": "红外码库id", "name": "码库下载进度",
"dataType": { "dataType": {
"type": "int", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "1000" "max": "100"
} }
} }
}] }]
......
...@@ -878,13 +878,13 @@ ...@@ -878,13 +878,13 @@
"required": true, "required": true,
"method": "thing.event.DownloadLibCodeNotify.post", "method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{ "outputData": [{
"identifier": "CodeLibId", "identifier": "Process",
"name": "红外码库id", "name": "码库下载进度",
"dataType": { "dataType": {
"type": "int", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "1000" "max": "100"
} }
} }
}] }]
......
...@@ -608,6 +608,13 @@ ...@@ -608,6 +608,13 @@
"method": "thing.event.UnlockedAlarm.post", "method": "thing.event.UnlockedAlarm.post",
"outputData": [] "outputData": []
}, { }, {
"identifier": "MultipleOpenLockFailedAlarm",
"name": "多次开锁失败",
"type": "alert",
"required": true,
"method": "thing.event.MultipleOpenLockFailedAlarm.post",
"outputData": []
},{
"identifier": "HijackingAlarm", "identifier": "HijackingAlarm",
"name": "劫持报警", "name": "劫持报警",
"type": "alert", "type": "alert",
......
This diff is collapsed.
This diff is collapsed.
...@@ -878,13 +878,13 @@ ...@@ -878,13 +878,13 @@
"required": true, "required": true,
"method": "thing.event.DownloadLibCodeNotify.post", "method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{ "outputData": [{
"identifier": "CodeLibId", "identifier": "Process",
"name": "红外码库id", "name": "码库下载进度",
"dataType": { "dataType": {
"type": "int", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "1000" "max": "100"
} }
} }
}] }]
......
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
"productCode": "26", "productCode": "26",
"productName": "k人体传感器" "productName": "k人体传感器"
}, },
"services": [{ "services": [
"outputData": [{ {
"outputData": [
{
"identifier": "MotionAlarmState", "identifier": "MotionAlarmState",
"name": "红外检测状态", "name": "红外检测状态",
"dataType": { "dataType": {
...@@ -17,7 +19,8 @@ ...@@ -17,7 +19,8 @@
"1": "有人" "1": "有人"
} }
} }
}, { },
{
"identifier": "Battery", "identifier": "Battery",
"name": "电池电量", "name": "电池电量",
"dataType": { "dataType": {
...@@ -30,7 +33,8 @@ ...@@ -30,7 +33,8 @@
"step": "0.01" "step": "0.01"
} }
} }
}, { },
{
"identifier": "DismantleState", "identifier": "DismantleState",
"name": "拆卸状态", "name": "拆卸状态",
"dataType": { "dataType": {
...@@ -40,16 +44,23 @@ ...@@ -40,16 +44,23 @@
"1": "被拆卸" "1": "被拆卸"
} }
} }
}], }
],
"identifier": "get", "identifier": "get",
"inputData": ["MotionAlarmState", "Battery", "DismantleState"], "inputData": [
"MotionAlarmState",
"Battery",
"DismantleState"
],
"method": "thing.service.property.get", "method": "thing.service.property.get",
"name": "get", "name": "get",
"required": true, "required": true,
"callType": "async", "callType": "async",
"desc": "属性获取" "desc": "属性获取"
}], }
"properties": [{ ],
"properties": [
{
"identifier": "MotionAlarmState", "identifier": "MotionAlarmState",
"name": "红外检测状态", "name": "红外检测状态",
"accessMode": "r", "accessMode": "r",
...@@ -61,7 +72,8 @@ ...@@ -61,7 +72,8 @@
"1": "有人" "1": "有人"
} }
} }
}, { },
{
"identifier": "Battery", "identifier": "Battery",
"name": "电池电量", "name": "电池电量",
"accessMode": "r", "accessMode": "r",
...@@ -76,7 +88,8 @@ ...@@ -76,7 +88,8 @@
"step": "0.01" "step": "0.01"
} }
} }
}, { },
{
"identifier": "DismantleState", "identifier": "DismantleState",
"name": "拆卸状态", "name": "拆卸状态",
"accessMode": "r", "accessMode": "r",
...@@ -88,9 +101,12 @@ ...@@ -88,9 +101,12 @@
"1": "被拆卸" "1": "被拆卸"
} }
} }
}], }
"events": [{ ],
"outputData": [{ "events": [
{
"outputData": [
{
"identifier": "MotionAlarmState", "identifier": "MotionAlarmState",
"name": "红外检测状态", "name": "红外检测状态",
"dataType": { "dataType": {
...@@ -100,7 +116,8 @@ ...@@ -100,7 +116,8 @@
"1": "有人" "1": "有人"
} }
} }
}, { },
{
"identifier": "Battery", "identifier": "Battery",
"name": "电池电量", "name": "电池电量",
"dataType": { "dataType": {
...@@ -113,7 +130,8 @@ ...@@ -113,7 +130,8 @@
"step": "0.01" "step": "0.01"
} }
} }
}, { },
{
"identifier": "DismantleState", "identifier": "DismantleState",
"name": "拆卸状态", "name": "拆卸状态",
"dataType": { "dataType": {
...@@ -123,15 +141,18 @@ ...@@ -123,15 +141,18 @@
"1": "被拆卸" "1": "被拆卸"
} }
} }
}], }
],
"identifier": "property", "identifier": "property",
"method": "thing.event.property.post", "method": "thing.event.property.post",
"name": "property", "name": "property",
"type": "info", "type": "info",
"required": true, "required": true,
"desc": "属性上报" "desc": "属性上报"
}, { },
"outputData": [{ {
"outputData": [
{
"identifier": "MotionAlarmState", "identifier": "MotionAlarmState",
"name": "红外检测状态", "name": "红外检测状态",
"dataType": { "dataType": {
...@@ -141,15 +162,18 @@ ...@@ -141,15 +162,18 @@
"1": "有人" "1": "有人"
} }
} }
}], }
],
"identifier": "motionAlarm", "identifier": "motionAlarm",
"method": "thing.event.motionAlarm.post", "method": "thing.event.motionAlarm.post",
"name": "motionAlarm", "name": "motionAlarm",
"type": "alarm", "type": "alarm",
"required": true, "required": true,
"desc": "红外检测告警" "desc": "红外检测告警"
}, { },
"outputData": [{ {
"outputData": [
{
"identifier": "Battery", "identifier": "Battery",
"name": "电池电量", "name": "电池电量",
"dataType": { "dataType": {
...@@ -162,20 +186,23 @@ ...@@ -162,20 +186,23 @@
"step": "0.01" "step": "0.01"
} }
} }
}], }
],
"identifier": "BatteryAlarm", "identifier": "BatteryAlarm",
"method": "thing.event.BatteryAlarm.post", "method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm", "name": "BatteryAlarm",
"type": "alarm", "type": "alarm",
"required": true, "required": true,
"desc": "低电量告警" "desc": "低电量告警"
}, { },
{
"identifier": "TamperAlarm", "identifier": "TamperAlarm",
"name": "防撬报警", "name": "防撬报警",
"type": "alert", "type": "alert",
"required": true, "required": true,
"method": "thing.event.TamperAlarm.post", "method": "thing.event.TamperAlarm.post",
"outputData": [{ "outputData": [
{
"identifier": "DismantleState", "identifier": "DismantleState",
"name": "拆卸状态", "name": "拆卸状态",
"dataType": { "dataType": {
...@@ -185,6 +212,8 @@ ...@@ -185,6 +212,8 @@
"1": "被拆卸" "1": "被拆卸"
} }
} }
}] }
}] ]
}
]
} }
\ No newline at end of file
{
"schema":"https://iot-ap.ikonke.com/model/product_3001.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3001",
"productName":"星辰系列.零火线单路灯控面板Z3S"
},
"services":[
{
"outputData":[
],
"identifier":"set",
"inputData":[
{
"identifier":"PowerSwitch",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"method":"thing.service.property.set",
"name":"set",
"required":true,
"callType":"async",
"desc":"属性设置"
},
{
"outputData":[
{
"identifier":"PowerSwitch",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"get",
"inputData":[
"PowerSwitch",
"NoDisturbMode"
],
"method":"thing.service.property.get",
"name":"get",
"required":true,
"callType":"async",
"desc":"属性获取"
},
{
"outputData":[
],
"identifier":"negativeProperty",
"inputData":[
"PowerSwitch"
],
"method":"thing.service.negativeProperty",
"name":"negativeProperty",
"required":true,
"callType":"async",
"desc":"属性值取反"
}
],
"properties":[
{
"identifier":"PowerSwitch",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关",
"accessMode":"rw",
"required":true
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关",
"accessMode":"rw",
"required":true
}
],
"events":[
{
"outputData":[
{
"identifier":"PowerSwitch",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"property",
"method":"thing.event.property.post",
"name":"property",
"type":"info",
"required":true,
"desc":"属性上报"
}
]
}
\ No newline at end of file
{
"schema":"https://iot-ap.ikonke.com/model/product_3002.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3002",
"productName":"星辰系列.零火线双路灯控面板Z3S"
},
"services":[
{
"outputData":[
],
"identifier":"set",
"inputData":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"method":"thing.service.property.set",
"name":"set",
"required":true,
"callType":"async",
"desc":"属性设置"
},
{
"outputData":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"get",
"inputData":[
"PowerSwitch_1",
"PowerSwitch_2",
"NoDisturbMode"
],
"method":"thing.service.property.get",
"name":"get",
"required":true,
"callType":"async",
"desc":"属性获取"
},
{
"outputData":[
],
"identifier":"negativeProperty",
"inputData":[
"PowerSwitch_1",
"PowerSwitch_2"
],
"method":"thing.service.negativeProperty",
"name":"negativeProperty",
"required":true,
"callType":"async",
"desc":"属性值取反"
}
],
"properties":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关",
"accessMode":"rw",
"required":true
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关",
"accessMode":"rw",
"required":true
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关",
"accessMode":"rw",
"required":true
}
],
"events":[
{
"outputData":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"property",
"method":"thing.event.property.post",
"name":"property",
"type":"info",
"required":true,
"desc":"属性上报"
}
]
}
\ No newline at end of file
{
"schema":"https://iot-ap.ikonke.com/model/product_3003.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3003",
"productName":"星辰系列.零火线三路灯控面板Z3S"
},
"services":[
{
"outputData":[
],
"identifier":"set",
"inputData":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_3",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"method":"thing.service.property.set",
"name":"set",
"required":true,
"callType":"async",
"desc":"属性设置"
},
{
"outputData":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_3",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"get",
"inputData":[
"PowerSwitch_1",
"PowerSwitch_2",
"PowerSwitch_3",
"NoDisturbMode"
],
"method":"thing.service.property.get",
"name":"get",
"required":true,
"callType":"async",
"desc":"属性获取"
},
{
"outputData":[
],
"identifier":"negativeProperty",
"inputData":[
"PowerSwitch_1",
"PowerSwitch_2",
"PowerSwitch_3"
],
"method":"thing.service.negativeProperty",
"name":"negativeProperty",
"required":true,
"callType":"async",
"desc":"属性值取反"
}
],
"properties":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关",
"accessMode":"rw",
"required":true
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关",
"accessMode":"rw",
"required":true
},
{
"identifier":"PowerSwitch_3",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关",
"accessMode":"rw",
"required":true
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关",
"accessMode":"rw",
"required":true
}
],
"events":[
{
"outputData":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_3",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"property",
"method":"thing.event.property.post",
"name":"property",
"type":"info",
"required":true,
"desc":"属性上报"
}
]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_3004.json",
"productType": "scene",
"version": "1.0",
"profile": {
"heartbeat": "300",
"productCode": "3004",
"productName": "星辰系列.零火线情景面板Z3S"
},
"services": [
{
"outputData": [],
"identifier": "set",
"inputData": [
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
},
{
"outputData": [
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier": "get",
"inputData": ["NoDisturbMode"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}
],
"properties": [
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关",
"accessMode":"rw",
"required":true
}
],
"events": [
{
"outputData": [
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
},
{
"outputData": [
{
"identifier": "SceneNum",
"dataType": {
"specs": {
"1": "场景1",
"2": "场景2",
"3": "场景3",
"4": "场景4"
},
"type": "enum"
},
"name": "场景编号"
}
],
"identifier": "SceneRecall",
"method": "thing.event.SceneRecall.post",
"name": "SceneRecall",
"type": "scene",
"required": true,
"desc": "场景触发上报"
}
]
}
{
"schema": "https://iot-ap.ikonke.com/model/product_3005.json",
"productType": "curtain",
"version": "1.0",
"profile": {
"heartbeat": "300",
"productCode": "3005",
"productName": "星辰系列.零火线单路窗帘面板Z3S"
},
"services": [
{
"outputData": [],
"identifier": "set",
"inputData": [
{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
},
{
"identifier": "TripTime",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
},
{
"outputData": [
{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
},
{
"identifier": "TripTime",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier": "get",
"inputData": [
"OperationMode",
"TripTime",
"NoDisturbMode"
],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}
],
"properties": [
{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式",
"accessMode": "rw",
"required": true
},
{
"identifier": "TripTime",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间",
"accessMode": "rw",
"required": true
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关",
"accessMode":"rw",
"required":true
}
],
"events": [
{
"outputData": [
{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
},
{
"identifier": "TripTime",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}
]
}
{
"schema": "https://iot-ap.ikonke.com/model/product_3006.json",
"productType": "curtain",
"version": "1.0",
"profile": {
"heartbeat": "300",
"productCode": "3006",
"productName": "星辰系列.零火线双路窗帘面板Z3S"
},
"services": [
{
"outputData": [],
"identifier": "set",
"inputData": [
{
"identifier": "OperationMode_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
},
{
"identifier": "TripTime_1",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间"
},
{
"identifier": "OperationMode_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
},
{
"identifier": "TripTime_2",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
},
{
"outputData": [
{
"identifier": "OperationMode_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
},
{
"identifier": "TripTime_1",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间"
},
{
"identifier": "OperationMode_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
},
{
"identifier": "TripTime_2",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier": "get",
"inputData": [
"OperationMode_1",
"TripTime_1",
"OperationMode_2",
"TripTime_2",
"NoDisturbMode"
],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}
],
"properties": [
{
"identifier": "OperationMode_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式",
"accessMode": "rw",
"required": true
},
{
"identifier": "TripTime_1",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间",
"accessMode": "rw",
"required": true
},
{
"identifier": "OperationMode_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式",
"accessMode": "rw",
"required": true
},
{
"identifier": "TripTime_2",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间",
"accessMode": "rw",
"required": true
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关",
"accessMode":"rw",
"required":true
}
],
"events": [
{
"outputData": [
{
"identifier": "OperationMode_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
},
{
"identifier": "TripTime_1",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间"
},
{
"identifier": "OperationMode_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
},
{
"identifier": "TripTime_2",
"dataType": {
"type": "int",
"specs": {
"min": "30",
"max": "240",
"unit": "s",
"unitName": "秒",
"step": "1"
}
},
"name": "行程时间"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}
]
}
{
"schema":"https://iot-ap.ikonke.com/model/product_3009.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3009",
"productName":"铂金系列.零火线单路灯控面板Z3S"
},
"services":[
{
"outputData":[
],
"identifier":"set",
"inputData":[
{
"identifier":"PowerSwitch",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"method":"thing.service.property.set",
"name":"set",
"required":true,
"callType":"async",
"desc":"属性设置"
},
{
"outputData":[
{
"identifier":"PowerSwitch",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"get",
"inputData":[
"PowerSwitch",
"NoDisturbMode"
],
"method":"thing.service.property.get",
"name":"get",
"required":true,
"callType":"async",
"desc":"属性获取"
},
{
"outputData":[
],
"identifier":"negativeProperty",
"inputData":[
"PowerSwitch"
],
"method":"thing.service.negativeProperty",
"name":"negativeProperty",
"required":true,
"callType":"async",
"desc":"属性值取反"
}
],
"properties":[
{
"identifier":"PowerSwitch",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关",
"accessMode":"rw",
"required":true
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关",
"accessMode":"rw",
"required":true
}
],
"events":[
{
"outputData":[
{
"identifier":"PowerSwitch",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"property",
"method":"thing.event.property.post",
"name":"property",
"type":"info",
"required":true,
"desc":"属性上报"
}
]
}
\ No newline at end of file
{
"schema":"https://iot-ap.ikonke.com/model/product_3009.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3009",
"productName":"铂金系列.零火线双路灯控面板Z3S"
},
"services":[
{
"outputData":[
],
"identifier":"set",
"inputData":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"method":"thing.service.property.set",
"name":"set",
"required":true,
"callType":"async",
"desc":"属性设置"
},
{
"outputData":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"get",
"inputData":[
"PowerSwitch_1",
"PowerSwitch_2",
"NoDisturbMode"
],
"method":"thing.service.property.get",
"name":"get",
"required":true,
"callType":"async",
"desc":"属性获取"
},
{
"outputData":[
],
"identifier":"negativeProperty",
"inputData":[
"PowerSwitch_1",
"PowerSwitch_2"
],
"method":"thing.service.negativeProperty",
"name":"negativeProperty",
"required":true,
"callType":"async",
"desc":"属性值取反"
}
],
"properties":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关",
"accessMode":"rw",
"required":true
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关",
"accessMode":"rw",
"required":true
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关",
"accessMode":"rw",
"required":true
}
],
"events":[
{
"outputData":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_2",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"property",
"method":"thing.event.property.post",
"name":"property",
"type":"info",
"required":true,
"desc":"属性上报"
}
]
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
{
"schema": "https://iot-ap.ikonke.com/model/product_3013.json",
"productType": "scene",
"version": "1.0",
"profile": {
"heartbeat": "300",
"productCode": "3013",
"productName": "铂金系列.零火线情景面板Z3S"
},
"services": [
{
"outputData": [],
"identifier": "set",
"inputData": [
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
},
{
"outputData": [
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier": "get",
"inputData": ["NoDisturbMode"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}
],
"properties": [
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关",
"accessMode":"rw",
"required":true
}
],
"events": [
{
"outputData":[
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier":"property",
"method":"thing.event.property.post",
"name":"property",
"type":"info",
"required":true,
"desc":"属性上报"
},
{
"outputData": [
{
"identifier": "SceneId",
"dataType": {
"specs": {
"1": "场景1",
"2": "场景2",
"3": "场景3"
},
"type": "enum"
},
"name": "场景编号"
}
],
"identifier": "SceneRecall",
"method": "thing.event.SceneRecall.post",
"name": "SceneRecall",
"type": "scene",
"required": true,
"desc": "场景触发上报"
}
]
}
This diff is collapsed.
{
"schema": "https://iot-ap.ikonke.com/model/product_3015.json",
"productType": "sensor",
"version": "1",
"profile": {
"heartbeat": "300",
"productCode": "3015",
"productName": "铂金系列.零火线SOS紧急呼叫面板Z3S(KONKE)"
},
"services": [
{
"outputData": [],
"inputData": [],
"identifier": "PositioningDevice",
"method": "thing.service.PositioningDevice",
"name": "PositioningDevice",
"required": true,
"callType": "async",
"desc": "设备定位"
}
],
"properties": [
],
"events": [
{
"outputData": [],
"identifier": "sosAlarm",
"method": "thing.event.sosAlarm.post",
"name": "sosAlarm",
"type": "alarm",
"required": true,
"desc": "紧急按钮告警"
}
]
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment