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

Merge branch 'cwc' into 'master'

Cwc

See merge request chenweican/k-sdk!152
parents 83e2fb24 5dcf9fd9
...@@ -380,7 +380,8 @@ int kk_start_ccu_register(void) ...@@ -380,7 +380,8 @@ int kk_start_ccu_register(void)
if (h == 0) if (h == 0)
{ {
INFO_PRINT("kk_register receive nothing\n"); INFO_PRINT("kk_register receive nothing\n");
continue; close(sockfd);
return -1;
} }
if (h < 0) { if (h < 0) {
close(sockfd); close(sockfd);
......
...@@ -713,7 +713,12 @@ cJSON *kk_sync_ccu_version_to_sdk(cJSON *root,cJSON *data) ...@@ -713,7 +713,12 @@ cJSON *kk_sync_ccu_version_to_sdk(cJSON *root,cJSON *data)
{ {
//todo:同步CCU版本信息 //todo:同步CCU版本信息
cJSON *ccu_version = cJSON_CreateObject(); cJSON *ccu_version = cJSON_CreateObject();
cJSON_AddStringToObject(ccu_version, "cur_ccu_version", "1.0.0"); cJSON *version = cJSON_GetObjectItem(data,"firmwareVersion");
if(version != NULL){
cJSON_AddStringToObject(ccu_version, "cur_ccu_version", version->valuestring);
}else{
cJSON_AddStringToObject(ccu_version, "cur_ccu_version", "1.0.0");
}
cJSON_AddStringToObject(ccu_version, "downloaded_ccu_version", "1.0.0"); cJSON_AddStringToObject(ccu_version, "downloaded_ccu_version", "1.0.0");
cJSON_AddItemToObject(root, "ccu_version", ccu_version); cJSON_AddItemToObject(root, "ccu_version", ccu_version);
......
...@@ -71,7 +71,9 @@ typedef enum { ...@@ -71,7 +71,9 @@ typedef enum {
#define MSG_PROPERTY_STR "property" #define MSG_PROPERTY_STR "property"
#define MSG_PROPERTIES_STR "properties" #define MSG_PROPERTIES_STR "properties"
#define MSG_ONLINE_STATUS_STR "onlineStatus" #define MSG_ONLINE_STATUS_STR "onlineStatus"
#define MSG_AREA_ROOM_FLOORS "floors"
#define MSG_AREA_ROOM_FLOOR_ID "floorId"
#define MSG_AREA_ROOM_FLOOR_ROOMS "rooms"
/************************LOCK KEY*************************/ /************************LOCK KEY*************************/
#define MSG_KEYDELETE_NOTIFICATION_KEYID "KeyDeletedNotification.KeyID" #define MSG_KEYDELETE_NOTIFICATION_KEYID "KeyDeletedNotification.KeyID"
#define MSG_KEYDELETE_NOTIFICATION_KEYTYPE "KeyDeletedNotification.KeyType" #define MSG_KEYDELETE_NOTIFICATION_KEYTYPE "KeyDeletedNotification.KeyType"
......
...@@ -56,7 +56,9 @@ static int _kk_area_db_init(void) ...@@ -56,7 +56,9 @@ static int _kk_area_db_init(void)
idx INTEGER PRIMARY KEY, \ idx INTEGER PRIMARY KEY, \
name varchar(256), \ name varchar(256), \
roomId varchar(256), \ roomId varchar(256), \
armingstate INTEGER)"; armingstate INTEGER, \
floorId varchar(256), \
floorName varchar(256))";
if (sqlite3_exec(ctx->pDb, pAreaTable, NULL, NULL, &pcErr) != SQLITE_OK) if (sqlite3_exec(ctx->pDb, pAreaTable, NULL, NULL, &pcErr) != SQLITE_OK)
{ {
...@@ -212,13 +214,42 @@ int kk_room_add(const char *name,const char *roomId) ...@@ -212,13 +214,42 @@ int kk_room_add(const char *name,const char *roomId)
} }
} }
int kk_get_roomname_by_id(const char *roomid,char *roomname,int len)
{
int isExist = 0;
sqlite3_stmt *stmt;
char *pRoomname = NULL;
kk_area_ctx_t *ctx = _kk_area_get_ctx();
char *sqlCmd = NULL;
int tlen = 0;
if(roomname == NULL){
return -1;
}
_kk_area_lock();
sqlCmd = sqlite3_mprintf("select * from AreaInfo WHERE roomId= '%s'",roomid);
sqlite3_prepare_v2(ctx->pDb, sqlCmd, strlen(sqlCmd), &stmt, NULL);
//INFO_PRINT("total_column = %d\n", sqlite3_column_count(stmt));
while(sqlite3_step(stmt) == SQLITE_ROW){
pRoomname = (char*)sqlite3_column_text(stmt, DB_ROOM_NAME);
}
if(pRoomname != NULL && strlen(pRoomname) > 0){
tlen = strlen(pRoomname) > len?len:strlen(pRoomname);
strncpy(roomname,pRoomname,tlen);
}else{
strcpy(roomname,"");
}
sqlite3_finalize(stmt);
sqlite3_free(sqlCmd);
_kk_area_unlock();
return 0;
}
int kk_room_update_armingstate(int state,const char *roomid) int kk_room_update_armingstate(int state,const char *roomid)
{ {
char *sqlCmd = NULL; char *sqlCmd = NULL;
int rc = 0; int rc = 0;
char *zErrMsg = 0; char *zErrMsg = 0;
kk_area_ctx_t *ctx = _kk_area_get_ctx(); kk_area_ctx_t *ctx = _kk_area_get_ctx();
_kk_area_lock(); _kk_area_lock();
sqlCmd = sqlite3_mprintf("UPDATE AreaInfo SET armingstate=%d WHERE roomId= '%s'",state,roomid); sqlCmd = sqlite3_mprintf("UPDATE AreaInfo SET armingstate=%d WHERE roomId= '%s'",state,roomid);
rc = sqlite3_exec(ctx->pDb, sqlCmd, NULL, NULL, &zErrMsg); rc = sqlite3_exec(ctx->pDb, sqlCmd, NULL, NULL, &zErrMsg);
...@@ -232,6 +263,26 @@ int kk_room_update_armingstate(int state,const char *roomid) ...@@ -232,6 +263,26 @@ int kk_room_update_armingstate(int state,const char *roomid)
_kk_area_unlock(); _kk_area_unlock();
return SUCCESS_RETURN; return SUCCESS_RETURN;
} }
int kk_room_set_floor_info(const char*floorId,const char* floorName,const char *roomid)
{
char *sqlCmd = NULL;
int rc = 0;
char *zErrMsg = 0;
kk_area_ctx_t *ctx = _kk_area_get_ctx();
_kk_area_lock();
sqlCmd = sqlite3_mprintf("UPDATE AreaInfo SET floorId=%s,floorName=%s WHERE roomId= '%s'",floorId,floorName,roomid);
rc = sqlite3_exec(ctx->pDb, sqlCmd, NULL, NULL, &zErrMsg);
if( rc != SQLITE_OK ){
ERROR_PRINT("SQL error: %s\n", zErrMsg);
sqlite3_free(zErrMsg);
}else{
INFO_PRINT("Table updata data successfully\n");
}
sqlite3_free(sqlCmd);
_kk_area_unlock();
return SUCCESS_RETURN;
}
int kk_room_delete(const char *roomId) int kk_room_delete(const char *roomId)
{ {
int res = 0; int res = 0;
...@@ -239,7 +290,7 @@ int kk_room_delete(const char *roomId) ...@@ -239,7 +290,7 @@ int kk_room_delete(const char *roomId)
char *sqlCmd = NULL; char *sqlCmd = NULL;
char *zErrMsg = 0; char *zErrMsg = 0;
const char *deleteCmd = "delete from AreaInfo where roomId = '%s';"; const char *deleteCmd = "delete from AreaInfo where roomId = '%s';";
kk_room_dev_remove_by_roomid(roomId);
_kk_area_lock(); _kk_area_lock();
sqlCmd = sqlite3_mprintf(deleteCmd,roomId); sqlCmd = sqlite3_mprintf(deleteCmd,roomId);
...@@ -276,6 +327,7 @@ static int _kk_check_dev_exist(const char* deviceCode,const char *epNum) ...@@ -276,6 +327,7 @@ static int _kk_check_dev_exist(const char* deviceCode,const char *epNum)
if(!strcmp(deviceCode,pDeviceCode) && !strcmp(pEpNum,epNum)) if(!strcmp(deviceCode,pDeviceCode) && !strcmp(pEpNum,epNum))
{ {
isExist = 1; isExist = 1;
INFO_PRINT("_kk_check_dev_exist\n");
break; break;
} }
} }
...@@ -294,7 +346,7 @@ int kk_room_dev_add(const char *roomId,const char *roomName,const char *deviceCo ...@@ -294,7 +346,7 @@ int kk_room_dev_add(const char *roomId,const char *roomName,const char *deviceCo
if(_kk_check_dev_exist(deviceCode,epNum)){ if(_kk_check_dev_exist(deviceCode,epNum)){
sqlCmd = sqlite3_mprintf("UPDATE AreaDevInfo SET roomId='%s', devName='%s', devName='%s'\ sqlCmd = sqlite3_mprintf("UPDATE AreaDevInfo SET roomId='%s', roomName='%s', devName='%s'\
WHERE deviceCode= '%s' and epNum = '%s'",roomId,roomName,devName,deviceCode,epNum); WHERE deviceCode= '%s' and epNum = '%s'",roomId,roomName,devName,deviceCode,epNum);
} }
else{ else{
...@@ -440,6 +492,27 @@ int kk_get_device_roomInfo(const char* deviceCode,int epNum,char *roomName,char ...@@ -440,6 +492,27 @@ int kk_get_device_roomInfo(const char* deviceCode,int epNum,char *roomName,char
_kk_area_unlock(); _kk_area_unlock();
return isGet; return isGet;
} }
int kk_room_dev_remove_by_roomid(const char *roomid)
{
int res = 0;
kk_area_ctx_t *ctx = _kk_area_get_ctx();
char *sqlCmd = NULL;
char *zErrMsg = 0;
const char *deleteCmd = "delete from AreaDevInfo where roomId = '%s';";
_kk_area_lock();
sqlCmd = sqlite3_mprintf(deleteCmd,roomid);
res = sqlite3_exec(ctx->pDb, sqlCmd, NULL, NULL, &zErrMsg);
if( res != SQLITE_OK ){
ERROR_PRINT("SQL error: %s\n", zErrMsg);
sqlite3_free(zErrMsg);
}else{
//INFO_PRINT("sub device insert data successfully\n");
}
sqlite3_free(sqlCmd);
_kk_area_unlock();
return SUCCESS_RETURN;
}
int kk_room_dev_remove(const char *deviceCode,const char *epNum) int kk_room_dev_remove(const char *deviceCode,const char *epNum)
{ {
int res = 0; int res = 0;
...@@ -448,9 +521,6 @@ int kk_room_dev_remove(const char *deviceCode,const char *epNum) ...@@ -448,9 +521,6 @@ int kk_room_dev_remove(const char *deviceCode,const char *epNum)
char *zErrMsg = 0; char *zErrMsg = 0;
const char *insertCmd = NULL; const char *insertCmd = NULL;
printf("deviceCode---->%s,%s\n",deviceCode,epNum);
if(epNum == NULL){ if(epNum == NULL){
insertCmd = "delete from AreaDevInfo where deviceCode = '%s';"; insertCmd = "delete from AreaDevInfo where deviceCode = '%s';";
} }
......
...@@ -12,6 +12,8 @@ enum{ ...@@ -12,6 +12,8 @@ enum{
DB_ROOM_NAME, DB_ROOM_NAME,
DB_ROOM_ID, DB_ROOM_ID,
DB_ROOM_ARMING, DB_ROOM_ARMING,
DB_ROOM_FLOORID,
DB_ROOM_FLOORNAME,
}; };
enum{ enum{
...@@ -36,5 +38,7 @@ int kk_get_room_armingstate(const char* roomId); ...@@ -36,5 +38,7 @@ int kk_get_room_armingstate(const char* roomId);
int kk_get_roomId_by_deviceCode(const char* deviceCode,const char *epNum,char *roomId,int size); int kk_get_roomId_by_deviceCode(const char* deviceCode,const char *epNum,char *roomId,int size);
int kk_get_device_roomInfo(const char* deviceCode,int epNum,char *roomName,char *roomId); int kk_get_device_roomInfo(const char* deviceCode,int epNum,char *roomName,char *roomId);
int kk_room_reset_armingstate(void); int kk_room_reset_armingstate(void);
int kk_room_dev_remove_by_roomid(const char *roomid);
int kk_room_set_floor_info(const char*floorId,const char* floorName,const char *roomid);
#endif #endif
...@@ -59,10 +59,15 @@ const char DM_MSG_INFO[] DM_READ_ONLY; ...@@ -59,10 +59,15 @@ const char DM_MSG_INFO[] DM_READ_ONLY;
#define KK_THING_TOPO_CHANGE_MSG "/thing/topo/change" #define KK_THING_TOPO_CHANGE_MSG "/thing/topo/change"
#define KK_THING_SERVICE_REBOOT "/thing/service/reboot" #define KK_THING_SERVICE_REBOOT "/thing/service/reboot"
#define KK_THING_SERVICE_ADDROOM "/thing/service/addRoom" #define KK_THING_SERVICE_ADDROOM "/thing/service/addRoom"
#define KK_THING_SERVICE_ADDROOM_REPLY "/thing/service/addRoom_reply"
#define KK_THING_SERVICE_UPDATEROOM "/thing/service/updateRoom"
#define KK_THING_SERVICE_UPDATEROOM_REPLY "/thing/service/updateRoom_reply"
#define KK_THING_SERVICE_DELETEROOM "/thing/service/deleteRoom" #define KK_THING_SERVICE_DELETEROOM "/thing/service/deleteRoom"
#define KK_THING_SERVICE_DELETEROOM_REPLY "/thing/service/deleteRoom_reply"
#define KK_THING_SERVICE_ADDDEVICETOROOM "/thing/service/addDeviceToRoom" #define KK_THING_SERVICE_ADDDEVICETOROOM "/thing/service/addDeviceToRoom"
#define KK_THING_SERVICE_ADDDEVICETOROOM_REPLY "/thing/service/addDeviceToRoom_reply" #define KK_THING_SERVICE_ADDDEVICETOROOM_REPLY "/thing/service/addDeviceToRoom_reply"
#define KK_THING_SERVICE_REMOVEDEVICEFROMROOM "/thing/service/removeDeviceFromRoom" #define KK_THING_SERVICE_REMOVEDEVICEFROMROOM "/thing/service/removeDeviceFromRoom"
#define KK_THING_SERVICE_REMOVEDEVICEFROMROOM_REPLY "/thing/service/removeDeviceFromRoom_reply"
#define KK_THING_SERVICE_EXECUTEROOM "/thing/service/executeRoom" #define KK_THING_SERVICE_EXECUTEROOM "/thing/service/executeRoom"
#define KK_THING_SERVICE_SETLOCALTIMER "/thing/service/setLocalTimer" #define KK_THING_SERVICE_SETLOCALTIMER "/thing/service/setLocalTimer"
#define KK_THING_SERVICE_GETLOCALTIMER "/thing/service/getLocalTimer" #define KK_THING_SERVICE_GETLOCALTIMER "/thing/service/getLocalTimer"
...@@ -73,10 +78,14 @@ const char DM_MSG_INFO[] DM_READ_ONLY; ...@@ -73,10 +78,14 @@ const char DM_MSG_INFO[] DM_READ_ONLY;
#define KK_THING_SERVICE_DELETEKEY "/thing/service/DeleteKey" #define KK_THING_SERVICE_DELETEKEY "/thing/service/DeleteKey"
#define KK_THING_SERVICE_MODIFYKEY "/thing/service/ModifyKey" #define KK_THING_SERVICE_MODIFYKEY "/thing/service/ModifyKey"
#define KK_THING_SERVICE_ADDSCENC "/thing/service/addScene" #define KK_THING_SERVICE_ADDSCENC "/thing/service/addScene"
#define KK_THING_SERVICE_ADDSCENC_REPLY "/thing/service/addScene_reply"
#define KK_THING_SERVICE_DELETESCENC "/thing/service/deleteScene" #define KK_THING_SERVICE_DELETESCENC "/thing/service/deleteScene"
#define KK_THING_SERVICE_DELETESCENC_REPLY "/thing/service/deleteScene_reply"
#define KK_THING_SERVICE_UPDATESCENC "/thing/service/updateScene" #define KK_THING_SERVICE_UPDATESCENC "/thing/service/updateScene"
#define KK_THING_SERVICE_UPDATESCENC_REPLY "/thing/service/updateScene_reply"
#define KK_THING_SERVICE_PROPERTY_GET_REPLY "/thing/service/property/get_reply" #define KK_THING_SERVICE_PROPERTY_GET_REPLY "/thing/service/property/get_reply"
#define KK_THING_SERVICE_EXECUTESCENE "/thing/service/executeScene" #define KK_THING_SERVICE_EXECUTESCENE "/thing/service/executeScene"
#define KK_THING_SERVICE_EXECUTESCENE_REPLY "/thing/service/executeScene_reply"
#define KK_THING_SERVICE_NEGATIVE "/thing/service/negativeProperty" #define KK_THING_SERVICE_NEGATIVE "/thing/service/negativeProperty"
#define KK_THING_METHOD_DELETESCENC "thing.service.deleteScene" #define KK_THING_METHOD_DELETESCENC "thing.service.deleteScene"
#define KK_THING_METHOD_UPDATESCENC "thing.service.updateScene" #define KK_THING_METHOD_UPDATESCENC "thing.service.updateScene"
...@@ -88,9 +97,10 @@ const char DM_MSG_INFO[] DM_READ_ONLY; ...@@ -88,9 +97,10 @@ const char DM_MSG_INFO[] DM_READ_ONLY;
#define KK_THING_SERVICE_SYNCDEVICEINFO_REPLY "/thing/service/syncDeviceInfo_reply" #define KK_THING_SERVICE_SYNCDEVICEINFO_REPLY "/thing/service/syncDeviceInfo_reply"
#define KK_THING_SERVICE_CLOUDSTATUS "/thing/service/cloudStatus" #define KK_THING_SERVICE_CLOUDSTATUS "/thing/service/cloudStatus"
#define KK_THING_SERVICE_EXECUTEDNDMODE "/thing/service/executeDNDMode" #define KK_THING_SERVICE_EXECUTEDNDMODE "/thing/service/executeDNDMode"
#define KK_THING_SERVICE_SETFLOOR "/thing/service/setAllFloors"
#define KK_THING_SERVICE_SETFLOOR_REPLY "/thing/service/setAllFloors_reply"
#define KK_THING_SERVICE_GETFLOOR "/thing/service/getAllFloors"
#define KK_THING_SERVICE_GETFLOOR_REPLY "/thing/service/getAllFloors_reply"
#define KK_THING_SERVICE_SYNCINFO_REPLY "/thing/service/syncinfo_reply" #define KK_THING_SERVICE_SYNCINFO_REPLY "/thing/service/syncinfo_reply"
#define KK_THING_SERVICE_SYNCINFOPUSH_REPLY "/thing/service/syncinfopush_reply" #define KK_THING_SERVICE_SYNCINFOPUSH_REPLY "/thing/service/syncinfopush_reply"
......
...@@ -414,7 +414,47 @@ int kk_topo_delete_handle(cJSON *payload,cJSON *buf) ...@@ -414,7 +414,47 @@ int kk_topo_delete_handle(cJSON *payload,cJSON *buf)
} }
return SUCCESS_RETURN; return SUCCESS_RETURN;
} }
static int kk_service_addRoom_reply(cJSON *param,cJSON *msgId,char *roomid,int type)
{
int res = 0;
int i = 0,num = 0;
if(param == NULL || msgId == NULL){
return INVALID_PARAMETER;
}
cJSON *deviceCode = cJSON_GetObjectItem(param, MSG_DEVICE_CODE_STR);
if(deviceCode == NULL){
return FAIL_RETURN;
}
cJSON *productCode = cJSON_GetObjectItem(param, MSG_PRODUCT_CODE_STR);
if(productCode == NULL){
return FAIL_RETURN;
}
cJSON *info = cJSON_CreateObject();
if( type == 0){
cJSON_AddStringToObject(info, MSG_TYPE_STR, KK_THING_SERVICE_ADDROOM_REPLY);
}else{
cJSON_AddStringToObject(info, MSG_TYPE_STR, KK_THING_SERVICE_UPDATEROOM_REPLY);
}
cJSON_AddStringToObject(info, MSG_DEVICE_CODE_STR, deviceCode->valuestring);
cJSON_AddStringToObject(info, MSG_PRODUCT_CODE_STR, productCode->valuestring);
char *infff=cJSON_Print(info);
cJSON *payload = cJSON_CreateObject();
cJSON_AddStringToObject(payload, "desc", "success");
cJSON_AddStringToObject(payload, "version", "1.0");
cJSON_AddStringToObject(payload, "code", "0");
cJSON_AddStringToObject(payload, "msgId", msgId->valuestring);
cJSON *Item = cJSON_CreateObject();
cJSON_AddStringToObject(Item, "roomId", roomid);
cJSON_AddItemToObject(payload, "params", Item);
char *payload11=cJSON_Print(payload);
kk_sendData2app(infff,payload11,0);
free(payload11);
free(infff);
cJSON_Delete(payload);
cJSON_Delete(info);
return res;
}
/************************************************************ /************************************************************
*功能描述:添加房间处理函数 *功能描述:添加房间处理函数
*输入参数:params:云端传下来JSON数据,主要包含房间名称 *输入参数:params:云端传下来JSON数据,主要包含房间名称
...@@ -422,7 +462,7 @@ int kk_topo_delete_handle(cJSON *payload,cJSON *buf) ...@@ -422,7 +462,7 @@ int kk_topo_delete_handle(cJSON *payload,cJSON *buf)
*返 回 值: 0:成功;其他:失败 *返 回 值: 0:成功;其他:失败
*其他说明: *其他说明:
*************************************************************/ *************************************************************/
static int kk_service_addRoom_handle(const char *deviceCode, cJSON *params) static int kk_service_addRoom_handle(const char *deviceCode, cJSON *params,cJSON *inforoot,cJSON *msgid)
{ {
dm_mgr_dev_node_t *node = NULL; dm_mgr_dev_node_t *node = NULL;
char roomId[32] = {0}; char roomId[32] = {0};
...@@ -441,39 +481,53 @@ static int kk_service_addRoom_handle(const char *deviceCode, cJSON *params) ...@@ -441,39 +481,53 @@ static int kk_service_addRoom_handle(const char *deviceCode, cJSON *params)
return res; return res;
} }
cJSON *roomInfoStr = cJSON_GetObjectItem(params, MSG_AREA_ADDROOM_ROOMNAME); cJSON *roomInfoStr = cJSON_GetObjectItem(params, MSG_AREA_ADDROOM_ROOMNAME);
cJSON *roomIdStr = cJSON_GetObjectItem(params, MSG_AREA_ROOM_ROOMID); //cJSON *roomIdStr = cJSON_GetObjectItem(params, MSG_AREA_ROOM_ROOMID);
if(roomInfoStr == NULL){ if(roomInfoStr == NULL){
return FAIL_RETURN; return FAIL_RETURN;
} }
memcpy(roomId,roomIdStr->valuestring,strlen(roomIdStr->valuestring)); //memcpy(roomId,roomIdStr->valuestring,strlen(roomIdStr->valuestring));
//HAL_GetTime_s((char*)roomId); HAL_GetTime_s((char*)roomId);
kk_room_add(roomInfoStr->valuestring,roomId); kk_room_add(roomInfoStr->valuestring,roomId);
kk_service_addRoom_reply(inforoot,msgid,roomId,0);
kk_tsl_set_value(kk_tsl_set_event_output_value,node->dev_shadow,MSG_AREA_ADDROOM_NOTIFICATION_ROOMID,NULL,roomId); kk_tsl_set_value(kk_tsl_set_event_output_value,node->dev_shadow,MSG_AREA_ADDROOM_NOTIFICATION_ROOMID,NULL,roomId);
return SUCCESS_RETURN; return SUCCESS_RETURN;
} }
/************************************************************ /************************************************************
*功能描述:删除房间处理函数 *功能描述:更新房间处理函数
*输入参数:params:云端传下来JSON数据,主要包含房间ID *输入参数:params:云端传下来JSON数据,主要包含房间名称
*输出参数:无 *输出参数:无
*返 回 值: 0:成功;其他:失败 *返 回 值: 0:成功;其他:失败
*其他说明: *其他说明:
*************************************************************/ *************************************************************/
static int kk_service_deleteRoom_handle(cJSON *params) static int kk_service_updateRoom_handle(const char *deviceCode, cJSON *params,cJSON *inforoot,cJSON *msgid)
{ {
if(params == NULL){ dm_mgr_dev_node_t *node = NULL;
char roomId[32] = {0};
int res = 0;
if(deviceCode == NULL||params == NULL){
return INVALID_PARAMETER; return INVALID_PARAMETER;
} }
cJSON *roomInfoStr = cJSON_GetObjectItem(params, MSG_AREA_ADDROOM_ROOMNAME);
cJSON *roomInfoStr = cJSON_GetObjectItem(params, MSG_AREA_ROOM_ROOMID); cJSON *roomIdStr = cJSON_GetObjectItem(params, MSG_AREA_ROOM_ROOMID);
if(roomInfoStr == NULL){ if(roomInfoStr == NULL || roomIdStr == NULL){
return FAIL_RETURN; return FAIL_RETURN;
} }
kk_room_delete(roomInfoStr->valuestring); //memcpy(roomId,roomIdStr->valuestring,strlen(roomIdStr->valuestring));
//INFO_PRINT(" update room 111!!! %s.%s\n",roomInfoStr->valuestring,roomIdStr->valuestring);
kk_room_add(roomInfoStr->valuestring,roomIdStr->valuestring);
//INFO_PRINT(" update room 111!!!\n");
kk_service_addRoom_reply(inforoot,msgid,roomIdStr->valuestring,1);
//INFO_PRINT(" update room 111!!!\n");
return SUCCESS_RETURN; return SUCCESS_RETURN;
} }
/************************************************************
static int kk_service_addDeviceToRoom_reply(cJSON *param,cJSON *msgId) *功能描述:删除房间处理函数
*输入参数:params:云端传下来JSON数据,主要包含房间ID
*输出参数:无
*返 回 值: 0:成功;其他:失败
*其他说明:
*************************************************************/
static int kk_service_deleteRoom_reply(cJSON *param,cJSON *msgId)
{ {
int res = 0; int res = 0;
int i = 0,num = 0; int i = 0,num = 0;
...@@ -489,7 +543,7 @@ static int kk_service_addDeviceToRoom_reply(cJSON *param,cJSON *msgId) ...@@ -489,7 +543,7 @@ static int kk_service_addDeviceToRoom_reply(cJSON *param,cJSON *msgId)
return FAIL_RETURN; return FAIL_RETURN;
} }
cJSON *info = cJSON_CreateObject(); cJSON *info = cJSON_CreateObject();
cJSON_AddStringToObject(info, MSG_TYPE_STR, KK_THING_SERVICE_ADDDEVICETOROOM_REPLY); cJSON_AddStringToObject(info, MSG_TYPE_STR, KK_THING_SERVICE_DELETEROOM_REPLY);
cJSON_AddStringToObject(info, MSG_DEVICE_CODE_STR, deviceCode->valuestring); cJSON_AddStringToObject(info, MSG_DEVICE_CODE_STR, deviceCode->valuestring);
cJSON_AddStringToObject(info, MSG_PRODUCT_CODE_STR, productCode->valuestring); cJSON_AddStringToObject(info, MSG_PRODUCT_CODE_STR, productCode->valuestring);
char *infff=cJSON_Print(info); char *infff=cJSON_Print(info);
...@@ -509,6 +563,20 @@ static int kk_service_addDeviceToRoom_reply(cJSON *param,cJSON *msgId) ...@@ -509,6 +563,20 @@ static int kk_service_addDeviceToRoom_reply(cJSON *param,cJSON *msgId)
cJSON_Delete(info); cJSON_Delete(info);
return res; return res;
} }
static int kk_service_deleteRoom_handle(cJSON *params)
{
if(params == NULL){
return INVALID_PARAMETER;
}
cJSON *roomInfoStr = cJSON_GetObjectItem(params, MSG_AREA_ROOM_ROOMID);
if(roomInfoStr == NULL){
return FAIL_RETURN;
}
kk_room_delete(roomInfoStr->valuestring);
return SUCCESS_RETURN;
}
/************************************************************ /************************************************************
*功能描述:添加设备到房间处理函数 *功能描述:添加设备到房间处理函数
*输入参数:params:云端传下来JSON数据,主要包含房间ID和设备deviceCode *输入参数:params:云端传下来JSON数据,主要包含房间ID和设备deviceCode
...@@ -519,6 +587,7 @@ static int kk_service_addDeviceToRoom_reply(cJSON *param,cJSON *msgId) ...@@ -519,6 +587,7 @@ static int kk_service_addDeviceToRoom_reply(cJSON *param,cJSON *msgId)
static int kk_service_addDeviceToRoom_handle(cJSON *params) static int kk_service_addDeviceToRoom_handle(cJSON *params)
{ {
char epNumStr[10] = {0}; char epNumStr[10] = {0};
//char roomName[256] = {0};
int isAirGwFlag = 0; int isAirGwFlag = 0;
int res = 0; int res = 0;
dm_mgr_dev_node_t *node = NULL; dm_mgr_dev_node_t *node = NULL;
...@@ -538,7 +607,7 @@ static int kk_service_addDeviceToRoom_handle(cJSON *params) ...@@ -538,7 +607,7 @@ static int kk_service_addDeviceToRoom_handle(cJSON *params)
if(roomId == NULL){ if(roomId == NULL){
return FAIL_RETURN; return FAIL_RETURN;
} }
kk_room_add(room_name->valuestring,roomId->valuestring); //kk_room_add(room_name->valuestring,roomId->valuestring);
cJSON *deviceCode = cJSON_GetObjectItem(params, MSG_DEVICE_CODE_STR); cJSON *deviceCode = cJSON_GetObjectItem(params, MSG_DEVICE_CODE_STR);
if(deviceCode == NULL){ if(deviceCode == NULL){
return FAIL_RETURN; return FAIL_RETURN;
...@@ -690,7 +759,92 @@ static int kk_service_executeDNDMode_handle(cJSON *params) ...@@ -690,7 +759,92 @@ static int kk_service_executeDNDMode_handle(cJSON *params)
kk_free_room_dev_list(); kk_free_room_dev_list();
return SUCCESS_RETURN; return SUCCESS_RETURN;
} }
/************************************************************
*功能描述:设置楼层
*输入参数:params:云端下发数据,包含房间号等
*输出参数:无
*返 回 值: 0:成功;其他:失败
*其他说明:
*************************************************************/
static int kk_service_setFloor_handle(cJSON *params)
{
int res = 0;
char roomIdStr[16] = {0};
kk_dev_list_t *pList = NULL;
if(params == NULL){
return INVALID_PARAMETER;
}
cJSON *floorArray = cJSON_GetObjectItem(params, MSG_AREA_ROOM_FLOORS);
if(floorArray == NULL){
ERROR_PRINT("DATA ERROR!!!\n");
return INVALID_PARAMETER;
}
cJSON * item = floorArray->child;
while(item != NULL){
cJSON * floorId = cJSON_GetObjectItem(item,MSG_AREA_ROOM_FLOOR_ID);
if(floorId == NULL) return INVALID_PARAMETER;
cJSON * name = cJSON_GetObjectItem(item,MSG_AREA_ADDROOM_DEVICENAME);
if(name == NULL) return INVALID_PARAMETER;
cJSON * rooms = cJSON_GetObjectItem(item,MSG_AREA_ROOM_FLOOR_ROOMS);
if(rooms == NULL) return INVALID_PARAMETER;
cJSON * itemroom = rooms->child;
while(itemroom != NULL){
cJSON * roomid = cJSON_GetObjectItem(itemroom,MSG_AREA_ROOM_ROOMID);
if(roomid == NULL){
return INVALID_PARAMETER;
}
kk_room_set_floor_info(floorId->valuestring,name->valuestring,roomid->valuestring);
itemroom = itemroom->next;
}
item = item->next;
}
return SUCCESS_RETURN;
}
/************************************************************
*功能描述:设置楼层
*输入参数:params:云端下发数据,包含房间号等
*输出参数:无
*返 回 值: 0:成功;其他:失败
*其他说明:
*************************************************************/
static int kk_service_getFloor_handle(cJSON *params)
{
int res = 0;
char roomIdStr[16] = {0};
kk_dev_list_t *pList = NULL;
if(params == NULL){
return INVALID_PARAMETER;
}
cJSON *floorArray = cJSON_GetObjectItem(params, MSG_AREA_ROOM_FLOORS);
if(floorArray == NULL){
ERROR_PRINT("DATA ERROR!!!\n");
return INVALID_PARAMETER;
}
cJSON * item = floorArray->child;
while(item != NULL){
cJSON * floorId = cJSON_GetObjectItem(item,MSG_AREA_ROOM_FLOOR_ID);
if(floorId == NULL) return INVALID_PARAMETER;
cJSON * name = cJSON_GetObjectItem(item,MSG_AREA_ADDROOM_DEVICENAME);
if(name == NULL) return INVALID_PARAMETER;
cJSON * rooms = cJSON_GetObjectItem(item,MSG_AREA_ROOM_FLOOR_ROOMS);
if(rooms == NULL) return INVALID_PARAMETER;
cJSON * itemroom = rooms->child;
while(itemroom != NULL){
cJSON * roomid = cJSON_GetObjectItem(itemroom,MSG_AREA_ROOM_ROOMID);
if(roomid == NULL){
return INVALID_PARAMETER;
}
kk_room_set_floor_info(floorId->valuestring,name->valuestring,roomid->valuestring);
itemroom = itemroom->next;
}
item = item->next;
}
return SUCCESS_RETURN;
}
/************************************************************ /************************************************************
*功能描述:批量执行房间设备处理 *功能描述:批量执行房间设备处理
*输入参数:params:云端下发数据,包含房间号,productCode等 *输入参数:params:云端下发数据,包含房间号,productCode等
...@@ -1372,25 +1526,37 @@ static void _iotx_linkkit_event_callback(iotx_dm_event_types_t type, char *data) ...@@ -1372,25 +1526,37 @@ static void _iotx_linkkit_event_callback(iotx_dm_event_types_t type, char *data)
INFO_PRINT(" add room!!!\n"); INFO_PRINT(" add room!!!\n");
cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR); cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR);
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID); cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
kk_service_addRoom_handle(deviceCode->valuestring,paramStr); kk_service_addRoom_handle(deviceCode->valuestring,paramStr,info_root,msgId);
dm_msg_thing_event_post(deviceCode->valuestring,MSG_AREA_ADDROOM_NOTIFICATION,msgId->valuestring); dm_msg_thing_event_post(deviceCode->valuestring,MSG_AREA_ADDROOM_NOTIFICATION,msgId->valuestring);
} }
else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_UPDATEROOM) == 0){
INFO_PRINT(" update room!!!\n");
cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR);
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
kk_service_updateRoom_handle(deviceCode->valuestring,paramStr,info_root,msgId);
//dm_msg_thing_event_post(deviceCode->valuestring,MSG_AREA_ADDROOM_NOTIFICATION,msgId->valuestring);
}
else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_DELETEROOM) == 0){ else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_DELETEROOM) == 0){
INFO_PRINT(" delete room \n"); INFO_PRINT(" delete room \n");
cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR); cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR);
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
kk_service_deleteRoom_handle(paramStr); kk_service_deleteRoom_handle(paramStr);
kk_service_deleteRoom_reply(info_root,msgId);
} }
else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_ADDDEVICETOROOM) == 0){ else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_ADDDEVICETOROOM) == 0){
INFO_PRINT(" adddevicetoroom \n"); INFO_PRINT(" adddevicetoroom \n");
cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR); cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR);
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID); cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
kk_service_addDeviceToRoom_handle(paramStr); kk_service_addDeviceToRoom_handle(paramStr);
kk_service_addDeviceToRoom_reply(info_root,msgId); kk_service_common_reply(info_root,msgId,KK_THING_SERVICE_ADDDEVICETOROOM_REPLY);
} }
else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_REMOVEDEVICEFROMROOM) == 0){ else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_REMOVEDEVICEFROMROOM) == 0){
INFO_PRINT(" removedevicefromroom \n"); INFO_PRINT(" removedevicefromroom \n");
cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR); cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR);
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
kk_service_removeDeviceFromRoom_handle(paramStr); kk_service_removeDeviceFromRoom_handle(paramStr);
//kk_service_addDeviceToRoom_reply(info_root,msgId,1);
kk_service_common_reply(info_root,msgId,KK_THING_SERVICE_REMOVEDEVICEFROMROOM_REPLY);
} }
else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_EXECUTEROOM) == 0){ else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_EXECUTEROOM) == 0){
INFO_PRINT(" executeroom \n"); INFO_PRINT(" executeroom \n");
...@@ -1402,24 +1568,28 @@ static void _iotx_linkkit_event_callback(iotx_dm_event_types_t type, char *data) ...@@ -1402,24 +1568,28 @@ static void _iotx_linkkit_event_callback(iotx_dm_event_types_t type, char *data)
cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR); cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR);
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID); cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
kk_service_addScene_handle(paramStr,msgId); kk_service_addScene_handle(paramStr,msgId);
kk_service_common_reply(info_root,msgId,KK_THING_SERVICE_ADDSCENC_REPLY);
} }
else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_UPDATESCENC) == 0){ else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_UPDATESCENC) == 0){
INFO_PRINT(" update scene \n"); INFO_PRINT(" update scene \n");
cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR); cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR);
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID); cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
kk_service_updateScene_handle(paramStr,msgId); kk_service_updateScene_handle(paramStr,msgId);
kk_service_common_reply(info_root,msgId,KK_THING_SERVICE_UPDATESCENC_REPLY);
} }
else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_DELETESCENC) == 0){ else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_DELETESCENC) == 0){
INFO_PRINT("delete scene \n"); INFO_PRINT("delete scene \n");
cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR); cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR);
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID); cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
kk_service_deleteScene_handle(paramStr,msgId); kk_service_deleteScene_handle(paramStr,msgId);
kk_service_common_reply(info_root,msgId,KK_THING_SERVICE_DELETESCENC_REPLY);
} }
else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_EXECUTESCENE) == 0){ else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_EXECUTESCENE) == 0){
INFO_PRINT("execute scene \n"); INFO_PRINT("execute scene \n");
cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR); cJSON *paramStr = cJSON_GetObjectItem(payload, MSG_PARAMS_STR);
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID); cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
kk_service_executeScene_handle(paramStr,msgId); kk_service_executeScene_handle(paramStr,msgId);
kk_service_common_reply(info_root,msgId,KK_THING_SERVICE_EXECUTESCENE_REPLY);
}else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_SYNCDEVICEINFO) == 0){ }else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_SYNCDEVICEINFO) == 0){
INFO_PRINT("SYNCDEVICEINFO service \n"); INFO_PRINT("SYNCDEVICEINFO service \n");
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID); cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
...@@ -1528,6 +1698,19 @@ static void _iotx_linkkit_event_callback(iotx_dm_event_types_t type, char *data) ...@@ -1528,6 +1698,19 @@ static void _iotx_linkkit_event_callback(iotx_dm_event_types_t type, char *data)
kk_service_common_reply(info_root,msgId,"/thing/service/executeDNDMode_reply"); kk_service_common_reply(info_root,msgId,"/thing/service/executeDNDMode_reply");
cJSON *paramStr = cJSON_GetObjectItem(payload,MSG_PARAMS_STR); cJSON *paramStr = cJSON_GetObjectItem(payload,MSG_PARAMS_STR);
kk_service_executeDNDMode_handle(paramStr); kk_service_executeDNDMode_handle(paramStr);
}
else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_SETFLOOR) == 0){
INFO_PRINT("SETFLOOR \n");
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
cJSON *paramStr = cJSON_GetObjectItem(payload,MSG_PARAMS_STR);
kk_service_setFloor_handle(paramStr);
kk_service_common_reply(info_root,msgId,KK_THING_SERVICE_SETFLOOR_REPLY);
}
else if(strcmp(typeJson->valuestring,KK_THING_SERVICE_GETFLOOR) == 0){
INFO_PRINT("GETFLOOR \n");
cJSON *msgId = cJSON_GetObjectItem(payload, MSG_COMMON_MSGID);
//kk_service_setFloor_handle();
//kk_service_common_reply(info_root,msgId,KK_THING_SERVICE_SETFLOOR_REPLY);
} }
else{ else{
INFO_PRINT("Error msgtype!!! \n"); INFO_PRINT("Error msgtype!!! \n");
......
{ {
"version": "1.4", "version": "1.4",
"update": "2021-09-06", "update": "2021-09-06",
"devices": [ "devices": [
{ {
"pid": "00068611", "pid": "00068611",
"name": "XC Wall switch 1G", "name": "XC Wall switch 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3001, "b_pid": 3001,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068612", "pid": "00068612",
"name": "XC Wall switch 2G", "name": "XC Wall switch 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3002, "b_pid": 3002,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068613", "pid": "00068613",
"name": "XC Wall switch 3G", "name": "XC Wall switch 3G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3003, "b_pid": 3003,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00048611", "pid": "00048611",
"name": "XC Scene Panel 4G", "name": "XC Scene Panel 4G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3004, "b_pid": 3004,
"productType": "scene", "productType": "scene",
"eps": [ "eps": [
{ {
"zid": "0004", "zid": "0004",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00038611", "pid": "00038611",
"name": "XC Curtain Panel 1G", "name": "XC Curtain Panel 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3005, "b_pid": 3005,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00038612", "pid": "00038612",
"name": "XC Curtain Panel 2G", "name": "XC Curtain Panel 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3006, "b_pid": 3006,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00038613", "pid": "00038613",
"name": "XC Dry Contact Curtain Panel 1G", "name": "XC Dry Contact Curtain Panel 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3007, "b_pid": 3007,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00038614", "pid": "00038614",
"name": "XC Dry Contact Curtain Panel 2G", "name": "XC Dry Contact Curtain Panel 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3008, "b_pid": 3008,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00068601", "pid": "00068601",
"name": "BJ Wall switch 1G", "name": "BJ Wall switch 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3009, "b_pid": 3009,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068602", "pid": "00068602",
"name": "BJ Wall switch 2G", "name": "BJ Wall switch 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3010, "b_pid": 3010,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068603", "pid": "00068603",
"name": "BJ Wall switch 3G", "name": "BJ Wall switch 3G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3011, "b_pid": 3011,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00038601", "pid": "00038601",
"name": "BJ Curtain Panel 1G", "name": "BJ Curtain Panel 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3012, "b_pid": 3012,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00048601", "pid": "00048601",
"name": "BJ Scene Panel 3G", "name": "BJ Scene Panel 3G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3013, "b_pid": 3013,
"productType": "scene", "productType": "scene",
"eps": [ "eps": [
{ {
"zid": "0004", "zid": "0004",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00048602", "pid": "00048602",
"name": "BJ Quick Panel 3G", "name": "BJ Quick Panel 3G",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3014, "b_pid": 3014,
"productType": "scene", "productType": "scene",
"eps": [ "eps": [
{ {
"zid": "0004", "zid": "0004",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "0402812C", "pid": "0402812C",
"name": "BJ SOS Button", "name": "BJ SOS Button",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3015, "b_pid": 3015,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"zid": "0402", "zid": "0402",
"zone_type":"002C", "zone_type":"002C",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "0402802C", "pid": "0402802C",
"name": "BJ SOS Panel", "name": "BJ SOS Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3016, "b_pid": 3016,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"zid": "0402", "zid": "0402",
"zone_type":"002C", "zone_type":"002C",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "00038603", "pid": "00038603",
"name": "BJ Open Window Panel 1G", "name": "BJ Open Window Panel 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3017, "b_pid": 3017,
"productType": "actuator", "productType": "actuator",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "01018601", "pid": "01018601",
"name": "BJ DimmerLight Panel", "name": "BJ DimmerLight Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3018, "b_pid": 3018,
"productType": "lightPanel", "productType": "lightPanel",
"eps": [ "eps": [
{ {
"zid": "0101", "zid": "0101",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0008" "server": "0000:0003:0004:0005:0006:0008"
} }
} }
] ]
}, },
{ {
"pid": "00518610", "pid": "00518610",
"name": "BJ Plug Panel 10A", "name": "BJ Plug Panel 10A",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3019, "b_pid": 3019,
"productType": "outlet", "productType": "outlet",
"eps": [ "eps": [
{ {
"zid": "0051", "zid": "0051",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0b04:0702" "server": "0000:0003:0004:0005:0006:0b04:0702"
} }
} }
] ]
}, },
{ {
"pid": "00518616", "pid": "00518616",
"name": "BJ Plug Panel 16A", "name": "BJ Plug Panel 16A",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3020, "b_pid": 3020,
"productType": "outlet", "productType": "outlet",
"eps": [ "eps": [
{ {
"zid": "0051", "zid": "0051",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0b04:0702" "server": "0000:0003:0004:0005:0006:0b04:0702"
} }
} }
] ]
}, },
{ {
"pid": "00038602", "pid": "00038602",
"name": "BJ Dry Contact Curtain Panel 1G", "name": "BJ Dry Contact Curtain Panel 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3021, "b_pid": 3021,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00068621", "pid": "00068621",
"name": "XB Wall switch 1G", "name": "XB Wall switch 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3022, "b_pid": 3022,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068622", "pid": "00068622",
"name": "XB Wall switch 2G", "name": "XB Wall switch 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3023, "b_pid": 3023,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068623", "pid": "00068623",
"name": "XB Wall switch 3G", "name": "XB Wall switch 3G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3024, "b_pid": 3024,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00048621", "pid": "00048621",
"name": "XB Scene Panel 4G", "name": "XB Scene Panel 4G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3025, "b_pid": 3025,
"productType": "scene", "productType": "scene",
"eps": [ "eps": [
{ {
"zid": "0004", "zid": "0004",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00038621", "pid": "00038621",
"name": "XB Curtain Panel 1G", "name": "XB Curtain Panel 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3026, "b_pid": 3026,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00038622", "pid": "00038622",
"name": "XB Curtain Panel 2G", "name": "XB Curtain Panel 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3027, "b_pid": 3027,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00803028", "pid": "00803028",
"name": "XB DimmerLight Panel", "name": "XB DimmerLight Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3028, "b_pid": 3028,
"productType": "lightPanel", "productType": "lightPanel",
"eps": [ "eps": [
{ {
"zid": "0080", "zid": "0080",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0008" "server": "0000:0003:0004:0005:0006:0008"
} }
} }
] ]
}, },
{ {
"pid": "00803029", "pid": "00803029",
"name": "XB Water Floor Heating Panel", "name": "XB Water Floor Heating Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3029, "b_pid": 3029,
"productType": "floorHeating", "productType": "floorHeating",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201" "server": "0000:0003:0004:0005:0006:0201"
} }
} }
] ]
}, },
{ {
"pid": "00803030", "pid": "00803030",
"name": "XB Electric Floor Heating Panel", "name": "XB Electric Floor Heating Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3030, "b_pid": 3030,
"productType": "floorHeating", "productType": "floorHeating",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201" "server": "0000:0003:0004:0005:0006:0201"
} }
} }
] ]
}, },
{ {
"pid": "00803031", "pid": "00803031",
"name": "XB Fan Coil Panel", "name": "XB Fan Coil Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3031, "b_pid": 3031,
"productType": "fanCoil", "productType": "fanCoil",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201:0202" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "00803032", "pid": "00803032",
"name": "XB Fresh Air Panel", "name": "XB Fresh Air Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3032, "b_pid": 3032,
"productType": "freshAir", "productType": "freshAir",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201:0202" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "00803033", "pid": "00803033",
"name": "XB Midea Air Condition Panel Z3KA", "name": "XB Midea Air Condition Panel Z3KA",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3033, "b_pid": 3033,
"productType": "airConditioning", "productType": "airConditioning",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201:0202" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "00803034", "pid": "00803034",
"name": "XB Midea Air Condition Panel Z3ZA", "name": "XB Midea Air Condition Panel Z3ZA",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3034, "b_pid": 3034,
"productType": "airConditioning", "productType": "airConditioning",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201:0202" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "00803035", "pid": "00803035",
"name": "XB Daikin Air Condition Panel Z3KA", "name": "XB Daikin Air Condition Panel Z3KA",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3035, "b_pid": 3035,
"productType": "airConditioning", "productType": "airConditioning",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201:0202" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "00803036", "pid": "00803036",
"name": "XB MHI Air Condition Panel", "name": "XB MHI Air Condition Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3036, "b_pid": 3036,
"productType": "airConditioning", "productType": "airConditioning",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201:0202" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "00518620", "pid": "00518620",
"name": "XB Plug Panel 10A", "name": "XB Plug Panel 10A",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3037, "b_pid": 3037,
"productType": "outlet", "productType": "outlet",
"eps": [ "eps": [
{ {
"zid": "0051", "zid": "0051",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0b04:0702" "server": "0000:0003:0004:0005:0006:0b04:0702"
} }
} }
] ]
}, },
{ {
"pid": "00518626", "pid": "00518626",
"name": "XB Plug Panel 16A", "name": "XB Plug Panel 16A",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3038, "b_pid": 3038,
"productType": "outlet", "productType": "outlet",
"eps": [ "eps": [
{ {
"zid": "0051", "zid": "0051",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0b04:0702" "server": "0000:0003:0004:0005:0006:0b04:0702"
} }
} }
] ]
}, },
{ {
"pid": "0402002A", "pid": "0402002A",
"name": "iHORN water detector", "name": "iHORN water detector",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3039, "b_pid": 3039,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"002A", "zone_type":"002A",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "0402002B", "pid": "0402002B",
"name": "iHORN gas detector", "name": "iHORN gas detector",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3040, "b_pid": 3040,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"002B", "zone_type":"002B",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "04020028", "pid": "04020028",
"name": "iHORN smoke detector", "name": "iHORN smoke detector",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3041, "b_pid": 3041,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"0028", "zone_type":"0028",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "0402000D", "pid": "0402000D",
"name": "KPL Body Sensor", "name": "KPL Body Sensor",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3042, "b_pid": 3042,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"000D", "zone_type":"000D",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "0402010D", "pid": "0402010D",
"name": "Infrared Curtain Detector", "name": "Infrared Curtain Detector",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3043, "b_pid": 3043,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"000D", "zone_type":"000D",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "04032225", "pid": "04032225",
"name": "KPL Indoor Siren", "name": "KPL Indoor Siren",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3044, "b_pid": 3044,
"productType": "siren", "productType": "siren",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0403", "zid": "0403",
"zone_type":"0225", "zone_type":"0225",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "04022015", "pid": "04022015",
"name": "KPL Door Seneor", "name": "KPL Door Seneor",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3045, "b_pid": 3045,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"0015", "zone_type":"0015",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "00510001", "pid": "00510001",
"name": "KIT Quick Panel", "name": "KIT Quick Panel",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3046, "b_pid": 3046,
"productType": "scene", "productType": "scene",
"eps": [ "eps": [
{ {
"zid": "0002", "zid": "0002",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0006" "server": "0000:0003:0006"
} }
} }
] ]
}, },
{ {
"pid": "03020000", "pid": "03020000",
"name": "KIT Environment Sensor", "name": "KIT Environment Sensor",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3048, "b_pid": 3048,
"productType": "Environmental", "productType": "Environmental",
"eps": [ "eps": [
{ {
"zid": "0302", "zid": "0302",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0402:0405" "server": "0000:0003:0402:0405"
} }
} }
] ]
}, },
{ {
"pid": "0402000D", "pid": "0402000D",
"name": "KIT Body Sensor", "name": "KIT Body Sensor",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3049, "b_pid": 3049,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"000D", "zone_type":"000D",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "04020015", "pid": "04020015",
"name": "KIT Door Seneor", "name": "KIT Door Seneor",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3050, "b_pid": 3050,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"0015", "zone_type":"0015",
"cluster": { "cluster": {
"client": "0003", "client": "0003",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "04021015", "pid": "04021015",
"name": "BD Door Sensor", "name": "BD Door Sensor",
"type": "ZSED", "type": "ZSED",
"ota": true, "ota": true,
"b_pid": 3051, "b_pid": 3051,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"0015", "zone_type":"0015",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "03021000", "pid": "03021000",
"name": "BD Environment Sensor", "name": "BD Environment Sensor",
"type": "ZSED", "type": "ZSED",
"ota": true, "ota": true,
"b_pid": 3052, "b_pid": 3052,
"productType": "Environmental", "productType": "Environmental",
"eps": [ "eps": [
{ {
"zid": "0302", "zid": "0302",
"cluster": { "cluster": {
"client": "0019", "client": "0019",
"server": "0000:0001:0003:0400:0402:0405" "server": "0000:0001:0003:0400:0402:0405"
} }
} }
] ]
}, },
{ {
"pid": "0402100D", "pid": "0402100D",
"name": "BD Body Sensor", "name": "BD Body Sensor",
"type": "ZSED", "type": "ZSED",
"ota": true, "ota": true,
"b_pid": 3053, "b_pid": 3053,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"000D", "zone_type":"000D",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "0402102C", "pid": "0402102C",
"name": "BD SOS Button", "name": "BD SOS Button",
"type": "ZSED", "type": "ZSED",
"ota": true, "ota": true,
"b_pid": 3054, "b_pid": 3054,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"002C", "zone_type":"002C",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "0402102A", "pid": "0402102A",
"name": "BD Water Sensor", "name": "BD Water Sensor",
"type": "ZSED", "type": "ZSED",
"ota": true, "ota": true,
"b_pid": 3055, "b_pid": 3055,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"002A", "zone_type":"002A",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "00040002", "pid": "00040002",
"name": "BD Scene Button", "name": "BD Scene Button",
"type": "ZSED", "type": "ZSED",
"ota": true, "ota": true,
"b_pid": 3056, "b_pid": 3056,
"productType": "scene", "productType": "scene",
"eps": [ "eps": [
{ {
"zid": "0004", "zid": "0004",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "04031225", "pid": "04031225",
"name": "BD Indoor Siren", "name": "BD Indoor Siren",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3057, "b_pid": 3057,
"productType": "siren", "productType": "siren",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0403", "zid": "0403",
"zone_type":"0225", "zone_type":"0225",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "00803059", "pid": "00803059",
"name": "Infrared remote control", "name": "Infrared remote control",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3059, "b_pid": 3059,
"productType": "remoteControl", "productType": "remoteControl",
"eps": [ "eps": [
{ {
"zid": "0006", "zid": "0006",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "00803062", "pid": "00803062",
"name": "Center Air Conditioning Gateway PRO", "name": "Center Air Conditioning Gateway PRO",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3062, "b_pid": 3062,
"productType": "airConditioningGateway", "productType": "airConditioningGateway",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0008:0201" "server": "0000:0003:0004:0005:0006:0008:0201"
} }
} }
] ]
}, },
{ {
"pid": "000A0001", "pid": "000A0001",
"name": "YM Doorlock", "name": "YM Doorlock",
"type": "ZSED", "type": "ZSED",
"ota": false, "ota": false,
"b_pid": 3064, "b_pid": 3064,
"productType": "Doorlock", "productType": "Doorlock",
"eps": [ "eps": [
{ {
"zid": "000A", "zid": "000A",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0001:0003:0101:0B05" "server": "0000:0001:0003:0101:0B05"
} }
} }
] ]
}, },
{ {
"pid": "02020000", "pid": "02020000",
"name": "DY Window Covering", "name": "DY Window Covering",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3067, "b_pid": 3067,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0202", "zid": "0202",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "02020001", "pid": "02020001",
"name": "WSD Window Covering", "name": "WSD Window Covering",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3068, "b_pid": 3068,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0202", "zid": "0202",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "01000002", "pid": "01000002",
"name": "Dual Lamp Control Module", "name": "Dual Lamp Control Module",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3069, "b_pid": 3069,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0100", "zid": "0100",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "04028301", "pid": "04028301",
"name": "Security Sensor Module", "name": "Security Sensor Module",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3070, "b_pid": 3070,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type": "8301", "zone_type": "8301",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "03300001", "pid": "03300001",
"name": "Water Valve Controller", "name": "Water Valve Controller",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3071, "b_pid": 3071,
"productType": "waterValve", "productType": "waterValve",
"eps": [ "eps": [
{ {
"zid": "0330", "zid": "0330",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "03310001", "pid": "03310001",
"name": "Gas Valve Controller", "name": "Gas Valve Controller",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3072, "b_pid": 3072,
"productType": "gasValve", "productType": "gasValve",
"eps": [ "eps": [
{ {
"zid": "0331", "zid": "0331",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "01020001", "pid": "01020001",
"name": "Light Belt Controller", "name": "Light Belt Controller",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3073, "b_pid": 3073,
"productType": "colorDimmableLight", "productType": "colorDimmableLight",
"eps": [ "eps": [
{ {
"zid": "0102", "zid": "0102",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0008:0300" "server": "0000:0003:0004:0005:0006:0008:0300"
} }
}, },
{ {
"zid": "0101", "zid": "0101",
"cluster": { "cluster": {
"client": "", "client": "",
"server": "0004:0005:0006:0008" "server": "0004:0005:0006:0008"
} }
} }
] ]
}, },
{ {
"pid": "03020001", "pid": "03020001",
"name": "Environment Sensor", "name": "Environment Sensor",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3076, "b_pid": 3076,
"productType": "Environmental", "productType": "Environmental",
"eps": [ "eps": [
{ {
"zid": "0302", "zid": "0302",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0402:0405:0400" "server": "0000:0003:0402:0405:0400"
} }
} }
] ]
}, },
{ {
"pid": "00068624", "pid": "00068624",
"name": "XB Wall switch 4G", "name": "XB Wall switch 4G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3078, "b_pid": 3078,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068614", "pid": "00068614",
"name": "XC Wall switch 4G", "name": "XC Wall switch 4G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3079, "b_pid": 3079,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "3050", "pid": "3050",
"name": "iHORN Gas Sensor", "name": "iHORN Gas Sensor",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3080, "b_pid": 3080,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"002B", "zone_type":"002B",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "3041", "pid": "3041",
"name": "iHORN Smoke Sensor", "name": "iHORN Smoke Sensor",
"type": "ZSED", "type": "ZSED",
"ota": true, "ota": true,
"b_pid": 3081, "b_pid": 3081,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"0028", "zone_type":"0028",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "0402102B", "pid": "0402102B",
"name": "BD Gas Sensor", "name": "BD Gas Sensor",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3082, "b_pid": 3082,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"002B", "zone_type":"002B",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "04021028", "pid": "04021028",
"name": "BD Smoke Sensor", "name": "BD Smoke Sensor",
"type": "ZSED", "type": "ZSED",
"ota": true, "ota": true,
"b_pid": 3083, "b_pid": 3083,
"productType": "IASsensor", "productType": "IASsensor",
"eps": [ "eps": [
{ {
"ep":"1", "ep":"1",
"zid": "0402", "zid": "0402",
"zone_type":"0028", "zone_type":"0028",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0500" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "03020002", "pid": "03020002",
"name": "Environment Detection Panel", "name": "Environment Detection Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3084, "b_pid": 3084,
"productType": "Environmental", "productType": "Environmental",
"eps": [ "eps": [
{ {
"zid": "0302", "zid": "0302",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0400:0402:0405:040D:042A:042B" "server": "0000:0003:0400:0402:0405:040D:042A:042B"
} }
} }
] ]
}, },
{ {
"pid": "00068631", "pid": "00068631",
"name": "HD Wall switch 1G", "name": "HD Wall switch 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3085, "b_pid": 3085,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068632", "pid": "00068632",
"name": "HD Wall switch 2G", "name": "HD Wall switch 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3086, "b_pid": 3086,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068633", "pid": "00068633",
"name": "HD Wall switch 3G", "name": "HD Wall switch 3G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3087, "b_pid": 3087,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00038631", "pid": "00038631",
"name": "HD Curtain Panel 1G", "name": "HD Curtain Panel 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3088, "b_pid": 3088,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00038632", "pid": "00038632",
"name": "HD Curtain Panel 2G", "name": "HD Curtain Panel 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3089, "b_pid": 3089,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00048631", "pid": "00048631",
"name": "HD Scene Panel 4G", "name": "HD Scene Panel 4G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3090, "b_pid": 3090,
"productType": "scene", "productType": "scene",
"eps": [ "eps": [
{ {
"zid": "0004", "zid": "0004",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "01018631", "pid": "01018631",
"name": "HD Dimmable Light Panel 1G", "name": "HD Dimmable Light Panel 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3091, "b_pid": 3091,
"productType": "lightPanel", "productType": "lightPanel",
"eps": [ "eps": [
{ {
"zid": "0101", "zid": "0101",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0008:0B05" "server": "0000:0003:0004:0005:0006:0008:0B05"
} }
} }
] ]
}, },
{ {
"pid": "01018632", "pid": "01018632",
"name": "HD Dimmable Light Panel 2G", "name": "HD Dimmable Light Panel 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3092, "b_pid": 3092,
"productType": "lightPanel", "productType": "lightPanel",
"eps": [ "eps": [
{ {
"zid": "0101", "zid": "0101",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0008:0B05" "server": "0000:0003:0004:0005:0006:0008:0B05"
} }
} }
] ]
}, },
{ {
"pid": "01018633", "pid": "01018633",
"name": "HD Dimmable Light Panel 3G", "name": "HD Dimmable Light Panel 3G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3093, "b_pid": 3093,
"productType": "lightPanel", "productType": "lightPanel",
"eps": [ "eps": [
{ {
"zid": "0101", "zid": "0101",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0008:0B05" "server": "0000:0003:0004:0005:0006:0008:0B05"
} }
} }
] ]
}, },
{ {
"pid": "01010001", "pid": "01010001",
"name": "Dimmable Light Module 1G", "name": "Dimmable Light Module 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3094, "b_pid": 3094,
"productType": "lightPanel", "productType": "lightPanel",
"eps": [ "eps": [
{ {
"zid": "0101", "zid": "0101",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0008:0B05" "server": "0000:0003:0004:0005:0006:0008:0B05"
} }
} }
] ]
}, },
{ {
"pid": "03008611", "pid": "03008611",
"name": "HD HVAC Air condition All in one", "name": "HD HVAC Air condition All in one",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3095, "b_pid": 3095,
"productType": "airConditioning", "productType": "airConditioning",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201:0202" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "03008603", "pid": "03008603",
"name": "HD HVAC Floor Heating All in one", "name": "HD HVAC Floor Heating All in one",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3097, "b_pid": 3097,
"productType": "floorHeating", "productType": "floorHeating",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201:0202" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "03008601", "pid": "03008601",
"name": "HD HVAC Fan coil All in one", "name": "HD HVAC Fan coil All in one",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3098, "b_pid": 3098,
"productType": "fanCoil", "productType": "fanCoil",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201:0202" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "03008604", "pid": "03008604",
"name": "HD HVAC Fresh Air All in one", "name": "HD HVAC Fresh Air All in one",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3099, "b_pid": 3099,
"productType": "freshAir", "productType": "freshAir",
"eps": [ "eps": [
{ {
"zid": "0300", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0006", "client": "0003:0006",
"server": "0000:0003:0004:0005:0006:0201:0202" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "01018630", "pid": "00518630",
"name": "HD SCR Dimmable Light Panel", "name": "HD Plug Panel 10A",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3102, "b_pid": 3100,
"productType": "lightPanel", "productType": "outlet",
"eps": [ "eps": [
{ {
"zid": "0101", "zid": "0051",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0008:0B05" "server": "0000:0003:0004:0005:0006:0b04:0702"
} }
} }
] ]
}, },
{ {
"pid": "00060002", "pid": "01018630",
"name": "Offline Voice Panel", "name": "HD SCR Dimmable Light Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3104, "b_pid": 3102,
"productType": "voicePanel", "productType": "lightPanel",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0101",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006:0008:0B05"
} }
}, }
{ ]
"zid": "0004", },
{
"cluster": { "pid": "00060002",
"client": "0003:0019", "name": "Offline Voice Panel",
"server": "0000:0003:0004:0005:0006" "type": "ZR",
} "ota": true,
}, "b_pid": 3104,
{ "productType": "voicePanel",
"zid": "0007",
"eps": [
"cluster": { {
"client": "0003:0019", "zid": "0103",
"server": "0000:0003:0008"
} "cluster": {
} "client": "0003:0019",
] "server": "0000:0003:0004:0005:0006"
}, }
{ },
"pid": "04022028", {
"name": "KPL Smoke Sensor", "zid": "0004",
"type": "ZSED",
"ota": true, "cluster": {
"b_pid": 3105, "client": "0003:0019",
"productType": "IASsensor", "server": "0000:0003:0004:0005:0006"
}
"eps": [ },
{ {
"ep":"1", "zid": "0007",
"zid": "0402",
"zone_type":"0028", "cluster": {
"client": "0003:0019",
"cluster": { "server": "0000:0003:0008"
"client": "0003:0019", }
"server": "0000:0003:0500" }
} ]
} },
] {
}, "pid": "04022028",
{ "name": "KPL Smoke Sensor",
"pid": "0402202B", "type": "ZSED",
"name": "KPL Gas Sensor", "ota": true,
"type": "ZR", "b_pid": 3105,
"ota": true, "productType": "IASsensor",
"b_pid": 3106,
"productType": "IASsensor", "eps": [
{
"eps": [ "ep":"1",
{ "zid": "0402",
"ep":"1", "zone_type":"0028",
"zid": "0402",
"zone_type":"002B", "cluster": {
"client": "0003:0019",
"cluster": { "server": "0000:0003:0500"
"client": "0003:0019", }
"server": "0000:0003:0500" }
} ]
} },
] {
}, "pid": "0402202B",
{ "name": "KPL Gas Sensor",
"pid": "00020003", "type": "ZR",
"name": "BJ Water cut-off panel", "ota": true,
"type": "ZR", "b_pid": 3106,
"ota": true, "productType": "IASsensor",
"b_pid": 3108,
"productType": "waterValve", "eps": [
{
"eps": [ "ep":"1",
{ "zid": "0402",
"zid": "0002", "zone_type":"002B",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "00048612", "pid": "00020003",
"name": "XC Scene Panel 6G", "name": "BJ Water cut-off panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3110, "b_pid": 3108,
"productType": "scene", "productType": "waterValve",
"eps": [ "eps": [
{ {
"zid": "0004", "zid": "0002",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068634", "pid": "00048612",
"name": "HD Wall switch 4G", "name": "XC Scene Panel 6G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3115, "b_pid": 3110,
"productType":"switch", "productType": "scene",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0004",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "03020003", "pid": "00068634",
"name": "TQ Environment Detection", "name": "HD Wall switch 4G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3119, "b_pid": 3115,
"productType": "Environmental", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0302", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0400:0402:0405:040D:042A:042B" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "03020004", "pid": "00088626",
"name": "TQ Environment Detection Panel", "name": "XB Fresh Air Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3132, "b_pid": 3116,
"productType": "Environmental", "productType": "freshAir",
"eps": [ "eps": [
{ {
"zid": "0302", "zid": "0300",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0006",
"server": "0000:0003:0400:0402:0405:040D:042A:042B" "server": "0000:0003:0004:0005:0006:0201:0202"
} }
} }
] ]
}, },
{ {
"pid": "01000004", "pid": "03020003",
"name": "Four Lamp Control Module", "name": "TQ Environment Detection",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3138, "b_pid": 3119,
"productType":"switch", "productType": "Environmental",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0302",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0400:0402:0405:040D:042A:042B"
} }
} }
] ]
}, },
{
{ "pid": "04022115",
"pid": "00068651", "name": "XB SOS Button",
"name": "YH Wall switch 1G", "type": "ZSED",
"type": "ZR", "ota": false,
"ota": true, "b_pid": 3124,
"b_pid": 3142, "productType": "IASsensor",
"productType":"switch",
"eps": [
"eps": [ {
{ "zid": "0402",
"zid": "0103", "zone_type":"002C",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0500"
} }
} }
] ]
}, },
{ {
"pid": "00068652", "pid": "0006862A",
"name": "YH Wall switch 2G", "name": "XB Singal Fire Switch 1G",
"type": "ZR", "type": "ZED",
"ota": true, "ota": true,
"b_pid": 3143, "b_pid": 3129,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068653", "pid": "0006862B",
"name": "YH Wall switch 3G", "name": "XB Singal Fire Switch 2G",
"type": "ZR", "type": "ZED",
"ota": true, "ota": true,
"b_pid": 3144, "b_pid": 3130,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068654", "pid": "0006862C",
"name": "YH Wall switch 4G", "name": "XB Singal Fire Switch 3G",
"type": "ZR", "type": "ZED",
"ota": true, "ota": true,
"b_pid": 3145, "b_pid": 3131,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00048651", "pid": "03020004",
"name": "YH Scene Panel 4G", "name": "TQ Environment Detection Panel",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3146, "b_pid": 3132,
"productType": "scene", "productType": "Environmental",
"eps": [ "eps": [
{ {
"zid": "0004", "zid": "0302",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0400:0402:0405:040D:042A:042B"
} }
} }
] ]
}, },
{ {
"pid": "00038651", "pid": "01000004",
"name": "YH Curtain Panel 1G", "name": "Four Lamp Control Module",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3147, "b_pid": 3138,
"productType": "curtain", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00038652", "pid": "00068651",
"name": "YH Curtain Panel 2G", "name": "YH Wall switch 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3148, "b_pid": 3142,
"productType": "curtain", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068661", "pid": "00068652",
"name": "GN Wall switch 1G", "name": "YH Wall switch 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3149, "b_pid": 3143,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068662", "pid": "00068653",
"name": "GN Wall switch 2G", "name": "YH Wall switch 3G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3150, "b_pid": 3144,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068663", "pid": "00068654",
"name": "GN Wall switch 3G", "name": "YH Wall switch 4G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3151, "b_pid": 3145,
"productType":"switch", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00068664", "pid": "00048651",
"name": "GN Wall switch 4G", "name": "YH Scene Panel 4G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3152, "b_pid": 3146,
"productType":"switch", "productType": "scene",
"eps": [ "eps": [
{ {
"zid": "0103", "zid": "0004",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "00048661", "pid": "00038651",
"name": "GN Scene Panel 4G", "name": "YH Curtain Panel 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3153, "b_pid": 3147,
"productType": "scene", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0004", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00038661", "pid": "00038652",
"name": "GN Curtain Panel 1G", "name": "YH Curtain Panel 2G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3154, "b_pid": 3148,
"productType": "curtain", "productType": "curtain",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0203",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006:0102"
} }
} }
] ]
}, },
{ {
"pid": "00038662", "pid": "00068661",
"name": "GN Curtain Panel 2G", "name": "GN Wall switch 1G",
"type": "ZR", "type": "ZR",
"ota": true, "ota": true,
"b_pid": 3155, "b_pid": 3149,
"productType": "curtain", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "0203", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
}, },
{ {
"pid": "000A0002", "pid": "00068662",
"name": "YC Doorlock", "name": "GN Wall switch 2G",
"type": "ZSED", "type": "ZR",
"ota": false, "ota": true,
"b_pid": 4508, "b_pid": 3150,
"productType": "Doorlock", "productType":"switch",
"eps": [ "eps": [
{ {
"zid": "000A", "zid": "0103",
"cluster": { "cluster": {
"client": "0003:0019", "client": "0003:0019",
"server": "0000:0001:0003:0101:0B05" "server": "0000:0003:0004:0005:0006"
} }
} }
] ]
} },
] {
"pid": "00068663",
"name": "GN Wall switch 3G",
"type": "ZR",
"ota": true,
"b_pid": 3151,
"productType":"switch",
"eps": [
{
"zid": "0103",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006"
}
}
]
},
{
"pid": "00068664",
"name": "GN Wall switch 4G",
"type": "ZR",
"ota": true,
"b_pid": 3152,
"productType":"switch",
"eps": [
{
"zid": "0103",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006"
}
}
]
},
{
"pid": "00048661",
"name": "GN Scene Panel 4G",
"type": "ZR",
"ota": true,
"b_pid": 3153,
"productType": "scene",
"eps": [
{
"zid": "0004",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006"
}
}
]
},
{
"pid": "00038661",
"name": "GN Curtain Panel 1G",
"type": "ZR",
"ota": true,
"b_pid": 3154,
"productType": "curtain",
"eps": [
{
"zid": "0203",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid": "00038662",
"name": "GN Curtain Panel 2G",
"type": "ZR",
"ota": true,
"b_pid": 3155,
"productType": "curtain",
"eps": [
{
"zid": "0203",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid": "00068641",
"name": "MS Wall switch 1G",
"type": "ZR",
"ota": true,
"b_pid": 3156,
"productType":"switch",
"eps": [
{
"zid": "0103",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006"
}
}
]
},
{
"pid": "00068642",
"name": "MS Wall switch 2G",
"type": "ZR",
"ota": true,
"b_pid": 3157,
"productType":"switch",
"eps": [
{
"zid": "0103",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006"
}
}
]
},
{
"pid": "00068643",
"name": "MS Wall switch 3G",
"type": "ZR",
"ota": true,
"b_pid": 3158,
"productType":"switch",
"eps": [
{
"zid": "0103",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006"
}
}
]
},
{
"pid": "00048641",
"name": "MS Scene Panel 3G",
"type": "ZR",
"ota": true,
"b_pid": 3164,
"productType": "scene",
"eps": [
{
"zid": "0004",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006"
}
}
]
},
{
"pid": "00038641",
"name": "MS Curtain Panel 1G",
"type": "ZR",
"ota": true,
"b_pid": 3165,
"productType": "curtain",
"eps": [
{
"zid": "0203",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid": "00041002",
"name": "XB KeyBord Panel G3",
"type": "ZSED",
"ota": true,
"b_pid": 3185,
"productType": "scene",
"eps": [
{
"zid": "0004",
"cluster": {
"client": "0003:0019",
"server": "0000:0003:0004:0005:0006"
}
}
]
},
{
"pid": "000A0002",
"name": "YC Doorlock",
"type": "ZSED",
"ota": false,
"b_pid": 4508,
"productType": "Doorlock",
"eps": [
{
"zid": "000A",
"cluster": {
"client": "0003:0019",
"server": "0000:0001:0003:0101:0B05"
}
}
]
}
]
} }
\ No newline at end of file
...@@ -19,6 +19,13 @@ ...@@ -19,6 +19,13 @@
"channel":"1", "channel":"1",
"valueRange":[], "valueRange":[],
"value": 0 "value": 0
},{
"identifier":"ColorTemperature",
"opcodemap":"ADJUST_COLOUR_TEMPERATURE",
"dataType":"int",
"channel":"1",
"valueRange":[],
"value": 0
} }
], ],
"oldccu":[ "oldccu":[
...@@ -38,6 +45,14 @@ ...@@ -38,6 +45,14 @@
"valueRange":[], "valueRange":[],
"syn":"bri", "syn":"bri",
"synType":"int" "synType":"int"
},{
"opcode":"ADJUST_COLOUR_TEMPERATURE",
"identifiermap":"ColorTemperature",
"dataType":"int",
"channel":"1",
"valueRange":[],
"syn":"colour_temperature",
"synType":"int"
} }
] ]
......
...@@ -19,6 +19,13 @@ ...@@ -19,6 +19,13 @@
"channel":"1", "channel":"1",
"valueRange":[], "valueRange":[],
"value": 0 "value": 0
},{
"identifier":"ColorTemperature",
"opcodemap":"ADJUST_COLOUR_TEMPERATURE",
"dataType":"int",
"channel":"1",
"valueRange":[],
"value": 0
},{ },{
"identifier":"PowerSwitch", "identifier":"PowerSwitch",
"opcodemap":"SWITCH", "opcodemap":"SWITCH",
...@@ -33,6 +40,13 @@ ...@@ -33,6 +40,13 @@
"channel":"2", "channel":"2",
"valueRange":[], "valueRange":[],
"value": 0 "value": 0
},{
"identifier":"ColorTemperature",
"opcodemap":"ADJUST_COLOUR_TEMPERATURE",
"dataType":"int",
"channel":"2",
"valueRange":[],
"value": 0
} }
], ],
"oldccu":[ "oldccu":[
...@@ -52,6 +66,14 @@ ...@@ -52,6 +66,14 @@
"valueRange":[], "valueRange":[],
"syn":"bri", "syn":"bri",
"synType":"int" "synType":"int"
},{
"opcode":"ADJUST_COLOUR_TEMPERATURE",
"identifiermap":"ColorTemperature",
"dataType":"int",
"channel":"1",
"valueRange":[],
"syn":"colour_temperature",
"synType":"int"
},{ },{
"opcode":"SWITCH", "opcode":"SWITCH",
"identifiermap":"PowerSwitch", "identifiermap":"PowerSwitch",
...@@ -68,6 +90,14 @@ ...@@ -68,6 +90,14 @@
"valueRange":[], "valueRange":[],
"syn":"bri", "syn":"bri",
"synType":"int" "synType":"int"
},{
"opcode":"ADJUST_COLOUR_TEMPERATURE",
"identifiermap":"ColorTemperature",
"dataType":"int",
"channel":"2",
"valueRange":[],
"syn":"colour_temperature",
"synType":"int"
} }
] ]
......
{
"productCode":"3093",
"operateType":"512",
"channel":3,
"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
},{
"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
},{
"identifier":"PowerSwitch",
"opcodemap":"SWITCH",
"dataType":"int",
"channel":"3",
"valueRange":[0,1],
"value": 0
},{
"identifier":"Brightness",
"opcodemap":"ADJUST_LUMINANCE",
"dataType":"int",
"channel":"3",
"valueRange":[],
"value": 0
},{
"identifier":"ColorTemperature",
"opcodemap":"ADJUST_COLOUR_TEMPERATURE",
"dataType":"int",
"channel":"3",
"valueRange":[],
],
"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"
},{
"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"
},{
"opcode":"SWITCH",
"identifiermap":"PowerSwitch",
"dataType":"map",
"channel":"3",
"valueRange":["OFF","ON"],
"syn":"on",
"synType":"bool"
},{
"opcode":"ADJUST_LUMINANCE",
"identifiermap":"Brightness",
"dataType":"int",
"channel":"3",
"valueRange":[],
"syn":"bri",
"synType":"int"
},{
"opcode":"ADJUST_COLOUR_TEMPERATURE",
"identifiermap":"ColorTemperature",
"dataType":"int",
"channel":"3",
"valueRange":[],
"syn":"colour_temperature",
"synType":"int"
}
]
}
\ No newline at end of file
{
"productCode":"3129",
"operateType":"3",
"channel":1,
"newccu":[
{
"identifier":"PowerSwitch",
"opcodemap":"SWITCH",
"dataType":"int",
"channel":"1",
"valueRange":[0,1],
"value": 0
}
],
"oldccu":[
{
"opcode":"SWITCH",
"identifiermap":"PowerSwitch",
"dataType":"map",
"channel":"1",
"valueRange":["OFF","ON"]
}
]
}
\ No newline at end of file
{
"productCode":"3130",
"operateType":"3",
"channel":2,
"newccu":[
{
"identifier":"PowerSwitch",
"opcodemap":"SWITCH",
"dataType":"int",
"channel":"1",
"valueRange":[0,1],
"value": 0
},
{
"identifier":"PowerSwitch",
"opcodemap":"SWITCH",
"dataType":"int",
"channel":"2",
"valueRange":[0,1],
"value": 0
}
],
"oldccu":[
{
"opcode":"SWITCH",
"identifiermap":"PowerSwitch",
"dataType":"map",
"channel":"1",
"valueRange":["OFF","ON"]
},
{
"opcode":"SWITCH",
"identifiermap":"PowerSwitch",
"dataType":"map",
"channel":"2",
"valueRange":["OFF","ON"]
}
]
}
\ No newline at end of file
{
"productCode":"3131",
"operateType":"3",
"channel":3,
"newccu":[
{
"identifier":"PowerSwitch",
"opcodemap":"SWITCH",
"dataType":"int",
"channel":"1",
"valueRange":[0,1],
"value": 0
},
{
"identifier":"PowerSwitch",
"opcodemap":"SWITCH",
"dataType":"int",
"channel":"2",
"valueRange":[0,1],
"value": 0
},
{
"identifier":"PowerSwitch",
"opcodemap":"SWITCH",
"dataType":"int",
"channel":"3",
"valueRange":[0,1],
"value": 0
}
],
"oldccu":[
{
"opcode":"SWITCH",
"identifiermap":"PowerSwitch",
"dataType":"map",
"channel":"1",
"valueRange":["OFF","ON"]
},
{
"opcode":"SWITCH",
"identifiermap":"PowerSwitch",
"dataType":"map",
"channel":"2",
"valueRange":["OFF","ON"]
},
{
"opcode":"SWITCH",
"identifiermap":"PowerSwitch",
"dataType":"map",
"channel":"3",
"valueRange":["OFF","ON"]
}
]
}
\ No newline at end of file
{ {
"schema": "https://iot-ap.ikonke.com/model/product_3119.json", "schema": "https://iot-ap.ikonke.com/model/product_3119.json",
"productType": "sensor", "productType": "sensor",
"version": "1.0", "version": "1.1",
"profile": { "profile": {
"heartbeat": "300", "heartbeat": "300",
"productCode": "3119", "productCode": "3119",
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
} }
}, },
{ {
"identifier": "Carbondioxide", "identifier": "CO2",
"name": "CO2检测值", "name": "CO2检测值",
"dataType": { "dataType": {
"type": "int", "type": "int",
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
"type": "int", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "999", "max": "9999",
"unit": "ug/m3", "unit": "ug/m3",
"unitName": "微克每立方米", "unitName": "微克每立方米",
"step": "1" "step": "1"
...@@ -67,16 +67,30 @@ ...@@ -67,16 +67,30 @@
} }
}, },
{ {
"identifier": "Formaldehyde", "identifier": "HCHO",
"name": "当前甲醛检测值", "name": "甲醛检测值",
"dataType": { "dataType": {
"type": "double", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "1", "max": "9999",
"unit": "mg/m3", "unit": "ug/m3",
"unitName": "毫克每立方米", "unitName": "微克每立方米",
"step": "0.01" "step": "1"
}
}
},
{
"identifier": "Pollution",
"name": "TVOC检测值",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
} }
} }
} }
...@@ -85,9 +99,10 @@ ...@@ -85,9 +99,10 @@
"inputData": [ "inputData": [
"Temperature", "Temperature",
"Humidity", "Humidity",
"Carbondioxide", "CO2",
"PM2.5", "PM2.5",
"Formaldehyde" "HCHO",
"Pollution"
], ],
"method": "thing.service.property.get", "method": "thing.service.property.get",
"name": "get", "name": "get",
...@@ -130,7 +145,7 @@ ...@@ -130,7 +145,7 @@
} }
}, },
{ {
"identifier": "Carbondioxide", "identifier": "CO2",
"name": "CO2检测值", "name": "CO2检测值",
"accessMode": "r", "accessMode": "r",
"required": false, "required": false,
...@@ -154,7 +169,7 @@ ...@@ -154,7 +169,7 @@
"type": "int", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "999", "max": "9999",
"unit": "ug/m3", "unit": "ug/m3",
"unitName": "微克每立方米", "unitName": "微克每立方米",
"step": "1" "step": "1"
...@@ -162,18 +177,34 @@ ...@@ -162,18 +177,34 @@
} }
}, },
{ {
"identifier": "Formaldehyde", "identifier": "HCHO",
"name": "当前甲醛检测值", "name": "甲醛检测值",
"accessMode": "r", "accessMode": "r",
"required": false, "required": false,
"dataType": { "dataType": {
"type": "double", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "1", "max": "9999",
"unit": "mg/m3", "unit": "ug/m3",
"unitName": "毫克每立方米", "unitName": "微克每立方米",
"step": "0.01" "step": "1"
}
}
},
{
"identifier": "Pollution",
"name": "TVOC检测值",
"accessMode": "r",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
} }
} }
} }
...@@ -210,7 +241,7 @@ ...@@ -210,7 +241,7 @@
} }
}, },
{ {
"identifier": "Carbondioxide", "identifier": "CO2",
"name": "CO2检测值", "name": "CO2检测值",
"dataType": { "dataType": {
"type": "int", "type": "int",
...@@ -230,7 +261,7 @@ ...@@ -230,7 +261,7 @@
"type": "int", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "999", "max": "9999",
"unit": "ug/m3", "unit": "ug/m3",
"unitName": "微克每立方米", "unitName": "微克每立方米",
"step": "1" "step": "1"
...@@ -238,16 +269,30 @@ ...@@ -238,16 +269,30 @@
} }
}, },
{ {
"identifier": "Formaldehyde", "identifier": "HCHO",
"name": "当前甲醛检测值", "name": "甲醛检测值",
"dataType": { "dataType": {
"type": "double", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "1", "max": "9999",
"unit": "mg/m3", "unit": "mg/m3",
"unitName": "毫克每立方米", "unitName": "微克每立方米",
"step": "0.01" "step": "1"
}
}
},
{
"identifier": "Pollution",
"name": "TVOC检测值",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
} }
} }
} }
......
{
"schema":"https://iot-ap.ikonke.com/model/product_3129.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3129",
"productName":"肖邦系列.单火线单路灯控面板Z3S"
},
"services":[
{
"outputData":[
],
"identifier":"set",
"inputData":[
{
"identifier":"PowerSwitch",
"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":"get",
"inputData":[
"PowerSwitch"
],
"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
}
],
"events":[
{
"outputData":[
{
"identifier":"PowerSwitch",
"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_3130.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3130",
"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":"电源开关"
}
],
"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":"get",
"inputData":[
"PowerSwitch_1",
"PowerSwitch_2"
],
"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
}
],
"events":[
{
"outputData":[
{
"identifier":"PowerSwitch_1",
"dataType":{
"specs":{
"0":"关闭",
"1":"打开"
},
"type":"bool"
},
"name":"电源开关"
},
{
"identifier":"PowerSwitch_2",
"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_3131.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3131",
"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":"电源开关"
}
],
"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":"get",
"inputData":[
"PowerSwitch_1",
"PowerSwitch_2",
"PowerSwitch_3"
],
"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
}
],
"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":"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_3132.json", "schema": "https://iot-ap.ikonke.com/model/product_3132.json",
"productType": "sensor", "productType": "sensor",
"version": "1.0", "version": "1.1",
"profile": { "profile": {
"heartbeat": "300", "heartbeat": "300",
"productCode": "3132", "productCode": "3132",
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
} }
}, },
{ {
"identifier": "Carbondioxide", "identifier": "CO2",
"name": "CO2检测值", "name": "CO2检测值",
"dataType": { "dataType": {
"type": "int", "type": "int",
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
"type": "int", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "999", "max": "9999",
"unit": "ug/m3", "unit": "ug/m3",
"unitName": "微克每立方米", "unitName": "微克每立方米",
"step": "1" "step": "1"
...@@ -67,16 +67,30 @@ ...@@ -67,16 +67,30 @@
} }
}, },
{ {
"identifier": "Formaldehyde", "identifier": "HCHO",
"name": "当前甲醛检测值", "name": "甲醛检测值",
"dataType": { "dataType": {
"type": "double", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "1", "max": "9999",
"unit": "mg/m3", "unit": "mg/m3",
"unitName": "毫克每立方米", "unitName": "微克每立方米",
"step": "0.01" "step": "1"
}
}
},
{
"identifier": "Pollution",
"name": "TVOC检测值",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
} }
} }
} }
...@@ -85,9 +99,9 @@ ...@@ -85,9 +99,9 @@
"inputData": [ "inputData": [
"Temperature", "Temperature",
"Humidity", "Humidity",
"Carbondioxide", "CO2",
"PM2.5", "PM2.5",
"Formaldehyde" "HCHO"
], ],
"method": "thing.service.property.get", "method": "thing.service.property.get",
"name": "get", "name": "get",
...@@ -130,7 +144,7 @@ ...@@ -130,7 +144,7 @@
} }
}, },
{ {
"identifier": "Carbondioxide", "identifier": "CO2",
"name": "CO2检测值", "name": "CO2检测值",
"accessMode": "r", "accessMode": "r",
"required": false, "required": false,
...@@ -154,7 +168,7 @@ ...@@ -154,7 +168,7 @@
"type": "int", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "999", "max": "9999",
"unit": "ug/m3", "unit": "ug/m3",
"unitName": "微克每立方米", "unitName": "微克每立方米",
"step": "1" "step": "1"
...@@ -162,18 +176,34 @@ ...@@ -162,18 +176,34 @@
} }
}, },
{ {
"identifier": "Formaldehyde", "identifier": "HCHO",
"name": "当前甲醛检测值", "name": "甲醛检测值",
"accessMode": "r", "accessMode": "r",
"required": false, "required": false,
"dataType": { "dataType": {
"type": "double", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "1", "max": "9999",
"unit": "mg/m3", "unit": "ug/m3",
"unitName": "毫克每立方米", "unitName": "微克每立方米",
"step": "0.01" "step": "1"
}
}
},
{
"identifier": "Pollution",
"name": "TVOC检测值",
"accessMode": "r",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
} }
} }
} }
...@@ -210,7 +240,7 @@ ...@@ -210,7 +240,7 @@
} }
}, },
{ {
"identifier": "Carbondioxide", "identifier": "CO2",
"name": "CO2检测值", "name": "CO2检测值",
"dataType": { "dataType": {
"type": "int", "type": "int",
...@@ -230,7 +260,7 @@ ...@@ -230,7 +260,7 @@
"type": "int", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "999", "max": "9999",
"unit": "ug/m3", "unit": "ug/m3",
"unitName": "微克每立方米", "unitName": "微克每立方米",
"step": "1" "step": "1"
...@@ -238,16 +268,30 @@ ...@@ -238,16 +268,30 @@
} }
}, },
{ {
"identifier": "Formaldehyde", "identifier": "HCHO",
"name": "当前甲醛检测值", "name": "甲醛检测值",
"dataType": { "dataType": {
"type": "double", "type": "int",
"specs": { "specs": {
"min": "0", "min": "0",
"max": "1", "max": "9999",
"unit": "mg/m3", "unit": "ug/m3",
"unitName": "毫克每立方米", "unitName": "微克每立方米",
"step": "0.01" "step": "1"
}
}
},
{
"identifier": "Pollution",
"name": "TVOC检测值",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "9999",
"unit": "ug/m3",
"unitName": "微克每立方米",
"step": "1"
} }
} }
} }
......
{
"schema":"https://iot-ap.ikonke.com/model/product_3156.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3156",
"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_3157.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3157",
"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_3158.json",
"productType":"switch",
"version": "1.0",
"profile":{
"heartbeat":"300",
"productCode":"3158",
"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_3163.json",
"productType": "lightPanel",
"version": "1.0",
"profile": {
"heartbeat": "300",
"productCode": "3163",
"productName": "美思系列.零火线调光面板Z3S(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": "亮度"
}
],
"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": "get",
"inputData": [
"PowerSwitch",
"Brightness"
],
"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"
}
}
}
],
"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": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}
]
}
{
"schema": "https://iot-ap.ikonke.com/model/product_3164.json",
"productType": "scene",
"version": "1.0",
"profile": {
"heartbeat": "300",
"productCode": "3164",
"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_3185.json",
"productType": "scene",
"version": "1.0",
"profile": {
"heartbeat": "1200",
"productCode": "3185",
"productName": "肖邦系列.单火线双控快捷面板(KONKE)"
},
"services": [
],
"properties": [
],
"events": [
{
"outputData": [
{
"identifier": "SceneNum",
"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": "场景触发上报"
}
]
}
1.3.4 1.1.4
\ No newline at end of file \ No newline at end of file
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