Commit 4f152160 authored by 陈伟灿's avatar 陈伟灿

Merge branch 'cwc' into 'master'

【修改内容】1,修改网关名字同步后显示不正常的BUG;2,修改快照上报不触发IFTT

See merge request chenweican/k-sdk!173
parents e58f0462 7e4db009
......@@ -30,6 +30,7 @@ int kk_check_config_file(char* path,char **config)
FILE *fp;
int filesize = 0;
char *buf = NULL;
INFO_PRINT("path:%s\n",path);
if((access(path,F_OK)) == 0){
fp = fopen(path, "r");
if(fp != NULL){
......
......@@ -161,9 +161,9 @@ cJSON *kk_scene_build(SYN_SCENE_ITEM **content)
}
int kk_sync_actions(cJSON *actions,SYN_SCENE_ACTION **act,char **room_id)
int kk_sync_actions(cJSON *actions,SYN_SCENE_ACTION **act)
{
cJSON *deviceCode,*delay,*epNum,*propertyName,*type,*propertyValue,*roomId;
cJSON *deviceCode,*delay,*epNum,*propertyName,*type,*propertyValue;
int i,num = cJSON_GetArraySize(actions);
int node = -1;
......@@ -186,7 +186,7 @@ int kk_sync_actions(cJSON *actions,SYN_SCENE_ACTION **act,char **room_id)
propertyName= cJSON_GetObjectItem(item,"propertyName");
type= cJSON_GetObjectItem(item,"type");
propertyValue= cJSON_GetObjectItem(item,"propertyValue");
roomId= cJSON_GetObjectItem(item,"roomId");
ptr->ui_area = NULL;
ptr->ui_name = NULL;
......@@ -196,11 +196,6 @@ int kk_sync_actions(cJSON *actions,SYN_SCENE_ACTION **act,char **room_id)
ptr->operate_type ="*";//type->valuestring;//根据实际设备调整
ptr->operation = "*";//propertyValue->valuestring;//
if(get_flag==0){
get_flag = 1;
*room_id = roomId->valuestring;
}
}
return num;
}
......@@ -280,7 +275,7 @@ cJSON *kk_sync_scence_to_sdk(cJSON *root,cJSON *data)
{
cJSON *scenes = cJSON_GetObjectItem(data,SCENES_STR);
cJSON *actions,*enable,*name,*sceneId,*sceneType,*trigger,*condition;
cJSON *actions,*enable,*name,*sceneId,*sceneType,*trigger,*condition,*roomId;
int i,num = cJSON_GetArraySize(scenes);
int k = 0,isMatch = 0;
......@@ -306,7 +301,11 @@ cJSON *kk_sync_scence_to_sdk(cJSON *root,cJSON *data)
sceneType= cJSON_GetObjectItem(item,SCENE_TYPE_STR);
trigger= cJSON_GetObjectItem(item,SCENE_TRIGGER_STR);
condition= cJSON_GetObjectItem(item,CONDITION_STR);
roomId = cJSON_GetObjectItem(item,ROOMS_ID_STR);
if(roomId == NULL){
INFO_PRINT("-------------------->NO ROOMID\n");
continue;
}
/*过滤多控 iftt,定时相关场景*/
if(sceneType == NULL||sceneType->type!=cJSON_Number||sceneType->valueint != 0){
continue;
......@@ -325,7 +324,7 @@ cJSON *kk_sync_scence_to_sdk(cJSON *root,cJSON *data)
if(isMatch == 0){
pScene->scenetype = "100";//自定义场景
}
pScene->act_num = kk_sync_actions(actions,&pScene->act,&pScene->room_id);
pScene->act_num = kk_sync_actions(actions,&pScene->act);
kk_sync_scene_condition(condition,&pScene);
......@@ -333,7 +332,7 @@ cJSON *kk_sync_scence_to_sdk(cJSON *root,cJSON *data)
pScene->scene_id = sceneId->valuestring;
pScene->name = name->valuestring;
pScene->pannel_id = NULL;
pScene->room_id = roomId->valuestring;
sceneItem = kk_scene_build(&pScene);
cJSON_AddItemToArray(scenesAry,sceneItem);
......@@ -561,15 +560,12 @@ static int _kk_sync_devices_status_arg_str(kk_map_dev_node_t *node,cJSON *devSta
}
num = cJSON_GetArraySize(newccu);
printf("[%s][%d]\n",__FUNCTION__,__LINE__);
for(i=0;i<num;i++){
cJSON * newccuItem = cJSON_GetArrayItem(newccu,i);
cJSON * oldccuItem = cJSON_GetArrayItem(oldccu,i);
cJSON *val = NULL;
printf("[%s][%d]\n",__FUNCTION__,__LINE__);
if((val = val_conver_new2old(newccuItem,oldccuItem,0))!=NULL){
printf("[%s][%d]\n",__FUNCTION__,__LINE__);
char indexId[16] = {0};
char nodeid[32] = {0};
cJSON *epNum = cJSON_GetObjectItem(newccuItem,CHANNEL_STRING);
......
......@@ -734,6 +734,7 @@ static int kk_service_addDeviceToRoom_handle(cJSON *params)
sprintf(name,"空调%d",eplist[i]);
kk_room_dev_add(roomId->valuestring,room_name->valuestring,deviceCode->valuestring,epNumStr,name);
}
INFO_PRINT("addDeviceToRoom air gw count:%d\n",count);
}
if(strcmp(node->productType,KK_DM_AIR_SWITCH_GATEWAY_TYPE) == 0 && isAirGwFlag == 2){
int eplist[64] = {0};
......
......@@ -741,9 +741,9 @@ int kk_indoorAir_query_epnums(const char *deviceCode,int epList[])
if(count > 64){
return count;
}
printf("-----------------------------------------------kk_indoorAir_query_epnums\n");
INFO_PRINT("-----------------------------------------------kk_indoorAir_query_epnums count:%d\n",count);
epList[count] = sqlite3_column_int(stmt, DB_INDOORAIR_EPNUM);
printf("epList[count] :%d\n",epList[count]);
INFO_PRINT("epList[count] :%d\n",epList[count]);
count++;
}
sqlite3_free(sqlCmd);
......
......@@ -811,6 +811,7 @@ static int kk_get_gw_devices_info(cJSON *gwdevices)
{
char *sqlCmd = NULL;
char macaddr[33] = {0};
char gwname[256] = {0};
//char *zErrMsg = 0;
sqlite3_stmt *stmt;
//cJSON *gwdevicesItem = NULL;
......@@ -840,7 +841,8 @@ static int kk_get_gw_devices_info(cJSON *gwdevices)
cJSON_AddStringToObject(gwdevicesItem, KK_SYNC_VERSION_STR, gw_version);
_kk_deviceCode_switchto_mac(gw_deviceCode,macaddr);
cJSON_AddStringToObject(gwdevicesItem, KK_SYNC_MAC_STR, macaddr);
cJSON_AddStringToObject(gwdevicesItem, KK_SYNC_NANE_STR, "GW");
kk_property_db_get_value(gw_deviceCode,KK_SYNC_NANE_STR,gwname);
cJSON_AddStringToObject(gwdevicesItem, KK_SYNC_NANE_STR, gwname);
cJSON_AddNumberToObject(gwdevicesItem, KK_SYNC_ONLINE_STR, (strcmp(gw_isline,"0")==0)?1:0);
cJSON_AddStringToObject(gwdevicesItem, KK_SYNC_PRODUCTCODE_STR, gw_productCode);
cJSON_AddStringToObject(gwdevicesItem, KK_SYNC_SN_STR, "");
......@@ -1025,9 +1027,18 @@ static int kk_get_panel_scenes_actions_info(cJSON *actionItem,int id)
cJSON_AddStringToObject(actionItem, KK_SYNC_SCENE_PROPERTYNAME_STR, propertyName);
}
cJSON_AddStringToObject(actionItem, KK_SYNC_SCENE_TYPE_STR, type);
if(strstr(propertyValue,"{")!=NULL && strstr(propertyValue,"}")!=NULL){
cJSON* prtyObj = cJSON_Parse(propertyValue);
if(prtyObj != NULL){
cJSON_AddItemToObject(actionItem, KK_SYNC_SCENE_PROPERTYVALUE_STR, prtyObj);
}else{
cJSON_AddStringToObject(actionItem, KK_SYNC_SCENE_PROPERTYVALUE_STR, propertyValue);
}
}else{
cJSON_AddStringToObject(actionItem, KK_SYNC_SCENE_PROPERTYVALUE_STR, propertyValue);
}
cJSON_AddStringToObject(actionItem, KK_SYNC_ROOMID_STR, roomIdStr);
break;
}
......@@ -1345,6 +1356,7 @@ static int kk_get_scenes_info(cJSON *data)
sqlite3_stmt *stmt;
int enable = 0,type = 0;
char *name = NULL;
char *roomId = NULL;
char *sceneId = NULL;
kk_sync_ctx_t *ctx = _kk_sync_get_ctx();
if(data == NULL){
......@@ -1366,6 +1378,8 @@ static int kk_get_scenes_info(cJSON *data)
name = (char*)sqlite3_column_text(stmt, DB_SCENEINFO_SCENENAME);
cJSON_AddStringToObject(sceneArrayItem, KK_SYNC_NANE_STR, name);
sceneId = (char*)sqlite3_column_text(stmt, DB_SCENEINFO_SCENEID);
roomId = (char*)sqlite3_column_text(stmt, DB_SCENEINFO_ROOMID);
cJSON_AddStringToObject(sceneArrayItem, KK_SYNC_ROOMID_STR, roomId);
cJSON_AddStringToObject(sceneArrayItem, KK_SYNC_SCENEID_STR, sceneId);
cJSON *actionArray = cJSON_CreateArray();
kk_get_scenes_actions_info(actionArray,atoi(sceneId));
......
......@@ -1163,6 +1163,17 @@ static int kk_subDevice_property_handle(cJSON *info,cJSON *payload,char *deviceC
free(infff);
return 0;
}
static int _kk_subDevice_online_to_app(cJSON *info,cJSON *payload)
{
char *payload11=cJSON_Print(payload);
char *infff=cJSON_Print(info);
printf("------------------------payload11:%s\n",payload11);
printf("------------------------infff:%s\n",infff);
kk_sendData2app(infff,payload11,0);
free(payload11);
free(infff);
return 0;
}
static int kk_indoorAir_online_handle(dm_mgr_dev_node_t *node ,char *deviceCode,int epNum)
{
int idx = 0;
......@@ -1334,14 +1345,17 @@ void kk_platMsg_handle(void* data, char* chalMark){
cJSON *epNumJson = cJSON_GetObjectItem(jsonPay, "epNum");
if(epNumJson == NULL) goto error;
kk_indoorAir_online_handle(search_node,devCode->valuestring,epNumJson->valueint);
_kk_subDevice_online_to_app(info,payload);
}else if(strcmp(search_node->productType,KK_DM_AIR_SWITCH_GATEWAY_TYPE) == 0){
cJSON *epNumJson = cJSON_GetObjectItem(jsonPay, "epNum");
if(epNumJson == NULL) goto error;
kk_subAirSwitch_online_handle(search_node,devCode->valuestring,epNumJson->valueint);
_kk_subDevice_online_to_app(info,payload);
}else if(strcmp(search_node->productType,KK_DM_FRESHAIR_GATEWAY_TYPE) == 0){
cJSON *epNumJson = cJSON_GetObjectItem(jsonPay, "epNum");
if(epNumJson == NULL) goto error;
kk_subFreshair_online_handle(search_node,devCode->valuestring,epNumJson->valueint);
_kk_subDevice_online_to_app(info,payload);
}
}
else if (strstr(msgType->valuestring, KK_THING_TOPO_BATCH_ADD_MSG) != NULL){
......@@ -1395,8 +1409,12 @@ void kk_platMsg_handle(void* data, char* chalMark){
proCode = cJSON_GetObjectItem(info, MSG_PRODUCT_CODE_STR);
if(strcmp(proCode->valuestring,"3053")&&
strcmp(proCode->valuestring,"3042")){
//如果带version,代表的是快照信息,快照信息不需要触发iftt
cJSON *version = cJSON_GetObjectItem(jsonPay, "version");
if(version == NULL){
kk_scene_iftt_check(info_dcode->valuestring,jsonPay);
}
}
free(outstr);
}
}else if(strstr(msgType->valuestring, KK_THING_TOPO_DELETE_MSG) != NULL){
......
......@@ -1151,7 +1151,76 @@ int kk_scene_parse_scene_condition(const cJSON* str,const char *sceneId)
*返 回 值: 0:成功;其他:失败
*其他说明:
*************************************************************/
static int _kk_scene_LightStripSpecialAction_handle(cJSON* propertyValue,char *deviceCode,int ep,int idelay,char *sceneId,char *fatherDeviceCode)
{
kk_scene_action_detail_t info = {0};
cJSON * Brightness = cJSON_GetObjectItem(propertyValue,"Brightness");
if(Brightness != NULL && Brightness->type==cJSON_Number){
sprintf(info.propertyValue,"%d",Brightness->valueint);
memcpy(info.propertyName,"Brightness",strlen("Brightness"));
memcpy(info.deviceCode,deviceCode,strlen(deviceCode));
info.epNum = ep;
info.delay = idelay;
kk_scene_action_add(fatherDeviceCode,sceneId,info);
}
memset(&info,0x0,sizeof(kk_scene_action_detail_t));
cJSON * RGBColor = cJSON_GetObjectItem(propertyValue,"RGBColor");
if(RGBColor != NULL && RGBColor->type==cJSON_String){//"RGBColor":"[115,114,253]"
cJSON *rgb = cJSON_CreateObject();
char *pStart = strstr(RGBColor->valuestring,"[");
char *pEnd = strstr(RGBColor->valuestring,",");
if(pStart != NULL && pEnd != NULL){
char redS[4] = {0};
memcpy(redS,pStart + 1,pEnd - pStart + 1);
cJSON_AddNumberToObject(rgb,"Red",atoi(redS));
char *pGreenEnd = strstr(pEnd+1,",");
if(pGreenEnd != NULL){
char greenS[4] = {0};
memcpy(greenS,pEnd + 1,pGreenEnd - pEnd + 1);
cJSON_AddNumberToObject(rgb,"Green",atoi(greenS));
char *pBlueEnd = strstr(pGreenEnd,"]");
if(pBlueEnd != NULL){
char blueS[4] = {0};
memcpy(blueS,pGreenEnd + 1,pBlueEnd - pGreenEnd + 1);
cJSON_AddNumberToObject(rgb,"Blue",atoi(blueS));
}
}
}
char *str = cJSON_PrintUnformatted(rgb);
memcpy(info.propertyValue,str,strlen(str));
memcpy(info.propertyName,"RGBColor",strlen("RGBColor"));
memcpy(info.deviceCode,deviceCode,strlen(deviceCode));
info.epNum = ep;
info.delay = idelay;
kk_scene_action_add(fatherDeviceCode,sceneId,info);
free(str);
cJSON_Delete(rgb);
}else if(RGBColor != NULL && RGBColor->type==cJSON_Array){
cJSON *rgb = cJSON_CreateObject();
cJSON *red = cJSON_GetArrayItem(RGBColor,0);
if(red != NULL){
cJSON_AddNumberToObject(rgb,"Red",red->valueint);
}
cJSON *green = cJSON_GetArrayItem(RGBColor,1);
if(green != NULL){
cJSON_AddNumberToObject(rgb,"Green",green->valueint);
}
cJSON *blue = cJSON_GetArrayItem(RGBColor,2);
if(blue != NULL){
cJSON_AddNumberToObject(rgb,"Blue",blue->valueint);
}
char *str = cJSON_PrintUnformatted(rgb);
memcpy(info.propertyValue,str,strlen(str));
memcpy(info.propertyName,"RGBColor",strlen("RGBColor"));
memcpy(info.deviceCode,deviceCode,strlen(deviceCode));
info.epNum = ep;
info.delay = idelay;
kk_scene_action_add(fatherDeviceCode,sceneId,info);
free(str);
cJSON_Delete(rgb);
}
return SUCCESS_RETURN;
}
int kk_scene_parse_scene_action(const cJSON* str,const char *sceneId,int isUpdate)
{
int res = 0;
......@@ -1188,6 +1257,7 @@ int kk_scene_parse_scene_action(const cJSON* str,const char *sceneId,int isUpdat
item = action->child;
while(item != NULL){
printf("+++\r\n");
ArmingStateFlag = 0;
type = cJSON_GetObjectItem(item,MSG_SCENE_TYPE);
if(type == NULL){
memcpy(typeStr,"action/thing/setProperty",strlen("action/thing/setProperty"));
......@@ -1239,26 +1309,6 @@ int kk_scene_parse_scene_action(const cJSON* str,const char *sceneId,int isUpdat
}
else{
memset(propertyValueStr,0x0,sizeof(propertyValueStr));
if(propertyValue->type==cJSON_Number){
snprintf(propertyValueStr,sizeof(propertyValueStr),"%d",propertyValue->valueint);
}else if(propertyValue->type==cJSON_Object){
if(strcmp(propertyName->valuestring,"LightStripSpecialAction") == 0){
cJSON * Brightness = cJSON_GetObjectItem(propertyValue,"Brightness");
if(Brightness != NULL && Brightness->type==cJSON_Number){
snprintf(propertyValueStr,sizeof(propertyValueStr),"%d",Brightness->valueint);
}
}else{
char *str = cJSON_PrintUnformatted(propertyValue);
snprintf(propertyValueStr,sizeof(propertyValueStr),"%s",str);
free(str);
}
}else if(propertyValue->type==cJSON_String){
memcpy(propertyValueStr,propertyValue->valuestring,strlen(propertyValue->valuestring));
}
if(strcmp(propertyName->valuestring,"ArmingState") == 0){
ArmingStateFlag = 1;
}
deviceCode = cJSON_GetObjectItem(item,MSG_DEVICE_CODE_STR);
if(deviceCode == NULL) return FAIL_RETURN;
epNum = cJSON_GetObjectItem(item,MSG_SCENE_EPNUM);
......@@ -1274,11 +1324,26 @@ int kk_scene_parse_scene_action(const cJSON* str,const char *sceneId,int isUpdat
delay = cJSON_GetObjectItem(item,MSG_SCENE_DELAY);
if(delay == NULL) return FAIL_RETURN;
int idelay = delay->valueint;
res = dm_mgr_get_device_by_devicecode(deviceCode->valuestring,&node);
if (res != SUCCESS_RETURN) {
item = item->next;
continue;
}
memset(propertyValueStr,0x0,sizeof(propertyValueStr));
if(propertyValue->type==cJSON_Number){
snprintf(propertyValueStr,sizeof(propertyValueStr),"%d",propertyValue->valueint);
}else if(propertyValue->type==cJSON_Object){
if(strcmp(propertyName->valuestring,"LightStripSpecialAction") == 0){
_kk_scene_LightStripSpecialAction_handle(propertyValue,deviceCode->valuestring,iepnum,idelay,(char*)sceneId,node->fatherDeviceCode);
}
char *str = cJSON_PrintUnformatted(propertyValue);
snprintf(propertyValueStr,sizeof(propertyValueStr),"%s",str);
free(str);
}else if(propertyValue->type==cJSON_String){
memcpy(propertyValueStr,propertyValue->valuestring,strlen(propertyValue->valuestring));
}
if(strcmp(propertyName->valuestring,"ArmingState") == 0){
ArmingStateFlag = 1;
}
if(kk_subDev_check_scene_support(node->fatherDeviceCode) == 1 && ArmingStateFlag == 0){
kk_scene_action_detail_t info = {0};
......@@ -1293,19 +1358,16 @@ int kk_scene_parse_scene_action(const cJSON* str,const char *sceneId,int isUpdat
}else{
memcpy(info.propertyName,propertyName->valuestring,strlen(propertyName->valuestring));
}
}else{
if(strcmp(propertyName->valuestring,"LightStripSpecialAction") == 0){
memcpy(info.propertyName,"Brightness",strlen("Brightness"));
}else{
memcpy(info.propertyName,propertyName->valuestring,strlen(propertyName->valuestring));
}
}
memcpy(info.propertyValue,propertyValueStr,strlen(propertyValueStr));
info.epNum = iepnum;
info.delay = idelay;
if(strcmp(propertyName->valuestring,"LightStripSpecialAction") != 0){
kk_scene_action_add(node->fatherDeviceCode,sceneId,info);
}
//printf("---------------------------------DEBUG CWC[%s][%d]\n",__FUNCTION__,__LINE__);
res = kk_scene_insert_scene_action(typeStr,node->deviceCode,iepnum,
info.propertyName,propertyValueStr,idelay,sceneId,node->fatherDeviceCode);
......@@ -1324,7 +1386,7 @@ int kk_scene_parse_scene_action(const cJSON* str,const char *sceneId,int isUpdat
item = item->next;
}
//场景设置布防不需要下发到网关
if(propertySetType && ArmingStateFlag == 0){
if(propertySetType){
kk_scene_action_info_send(isUpdate);
}
return SUCCESS_RETURN;
......
{
"productCode":"3093",
"operateType":"511",
"operateType":"506",
"channel":3,
"syn_type":1,
"syn_opcode":"DIMMABLE_LIGHT_STATUS",
......
{
"productCode":"3094",
"operateType":"501",
"channel":1,
"productCode":"3092",
"operateType":"512",
"channel":2,
"syn_type":1,
"syn_opcode":"DIMMABLE_LIGHT_STATUS",
"newccu":[
......@@ -19,6 +19,34 @@
"channel":"1",
"valueRange":[],
"value": 0
},{
"identifier":"ColorTemperature",
"opcodemap":"ADJUST_COLOUR_TEMPERATURE",
"dataType":"int",
"channel":"1",
"valueRange":[],
"value": 0
},{
"identifier":"PowerSwitch",
"opcodemap":"SWITCH",
"dataType":"int",
"channel":"2",
"valueRange":[0,1],
"value": 0
},{
"identifier":"Brightness",
"opcodemap":"ADJUST_LUMINANCE",
"dataType":"int",
"channel":"2",
"valueRange":[],
"value": 0
},{
"identifier":"ColorTemperature",
"opcodemap":"ADJUST_COLOUR_TEMPERATURE",
"dataType":"int",
"channel":"2",
"valueRange":[],
"value": 0
}
],
"oldccu":[
......@@ -38,6 +66,38 @@
"valueRange":[],
"syn":"bri",
"synType":"int"
},{
"opcode":"ADJUST_COLOUR_TEMPERATURE",
"identifiermap":"ColorTemperature",
"dataType":"int",
"channel":"1",
"valueRange":[],
"syn":"colour_temperature",
"synType":"int"
},{
"opcode":"SWITCH",
"identifiermap":"PowerSwitch",
"dataType":"map",
"channel":"2",
"valueRange":["OFF","ON"],
"syn":"on",
"synType":"bool"
},{
"opcode":"ADJUST_LUMINANCE",
"identifiermap":"Brightness",
"dataType":"int",
"channel":"2",
"valueRange":[],
"syn":"bri",
"synType":"int"
},{
"opcode":"ADJUST_COLOUR_TEMPERATURE",
"identifiermap":"ColorTemperature",
"dataType":"int",
"channel":"2",
"valueRange":[],
"syn":"colour_temperature",
"synType":"int"
}
]
......
{
"productCode":"3102",
"operateType":"502",
"operateType":"506",
"channel":1,
"syn_type":1,
"syn_opcode":"DIMMABLE_LIGHT_STATUS",
......
{
"productCode":"3137",
"operateType":"514",
"channel":1,
"syn_type":1,
"syn_opcode":"DIMMABLE_LIGHT_STATUS",
"newccu":[
{
"identifier":"PowerSwitch",
"opcodemap":"SWITCH",
"dataType":"int",
"channel":"1",
"valueRange":[0,1],
"value": 0
},{
"identifier":"Brightness",
"opcodemap":"ADJUST_LUMINANCE",
"dataType":"int",
"channel":"1",
"valueRange":[],
"value": 0
},{
"identifier":"ColorTemperature",
"opcodemap":"ADJUST_COLOUR_TEMPERATURE",
"dataType":"int",
"channel":"1",
"valueRange":[],
"value": 0
}
],
"oldccu":[
{
"opcode":"SWITCH",
"identifiermap":"PowerSwitch",
"dataType":"map",
"channel":"1",
"valueRange":["OFF","ON"],
"syn":"on",
"synType":"bool"
},{
"opcode":"ADJUST_LUMINANCE",
"identifiermap":"Brightness",
"dataType":"int",
"channel":"1",
"valueRange":[],
"syn":"bri",
"synType":"int"
},{
"opcode":"ADJUST_COLOUR_TEMPERATURE",
"identifiermap":"ColorTemperature",
"dataType":"int",
"channel":"1",
"valueRange":[],
"syn":"colour_temperature",
"synType":"int"
}
]
}
\ No newline at end of file
......@@ -11,6 +11,17 @@
"services": [
{
"outputData": [
{
"identifier": "SosState",
"name": "紧急按钮告警状态",
"dataType": {
"type": "enum",
"specs": {
"0": "没有报警",
"1": "报警"
}
}
},
{
"identifier": "Battery",
"name": "电池电量",
......@@ -38,11 +49,24 @@
}
],
"properties": [
{
"identifier": "SosState",
"name": "紧急按钮告警状态",
"accessMode": "r",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "没有报警",
"1": "报警"
}
}
},
{
"identifier": "Battery",
"name": "电池电量",
"accessMode": "r",
"required": true,
"required": false,
"dataType": {
"type": "double",
"specs": {
......@@ -53,6 +77,21 @@
"step": "0.01"
}
}
},
{
"identifier": "SensorType",
"name": "安防等级",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "在家安防",
"1": "室外安防",
"2": "24小时警戒",
"3": "无警戒"
}
}
}
],
"events": [
......@@ -81,7 +120,21 @@
"desc": "属性上报"
},
{
"outputData": [],
"outputData": [
{
"identifier": "SosState",
"name": "紧急按钮告警状态",
"accessMode": "r",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "没有报警",
"1": "报警"
}
}
}
],
"identifier": "sosAlarm",
"method": "thing.event.sosAlarm.post",
"name": "sosAlarm",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_3119.json",
"productType": "sensor",
"version": "1.2",
"schema": "https://iot-ap.ikonke.com/model/product_3019.json",
"productType": "outlet",
"version": "1.0",
"profile": {
"heartbeat": "300",
"productCode": "3119",
"productName": "拓清系列.白色空气质量检测仪HTPC(KONKE)"
"productCode": "3019",
"productName": "铂金系列.10A智能插座Z3S(KONKE)"
},
"services": [
{
"outputData": [
"outputData": [],
"identifier": "set",
"inputData": [
{
"identifier": "Temperature",
"name": "当前温度",
"identifier": "PowerSwitch",
"dataType": {
"type": "double",
"specs": {
"min": "-10",
"max": "60",
"unit": "°C",
"unitName": "摄氏度",
"step": "0.01"
}
}
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关"
},
{
"identifier": "Humidity",
"name": "当前湿度",
"identifier": "Electric",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"unit": "KWh",
"unitName": "千瓦时",
"step": "0.01"
}
}
},
"name": "累计电量值"
},
{
"identifier": "CO2",
"name": "CO2检测值",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "5000",
"unit": "ppm",
"unitName": "百万分之一",
"step": "1"
}
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
},
{
"identifier": "PM2.5",
"name": "PM2.5检测值",
"outputData": [
{
"identifier": "PowerSwitch",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
}
}
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关"
},
{
"identifier": "HCHO",
"name": "甲醛检测值",
"identifier": "Power",
"dataType": {
"type": "int",
"type": "double",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
}
"unit": "W",
"unitName": "瓦特",
"step": "0.01"
}
},
"name": "设备功率值"
},
{
"identifier": "TVOC",
"name": "TVOC检测值",
"identifier": "Electric",
"dataType": {
"type": "int",
"type": "double",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
}
"unit": "KWh",
"unitName": "千瓦时",
"step": "0.01"
}
},
"name": "累计电量值"
},
{
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier": "get",
"inputData": [
"Temperature",
"Humidity",
"CO2",
"PM2.5",
"HCHO",
"TVOC"
"PowerSwitch",
"Power",
"Electric",
"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": "Temperature",
"name": "当前温度",
"accessMode": "r",
"required": false,
"identifier": "PowerSwitch",
"dataType": {
"type": "double",
"specs": {
"min": "-40",
"max": "100",
"unit": "°C",
"unitName": "摄氏度",
"step": "0.01"
}
}
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关",
"accessMode": "rw",
"required": true
},
{
"identifier": "Humidity",
"name": "当前湿度",
"accessMode": "r",
"required": false,
"identifier": "Power",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"unit": "W",
"unitName": "瓦特",
"step": "0.01"
}
}
},
{
"identifier": "CO2",
"name": "CO2检测值",
"name": "设备功率值",
"accessMode": "r",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "5000",
"unit": "ppm",
"unitName": "百万分之一",
"step": "1"
}
}
"required": true
},
{
"identifier": "PM2.5",
"name": "PM2.5检测值",
"accessMode": "r",
"required": false,
"identifier": "Electric",
"dataType": {
"type": "int",
"type": "double",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
}
"unit": "KWh",
"unitName": "千瓦时",
"step": "0.01"
}
},
{
"identifier": "HCHO",
"name": "甲醛检测值",
"accessMode": "r",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
}
}
"name": "累计电量值",
"accessMode": "rw",
"required": true
},
{
"identifier": "TVOC",
"name": "TVOC检测值",
"accessMode": "r",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
}
}
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"勿扰模式开关",
"accessMode": "rw",
"required": true
}
],
"events": [
{
"outputData": [
{
"identifier": "Temperature",
"name": "当前温度",
"identifier": "PowerSwitch",
"dataType": {
"type": "double",
"specs": {
"min": "-40",
"max": "100",
"unit": "°C",
"unitName": "摄氏度",
"step": "0.01"
}
}
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关"
},
{
"identifier": "Humidity",
"name": "当前湿度",
"identifier": "Electric",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
},
{
"identifier": "CO2",
"name": "CO2检测值",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "5000",
"unit": "ppm",
"unitName": "百万分之一",
"step": "1"
}
}
"name": "累计电量值"
},
{
"identifier": "PM2.5",
"name": "PM2.5检测值",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
}
}
"identifier":"NoDisturbMode",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
{
"identifier": "HCHO",
"name": "甲醛检测值",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "mg/m3",
"unitName": "微克每立方米",
"step": "1"
}
"type":"bool"
},
"name":"勿扰模式开关"
}
],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
},
{
"identifier": "TVOC",
"name": "TVOC检测值",
"outputData": [
{
"identifier": "Power",
"name": "过载功率值",
"dataType": {
"type": "int",
"type": "double",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
"unit": "W",
"unitName": "瓦特",
"step": "0.01"
}
}
}
],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"identifier": "OverloadAlarm",
"method": "thing.event.OverloadAlarm.post",
"name": "OverloadAlarm",
"type": "alarm",
"required": true,
"desc": "属性上报"
"desc": "过载告警"
}
]
}
......@@ -3,7 +3,7 @@
"productType": "airConditioning",
"version": "1.3",
"profile": {
"heartbeat": "3000",
"heartbeat": "300",
"productCode": "3035",
"productName": "肖邦系列.大金中央空调线控器Z3KA(KONKE)"
},
......
{
"schema": "https://iot-ap.ikonke.com/model/product_3066.json",
"productType": "lock",
"productType": "Doorlock",
"version": "1.1",
"profile": {
"heartbeat": "3000",
"heartbeat": "1200",
"productCode": "3066",
"productName": "凯迪仕门锁",
"productName": "御驰智能门锁Z3S",
"sleepTime": "30000"
},
"services": [{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [{
"identifier": "Volume",
"name": "门锁音量",
"services": [
{
"outputData": [
{
"identifier": "UserList",
"name": "用户列表",
"dataType": {
"type": "enum",
"type": "array",
"specs": {
"0": "静音",
"1": "低音",
"2": "中音",
"3": "高音"
}
"item":{
"type":"struct",
"specs": [
{
"identifier": "KeyID",
"name": "用户ID",
"dataType": {
"type": "text",
"length": "10"
}
}, {
"identifier": "Language",
"name": "门锁语言",
},
{
"identifier": "KeyRole",
"name": "用户类型",
"dataType": {
"type": "enum",
"specs": {
"0": "中文",
"1": "英文"
"1":"管理员",
"2":"普通用户",
"3":"临时用户"
}
}
}],
"outputData": []
}, {
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": ["LockState", "BackLockState", "Battery", "Volume", "Language"],
"outputData": [{
"identifier": "LockState",
"name": "门锁状态",
},
{
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "打开"
"1":"指纹",
"2":"密码",
"3":"刷卡",
"4":"APP远程开锁",
"5":"机械钥匙",
"6":"蓝牙",
"7":"劫持报警",
"8":"限时临时密码"
}
}
}, {
"identifier": "BackLockState",
"name": "门锁状态",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "打开"
}
]
},
"size":"512"
}
}
}, {
},
{
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "int",
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
"step": "0.01"
}
}
}, {
"identifier": "Volume",
"name": "门锁音量",
"dataType": {
"type": "enum",
"specs": {
"0": "静音",
"1": "低音",
"2": "中音",
"3": "高音"
}
}
}, {
"identifier": "Language",
"name": "门锁语言",
"dataType": {
"type": "enum",
"specs": {
"0": "中文",
"1": "英文"
}
}
}]
}, {
"identifier": "openLock",
"name": "远程开锁",
"required": false,
"callType": "async",
"method": "thing.service.openLock",
"inputData": [{
"identifier": "Password",
"name": "密码",
"dataType": {
"type": "text",
"specs": {
"length": "126"
}
}
}],
"outputData": []
}, {
"identifier": "getKeyList",
"name": "获取钥匙列表",
"required": true,
"callType": "async",
"method": "thing.service.getKeyList",
"inputData": [{
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"0": "全部",
"1": "指纹",
"2": "密码",
"3": "卡",
"4": "机械钥匙"
}
}
}],
"outputData": []
}, {
"identifier": "addKey",
"name": "添加钥匙",
],
"identifier": "get",
"inputData": [
"UserList",
"Battery"
],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"method": "thing.service.AddKey",
"inputData": [{
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"1": "密码",
"2": "指纹",
"3": "卡",
"4": "机械钥匙"
}
}
}, {
"identifier": "KeyRole",
"name": "用户权限",
"dataType": {
"type": "enum",
"specs": {
"1": "普通用户",
"2": "管理员",
"3": "劫持用户"
}
}
}, {
"identifier": "IsValid",
"name": "是否有效",
"dataType": {
"type": "bool",
"specs": {
"0": "无效",
"1": "有效"
}
}
}, {
"identifier": "KeyName",
"name": "钥匙昵称",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "KeyEffectiveTime",
"name": "生效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
"desc": "属性获取"
}
}
}, {
"identifier": "KeyExpiryTime",
"name": "失效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
}
}
},{
"identifier": "Password",
"name": "密码",
],
"properties": [
{
"identifier": "UserList",
"name": "用户列表",
"accessMode": "r",
"required": true,
"dataType": {
"type": "text",
"type": "array",
"specs": {
"length": "126"
}
}
}],
"outputData": []
}, {
"identifier": "ModifyKey",
"name": "配置钥匙权限",
"required": false,
"callType": "async",
"method": "thing.service.ModifyKey",
"inputData": [{
"item":{
"type":"struct",
"specs": [
{
"identifier": "KeyID",
"name": "钥匙ID",
"name": "用户ID",
"dataType": {
"type": "text",
"specs": {
"length": "10"
}
}
}, {
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"1": "指纹",
"2": "密码",
"3": "卡",
"4": "机械钥匙"
}
"length" : "10"
}
}, {
},
{
"identifier": "KeyRole",
"name": "用户权限",
"name": "用户类型",
"dataType": {
"type": "enum",
"specs": {
"1": "普通用户",
"2": "管理员",
"3": "劫持用户"
"1":"管理员",
"2":"普通用户",
"3":"临时用户"
}
}
}, {
"identifier": "IsValid",
"name": "是否有效",
"dataType": {
"type": "bool",
"specs": {
"0": "无效",
"1": "有效"
}
}
}, {
"identifier": "KeyName",
"name": "钥匙昵称",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "KeyEffectiveTime",
"name": "生效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
}
}
}, {
"identifier": "KeyExpiryTime",
"name": "失效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
}
}
}],
"outputData": []
}, {
"identifier": "DeleteKey",
"name": "删除钥匙",
"required": true,
"callType": "async",
"method": "thing.service.DeleteKey",
"inputData": [{
"identifier": "KeyID",
"name": "钥匙ID",
"dataType": {
"type": "text",
"specs": {
"length": "10"
}
}
}, {
},
{
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"1": "指纹",
"2": "密码",
"3": "卡",
"4": "机械钥匙"
}
}
}, {
"identifier": "KeyRole",
"name": "用户权限",
"dataType": {
"type": "enum",
"specs": {
"1": "普通用户",
"2": "管理员",
"3": "劫持用户"
}
"1":"指纹",
"2":"密码",
"3":"刷卡",
"4":"APP远程开锁",
"5":"机械钥匙",
"6":"蓝牙",
"7":"劫持报警",
"8":"限时临时密码"
}
}],
"outputData": []
}],
"properties": [{
"identifier": "LockState",
"name": "门锁状态",
"accessMode": "r",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "打开"
}
}
}, {
"identifier": "BackLockState",
"name": "门反锁状态",
"accessMode": "r",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "打开"
]
},
"size":"512"
}
}
}, {
},
{
"identifier": "Battery",
"name": "电池电量",
"accessMode": "r",
"required": false,
"dataType": {
"type": "int",
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
}
}, {
"identifier": "Volume",
"name": "门锁音量",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "静音",
"1": "低音",
"2": "中音",
"3": "高音"
"step": "0.01"
}
}
}, {
"identifier": "Language",
"name": "门锁语言",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "中文",
"1": "英文"
}
}
}, {
"identifier": "LockKeys",
"name": "门锁钥匙",
"accessMode": "rw",
"desc": "门锁钥匙。",
"required": false,
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "KeyID",
"name": "钥匙ID",
"dataType": {
"type": "text",
"specs": {
"length": "10"
}
}
}, {
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"1": "指纹",
"2": "密码",
"3": "卡",
"4": "机械钥匙"
}
}
}, {
"identifier": "KeyRole",
"name": "用户权限",
"dataType": {
"type": "enum",
"specs": {
"1": "普通用户",
"2": "管理员",
"3": "劫持用户"
}
}
}, {
"identifier": "IsValid",
"name": "是否有效",
"dataType": {
"type": "enum",
"specs": {
"0": "无效",
"1": "有效"
}
}
}, {
"identifier": "KeyName",
"name": "钥匙昵称",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "KeyEffectiveTime",
"name": "生效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
}
}
}, {
"identifier": "KeyExpiryTime",
"name": "失效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
}
}
}]
}
}
}
}],
"events": [{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": [{
"identifier": "LockState",
"name": "门锁状态",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "打开"
}
}
}, {
],
"events": [
{
"outputData": [
{
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "int",
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
"step": "0.01"
}
}
}, {
"identifier": "Volume",
"name": "门锁音量",
"dataType": {
"type": "enum",
"specs": {
"0": "静音",
"1": "低音",
"2": "中音",
"3": "高音"
}
}
}, {
"identifier": "Language",
"name": "门锁语言",
"dataType": {
"type": "enum",
"specs": {
"0": "中文",
"1": "英文"
}
}
}]
}, {
"identifier": "LockOpenNotification",
"name": "开门通知",
],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"method": "thing.event.LockOpenNotification.post",
"outputData": [{
"desc": "属性上报"
},
{
"outputData": [
{
"identifier": "KeyID",
"name": "钥匙ID",
"name": "用户ID",
"dataType": {
"type": "text",
"specs": {
"length": "10"
}
}
}, {
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"1": "指纹",
"2": "密码",
"3": "卡",
"4": "机械钥匙"
"length" : "10"
}
}
}, {
},
{
"identifier": "KeyRole",
"name": "用户权限",
"name": "用户类型",
"dataType": {
"type": "enum",
"specs": {
"1": "普通用户",
"2": "管理员",
"3": "劫持用户"
}
}
}]
}, {
"identifier": "LockNotification",
"name": "上锁通知",
"type": "info",
"required": true,
"method": "thing.event.LockNotification.post",
"outputData": []
}, {
"identifier": "BackLockNotification",
"name": "反锁通知",
"type": "info",
"required": true,
"method": "thing.event.BackLockNotification.post",
"outputData": []
}, {
"identifier": "BackLockOpenNotification",
"name": "反锁解除通知",
"type": "info",
"required": true,
"method": "thing.event.BackLockOpenNotification.post",
"outputData": []
}, {
"identifier": "KeyInformationNotification",
"name": "钥匙信息上报",
"type": "info",
"required": true,
"method": "thing.event.KeyInformationNotification.post",
"outputData": [{
"identifier": "LockKeys",
"name": "门锁钥匙",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "KeyID",
"name": "钥匙ID",
"dataType": {
"type": "text",
"specs": {
"length": "10"
"1":"管理员",
"2":"普通用户",
"3":"临时用户"
}
}
}, {
},
{
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"1": "指纹",
"2": "密码",
"3": "卡",
"4": "机械钥匙"
"1":"指纹",
"2":"密码",
"3":"刷卡",
"4":"APP远程开锁",
"5":"机械钥匙",
"6":"蓝牙",
"7":"劫持报警",
"8":"限时临时密码"
}
}
}, {
"identifier": "KeyRole",
"name": "用户权限",
"dataType": {
"type": "enum",
"specs": {
"1": "普通用户",
"2": "管理员",
"3": "劫持用户"
}
}
}, {
"identifier": "IsValid",
"name": "是否有效",
"dataType": {
"type": "bool",
"specs": {
"0": "无效",
"1": "有效"
}
}
}, {
"identifier": "KeyName",
"name": "钥匙昵称",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "KeyEffectiveTime",
"name": "生效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
}
}
}, {
"identifier": "KeyExpiryTime",
"name": "失效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
}
}
}]
}
}
}
}]
}, {
"identifier": "KeyAddNotification",
"name": "添加钥匙通知",
],
"identifier": "LockOpenNotification",
"method": "thing.event.LockOpenNotification.post",
"name": "LockOpenNotification",
"type": "info",
"required": true,
"method": "thing.event.KeyAddNotification.post",
"outputData": [{
"desc": "开门上报"
},
{
"outputData": [
{
"identifier": "KeyID",
"name": "钥匙ID",
"name": "用户ID",
"dataType": {
"type": "text",
"specs": {
"length": "10"
}
}
}, {
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"1": "指纹",
"2": "密码",
"3": "卡",
"4": "机械钥匙"
}
"length" : "10"
}
}, {
},
{
"identifier": "KeyRole",
"name": "用户权限",
"name": "用户类型",
"dataType": {
"type": "enum",
"specs": {
"1": "普通用户",
"2": "管理员",
"3": "劫持用户"
}
}
}, {
"identifier": "IsValid",
"name": "是否有效",
"dataType": {
"type": "bool",
"specs": {
"0": "无效",
"1": "有效"
}
}
}, {
"identifier": "KeyName",
"name": "钥匙昵称",
"dataType": {
"type": "text",
"specs": {
"length": "255"
"1":"管理员",
"2":"普通用户",
"3":"临时用户"
}
}
}, {
"identifier": "KeyEffectiveTime",
"name": "生效时间",
},
{
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "int",
"type": "enum",
"specs": {
"min": "1577808001",
"max": "32472115201"
"1":"指纹",
"2":"密码",
"3":"刷卡",
"4":"APP远程开锁",
"5":"机械钥匙",
"6":"蓝牙",
"7":"劫持报警",
"8":"限时临时密码"
}
}
}, {
"identifier": "KeyExpiryTime",
"name": "失效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
}
}
}]
}, {
"identifier": "KeyModifyNotification",
"name": "修改钥匙通知",
],
"identifier": "KeyAddNotification",
"method": "thing.event.KeyAddNotification.post",
"name": "KeyAddNotification",
"type": "info",
"required": true,
"method": "thing.event.KeyModifyNotification.post",
"outputData": [{
"desc": "添加用户上报"
},
{
"outputData": [
{
"identifier": "KeyID",
"name": "钥匙ID",
"name": "用户ID",
"dataType": {
"type": "text",
"specs": {
"length": "10"
"length" : "10"
}
}
}, {
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"1": "指纹",
"2": "密码",
"3": "卡",
"4": "机械钥匙"
}
}
}, {
},
{
"identifier": "KeyRole",
"name": "用户权限",
"name": "用户类型",
"dataType": {
"type": "enum",
"specs": {
"1": "普通用户",
"2": "管理员",
"3": "劫持用户"
}
}
}, {
"identifier": "IsValid",
"name": "是否有效",
"dataType": {
"type": "bool",
"specs": {
"0": "无效",
"1": "有效"
}
}
}, {
"identifier": "KeyName",
"name": "钥匙昵称",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "KeyEffectiveTime",
"name": "生效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
}
}
}, {
"identifier": "KeyExpiryTime",
"name": "失效时间",
"dataType": {
"type": "int",
"specs": {
"min": "1577808001",
"max": "32472115201"
}
}
}]
}, {
"identifier": "KeyDeletedNotification",
"name": "删除钥匙通知",
"type": "info",
"required": true,
"method": "thing.event.KeyDeletedNotification.post",
"outputData": [{
"identifier": "KeyID",
"name": "钥匙ID",
"dataType": {
"type": "text",
"specs": {
"length": "10"
"1":"管理员",
"2":"普通用户",
"3":"临时用户"
}
}
}, {
},
{
"identifier": "KeyType",
"name": "开锁方式",
"dataType": {
"type": "enum",
"specs": {
"1": "指纹",
"2": "密码",
"3": "卡",
"4": "机械钥匙"
}
"1":"指纹",
"2":"密码",
"3":"刷卡",
"4":"APP远程开锁",
"5":"机械钥匙",
"6":"蓝牙",
"7":"劫持报警",
"8":"限时临时密码"
}
}, {
"identifier": "KeyRole",
"name": "用户权限",
"dataType": {
"type": "enum",
"specs": {
"1": "普通用户",
"2": "管理员",
"3": "劫持用户"
}
}
}]
}, {
"identifier": "UnlockedAlarm",
"name": "门未锁好报警",
"type": "alert",
"required": true,
"method": "thing.event.UnlockedAlarm.post",
"outputData": []
},{
"identifier": "MultipleOpenLockFailedAlarm",
"name": "多次开锁失败",
"type": "alert",
"required": true,
"method": "thing.event.MultipleOpenLockFailedAlarm.post",
"outputData": []
}, {
"identifier": "HijackingAlarm",
"name": "劫持报警",
"type": "alert",
],
"identifier": "KeyDeletedNotification",
"method": "thing.event.KeyDeletedNotification.post",
"name": "KeyDeletedNotification",
"type": "info",
"required": true,
"method": "thing.event.HijackingAlarm.post",
"outputData": [{
"identifier": "KeyID",
"name": "钥匙ID",
"dataType": {
"type": "text",
"specs": {
"length": "10"
}
}
}, {
"identifier": "KeyType",
"name": "开锁方式",
"desc": "删除用户上报"
},
{
"outputData": [
{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"1": "指纹",
"2": "密码",
"3": "卡",
"4": "机械钥匙"
"0": "正常",
"1": "被拆卸"
}
}
}]
}, {
"identifier": "BatteryAlarm",
"name": "低电量报警",
}
],
"identifier": "TamperAlarm",
"method": "thing.event.TamperAlarm.post",
"name": "TamperAlarm",
"type": "alert",
"required": true,
"method": "thing.event.BatteryAlarm.post",
"outputData": [{
"desc": "防拆告警"
},
{
"outputData": [
{
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "int",
"type": "double",
"specs": {
"min": "0",
"max": "100",
"min": "0.0",
"max": "100.0",
"unit": "%",
"unitName": "百分比",
"step": "1"
"step": "0.01"
}
}
}]
}, {
"identifier": "TamperAlarm",
"name": "防撬报警",
}
],
"identifier": "BatteryAlarm",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
}, {
"identifier": "Error",
"name": "故障上报",
"type": "error",
"required": true,
"method": "thing.event.Error.post",
"outputData": [{
"identifier": "ErrorCode",
"name": "故障代码",
"dataType": {
"type": "enum",
"specs": {
"0": "正常"
}
"desc": "低电量告警"
}
}]
}]
]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_3093.json",
"productType": "lightPanel",
"version": "1.2",
"version": "1.3",
"profile": {
"heartbeat": "300",
"productCode": "3093",
......@@ -87,48 +87,6 @@
},
"name": "亮度"
},
{
"identifier": "ColorTemperature_1",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "ColorTemperature_2",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "ColorTemperature_3",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "FadeTime_1",
"dataType": {
......@@ -339,48 +297,6 @@
},
"name": "亮度"
},
{
"identifier": "ColorTemperature_1",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "ColorTemperature_2",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "ColorTemperature_3",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "FadeTime_1",
"dataType": {
......@@ -512,19 +428,16 @@
"inputData": [
"PowerSwitch_1",
"Brightness_1",
"ColorTemperature_1",
"FadeTime_1",
"LowBrightness_1",
"HighBrightness_1",
"PowerSwitch_2",
"Brightness_2",
"ColorTemperature_2",
"FadeTime_2",
"LowBrightness_2",
"HighBrightness_2",
"PowerSwitch_3",
"Brightness_3",
"ColorTemperature_3",
"FadeTime_3",
"LowBrightness_3",
"HighBrightness_3"
......@@ -626,48 +539,6 @@
},
"name": "亮度"
},
{
"identifier": "ColorTemperature_1",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "ColorTemperature_2",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "ColorTemperature_3",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "FadeTime_1",
"dataType": {
......@@ -885,54 +756,6 @@
},
"name": "亮度"
},
{
"identifier": "ColorTemperature_1",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "ColorTemperature_2",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "ColorTemperature_3",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "FadeTime_1",
"accessMode": "rw",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_3095.json",
"productType": "airConditioning",
"version": "1.0",
"version": "1.2",
"profile": {
"heartbeat": "3000",
"heartbeat": "300",
"productCode": "3095",
"productName": "海顿系列.空调多合一面板(KONKE)"
},
......@@ -85,34 +85,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -191,6 +188,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"name": "地暖延时关机时间",
......@@ -260,6 +268,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......@@ -347,6 +366,7 @@
"CurrentTemperature_2",
"Temperature_2",
"TimingOffTime_2",
"TimingOffEnable_2",
"PowerSwitch_2",
"ChildLockState_2",
"Screensaver_2",
......@@ -354,6 +374,7 @@
"PowerSwitch_3",
"CurrentTemperature_3",
"TimingOffTime_3",
"TimingOffEnable_3",
"WindSpeed_3",
"StrainerAlarmTime_3",
"ChildLockState_3",
......@@ -430,34 +451,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -546,6 +564,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "Screensaver_2",
"name": "屏保时间",
......@@ -605,6 +634,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......@@ -754,38 +794,35 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"accessMode": "rw",
"required": true,
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"identifier": "TimingOffTime_1",
"accessMode": "rw",
"required": true,
"name": "空调延时关机使能",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -876,6 +913,19 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"accessMode": "rw",
......@@ -957,6 +1007,19 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"accessMode": "rw",
......@@ -1110,34 +1173,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -1216,6 +1276,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"name": "地暖延时关机时间",
......@@ -1285,6 +1356,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_3097.json",
"productType": "floorHeating",
"version": "1.0",
"version": "1.2",
"profile": {
"heartbeat": "300",
"productCode": "3097",
......@@ -85,34 +85,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -191,6 +188,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"name": "地暖延时关机时间",
......@@ -260,6 +268,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......@@ -347,6 +366,7 @@
"CurrentTemperature_2",
"Temperature_2",
"TimingOffTime_2",
"TimingOffEnable_2",
"PowerSwitch_2",
"ChildLockState_2",
"Screensaver_2",
......@@ -354,6 +374,7 @@
"PowerSwitch_3",
"CurrentTemperature_3",
"TimingOffTime_3",
"TimingOffEnable_3",
"WindSpeed_3",
"StrainerAlarmTime_3",
"ChildLockState_3",
......@@ -430,34 +451,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -546,6 +564,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "Screensaver_2",
"name": "屏保时间",
......@@ -605,6 +634,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......@@ -754,38 +794,35 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"accessMode": "rw",
"required": true,
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"identifier": "TimingOffTime_1",
"accessMode": "rw",
"required": true,
"name": "空调延时关机使能",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -876,6 +913,19 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"accessMode": "rw",
......@@ -957,6 +1007,19 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"accessMode": "rw",
......@@ -1110,34 +1173,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -1216,6 +1276,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"name": "地暖延时关机时间",
......@@ -1285,6 +1356,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_3098.json",
"productType": "airConditioning",
"version": "1.0",
"productType": "fancoil",
"version": "1.2",
"profile": {
"heartbeat": "300",
"productCode": "3098",
......@@ -85,34 +85,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -191,6 +188,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"name": "地暖延时关机时间",
......@@ -260,6 +268,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......@@ -347,6 +366,7 @@
"CurrentTemperature_2",
"Temperature_2",
"TimingOffTime_2",
"TimingOffEnable_2",
"PowerSwitch_2",
"ChildLockState_2",
"Screensaver_2",
......@@ -354,6 +374,7 @@
"PowerSwitch_3",
"CurrentTemperature_3",
"TimingOffTime_3",
"TimingOffEnable_3",
"WindSpeed_3",
"StrainerAlarmTime_3",
"ChildLockState_3",
......@@ -430,34 +451,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -546,6 +564,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "Screensaver_2",
"name": "屏保时间",
......@@ -605,6 +634,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......@@ -754,38 +794,35 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"accessMode": "rw",
"required": true,
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"identifier": "TimingOffTime_1",
"accessMode": "rw",
"required": true,
"name": "空调延时关机使能",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -876,6 +913,19 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"accessMode": "rw",
......@@ -957,6 +1007,19 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"accessMode": "rw",
......@@ -1110,34 +1173,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -1216,6 +1276,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"name": "地暖延时关机时间",
......@@ -1285,6 +1356,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_3099.json",
"productType": "freshAir",
"version": "1.0",
"version": "1.2",
"profile": {
"heartbeat": "300",
"productCode": "3099",
......@@ -85,34 +85,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -191,6 +188,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"name": "地暖延时关机时间",
......@@ -260,6 +268,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......@@ -347,6 +366,7 @@
"CurrentTemperature_2",
"Temperature_2",
"TimingOffTime_2",
"TimingOffEnable_2",
"PowerSwitch_2",
"ChildLockState_2",
"Screensaver_2",
......@@ -354,6 +374,7 @@
"PowerSwitch_3",
"CurrentTemperature_3",
"TimingOffTime_3",
"TimingOffEnable_3",
"WindSpeed_3",
"StrainerAlarmTime_3",
"ChildLockState_3",
......@@ -430,34 +451,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -546,6 +564,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "Screensaver_2",
"name": "屏保时间",
......@@ -605,6 +634,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......@@ -754,38 +794,35 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"accessMode": "rw",
"required": true,
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"identifier": "TimingOffTime_1",
"accessMode": "rw",
"required": true,
"name": "空调延时关机使能",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -876,6 +913,19 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"accessMode": "rw",
......@@ -957,6 +1007,19 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"accessMode":"rw",
"required":true,
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"accessMode": "rw",
......@@ -1110,34 +1173,31 @@
"dataType": {
"type": "enum",
"specs": {
"1": "自动",
"2": "档",
"0": "自动",
"2": "档",
"3": "中档",
"4": "档"
"4": "档"
}
}
},
{
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"dataType": {
"type":"text",
"type":"enum",
"specs":{
"length":"10"
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffEnable_1",
"name": "空调延时关机使能",
"identifier": "TimingOffTime_1",
"name": "空调延时关机时间",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "24",
"unit": "h",
"unitName": "小时",
"step": "0.5"
"type":"text",
"specs":{
"length":"10"
}
}
},
......@@ -1216,6 +1276,17 @@
}
}
},
{
"identifier": "TimingOffEnable_2",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_2",
"name": "地暖延时关机时间",
......@@ -1285,6 +1356,17 @@
}
}
},
{
"identifier": "TimingOffEnable_3",
"name": "空调延时关机使能",
"dataType": {
"type":"enum",
"specs":{
"0":"关闭",
"1":"开启"
}
}
},
{
"identifier": "TimingOffTime_3",
"name": "新风延时关机时间",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_3109.json",
"productType": "airswitch gateway",
"version": "1.1",
"version": "1.2",
"profile": {
"heartbeat": "300",
"productCode": "3109",
......@@ -27,6 +27,74 @@
},
"name":"电源开关"
},
{
"identifier":"PhasePowerStats",
"dataType":{
"specs":{
"item":[
{
"identifier":"Phase",
"name":"相线",
"dataType":{
"type": "enum",
"specs": {
"A":"A相",
"B":"B相",
"C":"C相"
}
}
},
{
"identifier":"Voltage",
"name":"电压",
"dataType":{
"type": "double",
"specs": {
"unit": "V",
"unitName": "伏特",
"step": "0.1"
}
}
},
{
"identifier":"Current",
"name":"电流",
"dataType":{
"specs": {
"unit": "A",
"unitName": "安培",
"step": "0.1"
}
}
},
{
"identifier":"Power",
"name":"功率",
"dataType":{
"specs": {
"unit": "W",
"unitName": "瓦",
"step": "0.1"
}
}
},
{
"identifier":"Temperature",
"name":"温度",
"dataType":{
"specs": {
"unit": "°C",
"unitName": "摄氏度",
"step": "0.1"
}
}
}
]
},
"type":"array"
},
"name":"单相属性"
},
{
"identifier": "OverloadCurrent",
"name": "最大电流设定值",
......@@ -134,6 +202,76 @@
}
}
},
{
"identifier":"PhasePowerStats",
"accessMode": "r",
"required": true,
"dataType":{
"specs":{
"item":[
{
"identifier":"Phase",
"name":"相线",
"dataType":{
"type": "enum",
"specs": {
"A":"A相",
"B":"B相",
"C":"C相"
}
}
},
{
"identifier":"Voltage",
"name":"电压",
"dataType":{
"type": "double",
"specs": {
"unit": "V",
"unitName": "伏特",
"step": "0.1"
}
}
},
{
"identifier":"Current",
"name":"电流",
"dataType":{
"specs": {
"unit": "A",
"unitName": "安培",
"step": "0.1"
}
}
},
{
"identifier":"Power",
"name":"功率",
"dataType":{
"specs": {
"unit": "W",
"unitName": "瓦",
"step": "0.1"
}
}
},
{
"identifier":"Temperature",
"name":"温度",
"dataType":{
"specs": {
"unit": "°C",
"unitName": "摄氏度",
"step": "0.1"
}
}
}
]
},
"type":"array"
},
"name":"单相属性"
},
{
"identifier":"LoadAlarmState",
"name":"负载报警状态",
......@@ -314,6 +452,74 @@
},
"name":"电源开关"
},
{
"identifier":"PhasePowerStats",
"dataType":{
"specs":{
"item":[
{
"identifier":"Phase",
"name":"相线",
"dataType":{
"type": "enum",
"specs": {
"A":"A相",
"B":"B相",
"C":"C相"
}
}
},
{
"identifier":"Voltage",
"name":"电压",
"dataType":{
"type": "double",
"specs": {
"unit": "V",
"unitName": "伏特",
"step": "0.1"
}
}
},
{
"identifier":"Current",
"name":"电流",
"dataType":{
"specs": {
"unit": "A",
"unitName": "安培",
"step": "0.1"
}
}
},
{
"identifier":"Power",
"name":"功率",
"dataType":{
"specs": {
"unit": "W",
"unitName": "瓦",
"step": "0.1"
}
}
},
{
"identifier":"Temperature",
"name":"温度",
"dataType":{
"specs": {
"unit": "°C",
"unitName": "摄氏度",
"step": "0.1"
}
}
}
]
},
"type":"array"
},
"name":"单相属性"
},
{
"identifier":"LoadAlarmState",
"name":"负载报警状态",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_3119.json",
"productType": "sensor",
"version": "1.1",
"version": "1.2",
"profile": {
"heartbeat": "300",
"productCode": "3119",
......@@ -81,7 +81,7 @@
}
},
{
"identifier": "Pollution",
"identifier": "TVOC",
"name": "TVOC检测值",
"dataType": {
"type": "int",
......@@ -102,7 +102,7 @@
"CO2",
"PM2.5",
"HCHO",
"Pollution"
"TVOC"
],
"method": "thing.service.property.get",
"name": "get",
......@@ -193,7 +193,7 @@
}
},
{
"identifier": "Pollution",
"identifier": "TVOC",
"name": "TVOC检测值",
"accessMode": "r",
"required": false,
......@@ -283,7 +283,7 @@
}
},
{
"identifier": "Pollution",
"identifier": "TVOC",
"name": "TVOC检测值",
"dataType": {
"type": "int",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_3132.json",
"productType": "sensor",
"version": "1.1",
"version": "1.2",
"profile": {
"heartbeat": "300",
"productCode": "3132",
......@@ -79,20 +79,6 @@
"step": "1"
}
}
},
{
"identifier": "Pollution",
"name": "TVOC检测值",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
}
}
}
],
"identifier": "get",
......@@ -190,22 +176,6 @@
"step": "1"
}
}
},
{
"identifier": "Pollution",
"name": "TVOC检测值",
"accessMode": "r",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
}
}
}
],
"events": [
......@@ -280,20 +250,6 @@
"step": "1"
}
}
},
{
"identifier": "Pollution",
"name": "TVOC检测值",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
}
}
}
],
"identifier": "property",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_3137.json",
"productType": "lightPanel",
"version": "1.2",
"profile": {
"heartbeat": "300",
"productCode": "3137",
"productName": "耀夜系列.智能双色温筒灯5W(KONKE)"
},
"services": [
{
"outputData": [],
"identifier": "set",
"inputData": [
{
"identifier": "PowerSwitch",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关"
},
{
"identifier": "Brightness",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "亮度"
},
{
"identifier": "ColorTemperature",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "K",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "FadeTime",
"dataType": {
"type": "int",
"specs": {
"min": "10",
"max": "50",
"unit": "1/10s",
"unitName": "1/10秒",
"step": "10"
}
},
"name": "渐变时间"
},
{
"identifier": "LowBrightness",
"dataType": {
"type": "int",
"specs": {
"min": "10",
"max": "90",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "最低亮度"
},
{
"identifier": "HighBrightness",
"dataType": {
"type": "int",
"specs": {
"min": "20",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "最高亮度"
}
],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
},
{
"outputData": [
{
"identifier": "PowerSwitch",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关"
},
{
"identifier": "Brightness",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "亮度"
},
{
"identifier": "ColorTemperature",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "K",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "FadeTime",
"dataType": {
"type": "int",
"specs": {
"min": "10",
"max": "50",
"unit": "1/10s",
"unitName": "1/10秒",
"step": "10"
}
},
"name": "渐变时间"
},
{
"identifier": "LowBrightness",
"dataType": {
"type": "int",
"specs": {
"min": "10",
"max": "90",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "最低亮度"
},
{
"identifier": "HighBrightness",
"dataType": {
"type": "int",
"specs": {
"min": "20",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "最高亮度"
}
],
"identifier": "get",
"inputData": [
"PowerSwitch",
"Brightness",
"ColorTemperature",
"FadeTime",
"LowBrightness",
"HighBrightness"
],
"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": "Brightness",
"name": "亮度",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
}
},
{
"identifier": "ColorTemperature",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "K",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "FadeTime",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "10",
"max": "50",
"unit": "1/10s",
"unitName": "1/10秒",
"step": "10"
}
},
"name": "渐变时间"
},
{
"identifier": "LowBrightness",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "10",
"max": "90",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "最低亮度"
},
{
"identifier": "HighBrightness",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "20",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "最高亮度"
}
],
"events": [
{
"outputData": [
{
"identifier": "PowerSwitch",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关"
},
{
"identifier": "Brightness",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "亮度"
},
{
"identifier": "ColorTemperature",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "100",
"unit": "K",
"unitName": "百分比",
"step": "1"
}
},
"name": "色温"
},
{
"identifier": "FadeTime",
"dataType": {
"type": "int",
"specs": {
"min": "10",
"max": "50",
"unit": "1/10s",
"unitName": "1/10秒",
"step": "10"
}
},
"name": "渐变时间"
},
{
"identifier": "LowBrightness",
"dataType": {
"type": "int",
"specs": {
"min": "10",
"max": "90",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "最低亮度"
},
{
"identifier": "HighBrightness",
"dataType": {
"type": "int",
"specs": {
"min": "20",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "1"
}
},
"name": "最高亮度"
}
],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}
]
}
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