Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈伟灿
k-sdk
Commits
a9b31f46
Commit
a9b31f46
authored
Dec 28, 2021
by
chen.weican
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改内容】修改相关BUG
【提交人】陈伟灿
parent
db4d645b
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
2998 additions
and
5703 deletions
+2998
-5703
VERSION
VERSION
+1
-1
application/kcloud/kcloud_config.h
application/kcloud/kcloud_config.h
+1
-0
application/kcloud/kcloud_data_handle.c
application/kcloud/kcloud_data_handle.c
+49
-0
application/klansdk/kk_findccu_handle.c
application/klansdk/kk_findccu_handle.c
+2
-4
common/hal/HAL_OS_linux.c
common/hal/HAL_OS_linux.c
+4
-3
midware/midware/area/kk_area_handle.c
midware/midware/area/kk_area_handle.c
+6
-9
midware/midware/dm/kk_dm_api.c
midware/midware/dm/kk_dm_api.c
+8
-0
midware/midware/dm/kk_dm_mng.c
midware/midware/dm/kk_dm_mng.c
+66
-35
midware/midware/dm/kk_dm_mng.h
midware/midware/dm/kk_dm_mng.h
+3
-1
midware/midware/dm/kk_dm_msg.c
midware/midware/dm/kk_dm_msg.c
+34
-1
midware/midware/dm/kk_dm_msg.h
midware/midware/dm/kk_dm_msg.h
+3
-0
midware/midware/dm/kk_dm_queue.c
midware/midware/dm/kk_dm_queue.c
+0
-3
midware/midware/dm/kk_linkkit.c
midware/midware/dm/kk_linkkit.c
+12
-8
midware/midware/dm/kk_sub_db.c
midware/midware/dm/kk_sub_db.c
+1
-3
midware/midware/midware.c
midware/midware/midware.c
+38
-189
midware/midware/scene/kk_scene_handle.c
midware/midware/scene/kk_scene_handle.c
+12
-2
midware/tsl/tsl_handle/kk_tsl_common.h
midware/tsl/tsl_handle/kk_tsl_common.h
+5
-5
midware/tsl/tsl_handle/kk_tsl_load.c
midware/tsl/tsl_handle/kk_tsl_load.c
+4
-3
nx5_soc_gw/kk_device_def.json
nx5_soc_gw/kk_device_def.json
+2749
-2754
tsl/ccu_12.json
tsl/ccu_12.json
+0
-548
tsl/ccu_12_scene.json
tsl/ccu_12_scene.json
+0
-793
tsl/ccu_15.json
tsl/ccu_15.json
+0
-548
tsl/ccu_15_scene.json
tsl/ccu_15_scene.json
+0
-793
No files found.
VERSION
View file @
a9b31f46
1.3.0
\ No newline at end of file
1.4.1
\ No newline at end of file
application/kcloud/kcloud_config.h
View file @
a9b31f46
...
...
@@ -25,5 +25,6 @@ int KK_Get_ccuid( char *device_code);
int
kk_check_config_file
(
char
*
path
,
char
**
config
);
int
kk_cloud_get_pid
(
char
*
productId
);
int
kk_cloud_get_key
(
char
*
key
);
int
KK_Send_CloudHB2Mid
(
int
state
);
#endif
application/kcloud/kcloud_data_handle.c
View file @
a9b31f46
...
...
@@ -42,6 +42,8 @@
#define KK_CLOUDSTATE_MSG "/thing/ccu/cloudstate"
#define KK_CLOUDSTATE_MSG_REPLY "/thing/ccu/cloudstate_reply"
#define KK_CLOUDHB_MSG "/thing/ccu/cloudHB"
#define KK_CLOUDHB_MSG_REPLY "/thing/ccu/cloudHB_reply"
#define KK_TOPO_CHANGE_MSG_STR "/thing/topo/change"
#define KK_FILTER_SERVICE_CALL_TOPIC "/thing/service/"
#define KK_FILTER_SERVICE_CALL_REPLY "_reply"
...
...
@@ -291,6 +293,11 @@ int _kk_sendto_cloud(cJSON *root)
free
(
topic
);
return
RETURN_SUCCESS
;
}
else
if
(
strstr
(
msgTypeStr
->
valuestring
,
KK_CLOUDHB_MSG
)
!=
NULL
){
KK_Send_CloudHB2Mid
(
1
);
free
(
topic
);
return
RETURN_SUCCESS
;
}
//if(kk_check_need_split(info)){
//kk_split_send_data(pData,topic);
//}
...
...
@@ -630,6 +637,48 @@ int KK_Send_CloudState(int state)
free
(
out
);
return
RETURN_SUCCESS
;
}
const
char
DM_MSG_CLOUDHB
[]
=
"{
\"
msgId
\"
:
\"
1
\"
,
\"
version
\"
:
\"
1.0
\"
,
\"
params
\"
:{
\"
heartbeat
\"
:
\"
%d
\"
},
\"
method
\"
:
\"
thing.ccu.cloudHB_reply
\"
}"
;
int
KK_Send_CloudHB2Mid
(
int
state
)
{
char
*
infoStr
=
NULL
;
char
*
payloadStr
=
NULL
;
int
infoStr_len
=
0
;
int
payloadStr_len
=
0
;
cJSON
*
root
;
char
*
out
;
infoStr_len
=
strlen
(
DM_MSG_TO_MIDDWARE
)
+
strlen
(
KK_CLOUDHB_MSG_REPLY
)
+
10
;
infoStr
=
malloc
(
infoStr_len
);
if
(
infoStr
==
NULL
){
ERROR_PRINT
(
"infoStr == NULL
\n
"
);
return
RETURN_FAIL
;
}
memset
(
infoStr
,
0x0
,
infoStr_len
);
snprintf
(
infoStr
,
infoStr_len
,
DM_MSG_TO_MIDDWARE
,
KK_CLOUDHB_MSG_REPLY
,
""
,
""
);
payloadStr_len
=
strlen
(
DM_MSG_CLOUDHB
)
+
10
;
payloadStr
=
malloc
(
payloadStr_len
);
if
(
payloadStr
==
NULL
){
ERROR_PRINT
(
"payloadStr == NULL
\n
"
);
return
RETURN_FAIL
;
}
memset
(
payloadStr
,
0x0
,
payloadStr_len
);
snprintf
(
payloadStr
,
payloadStr_len
,
DM_MSG_CLOUDHB
,
state
);
root
=
cJSON_CreateObject
();
cJSON
*
infoObj
=
cJSON_Parse
(
infoStr
);
cJSON
*
payloadObj
=
cJSON_Parse
(
payloadStr
);
cJSON_AddItemToObject
(
root
,
MSG_INFO_STR
,
infoObj
);
cJSON_AddItemToObject
(
root
,
MSG_PAYLOAD_STR
,
payloadObj
);
out
=
cJSON_Print
(
root
);
kk_ipc_send
(
IPC_APP2MID
,
out
,
strlen
(
out
)
+
1
);
cJSON_Delete
(
root
);
free
(
payloadStr
);
free
(
infoStr
);
INFO_PRINT
(
"%s
\n
"
,
out
);
free
(
out
);
return
RETURN_SUCCESS
;
}
/************************************************************
*功能描述:发送数据给Midware
*输入参数: topic:主题;
...
...
application/klansdk/kk_findccu_handle.c
View file @
a9b31f46
...
...
@@ -36,13 +36,11 @@ static int kk_findccu_ack(int sockfd,struct sockaddr_in *addr){
cJSON_AddItemToObject
(
json
,
"arg"
,
args
);
#ifdef CONFIG_A133_PLATFORM
cJSON_AddStringToObject
(
args
,
"zkid"
,
ccuid
);
cJSON_AddStringToObject
(
args
,
"zk"
,
KK_CCU_NAME
);
HAL_Get_IP
(
s_IP
,
"eth0"
);
#else
cJSON_AddStringToObject
(
args
,
"zkid"
,
&
ccuid
[
4
]);
cJSON_AddStringToObject
(
args
,
"zk"
,
KK_CCU_NAME
);
HAL_Get_IP
(
s_IP
,
NULL
);
#endif
cJSON_AddStringToObject
(
args
,
"zk"
,
KK_CCU_NAME
);
HAL_Get_IP
(
s_IP
,
NULL
);
cJSON_AddStringToObject
(
args
,
"ip"
,
s_IP
);
cJSON_AddBoolToObject
(
args
,
"ssl"
,
FALSE
);
}
...
...
common/hal/HAL_OS_linux.c
View file @
a9b31f46
...
...
@@ -483,7 +483,6 @@ void HAL_Reboot(void)
#define ROUTER_INFO_PATH "/proc/net/route"
#define ROUTER_RECORD_SIZE 256
static
char
*
_get_default_routing_ifname
(
char
*
ifname
,
int
ifname_size
)
{
FILE
*
fp
=
NULL
;
...
...
@@ -513,9 +512,11 @@ static char *_get_default_routing_ifname(char *ifname, int ifname_size)
perror
(
"sscanf"
);
continue
;
}
/*default route */
if
((
destination
==
0
)
&&
(
mask
==
0
))
{
#ifndef CONFIG_A133_PLATFORM
if
((
destination
==
0
)
&&
(
mask
==
0
))
#endif
{
strncpy
(
ifname
,
iface
,
ifname_size
-
1
);
result
=
ifname
;
break
;
...
...
midware/midware/area/kk_area_handle.c
View file @
a9b31f46
...
...
@@ -243,12 +243,12 @@ int kk_get_floorname_by_id(const char *floorid,char *floorname,int len)
//INFO_PRINT("total_column = %d\n", sqlite3_column_count(stmt));
while
(
sqlite3_step
(
stmt
)
==
SQLITE_ROW
){
pFloorname
=
(
char
*
)
sqlite3_column_text
(
stmt
,
DB_FLOOR_NAME
);
}
if
(
pFloorname
!=
NULL
&&
strlen
(
pFloorname
)
>
0
){
tlen
=
strlen
(
pFloorname
)
>
len
?
len
:
strlen
(
pFloorname
);
strncpy
(
floorname
,
pFloorname
,
tlen
);
}
else
{
strcpy
(
floorname
,
""
);
if
(
pFloorname
!=
NULL
&&
strlen
(
pFloorname
)
>
0
){
tlen
=
strlen
(
pFloorname
)
>
len
?
len
:
strlen
(
pFloorname
);
memcpy
(
floorname
,
pFloorname
,
strlen
(
pFloorname
)
);
}
else
{
memcpy
(
floorname
,
""
,
len
);
}
}
sqlite3_finalize
(
stmt
);
sqlite3_free
(
sqlCmd
);
...
...
@@ -330,8 +330,6 @@ int kk_room_set_floor_info(const char*floorId,const char* floorName,const char *
int
rc
=
0
;
char
*
zErrMsg
=
0
;
kk_area_ctx_t
*
ctx
=
_kk_area_get_ctx
();
_kk_area_lock
();
if
(
strcmp
(
floorName
,
""
)
==
0
){
char
floorNameBuf
[
128
]
=
{
0
};
kk_get_floorname_by_id
(
floorId
,
floorNameBuf
,
sizeof
(
floorNameBuf
));
...
...
@@ -347,7 +345,6 @@ int kk_room_set_floor_info(const char*floorId,const char* floorName,const char *
INFO_PRINT
(
"Table updata data successfully
\n
"
);
}
sqlite3_free
(
sqlCmd
);
_kk_area_unlock
();
return
SUCCESS_RETURN
;
}
int
kk_set_floor_to_default
(
const
char
*
floorId
)
...
...
midware/midware/dm/kk_dm_api.c
View file @
a9b31f46
...
...
@@ -116,7 +116,15 @@ int iotx_dm_ccu_cloud_check(void)
_dm_api_unlock
();
return
res
;
}
int
iotx_dm_ccu_cloudHB_check
(
void
)
{
int
res
=
0
;
_dm_api_lock
();
res
=
dm_mgr_ccu_heartbeat_cloud
(
0
);
_dm_api_unlock
();
return
res
;
}
int
iotx_dm_dev_online
(
_IN_
int
devid
)
{
int
res
=
0
;
...
...
midware/midware/dm/kk_dm_mng.c
View file @
a9b31f46
...
...
@@ -140,12 +140,12 @@ static int _dm_init_tsl_params(kk_tsl_t * dev_shadow,char *deviceCode)
}
/*******set MAC*************/
HAL_Get_mac
(
s_mac
);
res
=
kk_tsl_set_value
(
kk_tsl_set_property_value
,
dev_shadow
,
KK_TSL_GATAWAY_MAC_IDENTIFIER
,
NULL
,
s_mac
);
if
(
res
!=
SUCCESS_RETURN
)
{
ERROR_PRINT
(
"[%s][%d] res:%d
\n
"
,
__FUNCTION__
,
__LINE__
,
res
);
}
//
HAL_Get_mac(s_mac);
//
res = kk_tsl_set_value(kk_tsl_set_property_value,dev_shadow,KK_TSL_GATAWAY_MAC_IDENTIFIER,NULL,s_mac);
//
if(res != SUCCESS_RETURN)
//
{
//
ERROR_PRINT("[%s][%d] res:%d\n",__FUNCTION__,__LINE__,res);
//
}
int
wanState
=
0
;
res
=
kk_tsl_set_value
(
kk_tsl_set_property_value
,
dev_shadow
,
KK_TSL_CCU_WANSTATE_IDENTIFIER
,
&
wanState
,
NULL
);
...
...
@@ -161,12 +161,12 @@ static int _dm_init_tsl_params(kk_tsl_t * dev_shadow,char *deviceCode)
ERROR_PRINT
(
"[%s][%d] res:%d
\n
"
,
__FUNCTION__
,
__LINE__
,
res
);
}
/*******set sn*************/
HAL_Get_SN
(
s_SN
);
res
=
kk_tsl_set_value
(
kk_tsl_set_property_value
,
dev_shadow
,
KK_TSL_GATAWAY_SN_IDENTIFIER
,
NULL
,
s_SN
);
if
(
res
!=
SUCCESS_RETURN
)
{
ERROR_PRINT
(
"[%s][%d] res:%d
\n
"
,
__FUNCTION__
,
__LINE__
,
res
);
}
//
HAL_Get_SN(s_SN);
//
res = kk_tsl_set_value(kk_tsl_set_property_value,dev_shadow,KK_TSL_GATAWAY_SN_IDENTIFIER,NULL,s_SN);
//
if(res != SUCCESS_RETURN)
//
{
//
ERROR_PRINT("[%s][%d] res:%d\n",__FUNCTION__,__LINE__,res);
//
}
char
currentValue
[
16
]
=
{
0
};
kk_property_db_get_value
(
deviceCode
,
KK_TSL_CCU_ARMINGSTATE_IDENTIFIER
,
currentValue
);
if
(
strlen
(
currentValue
)
==
0
){
...
...
@@ -257,6 +257,9 @@ int dm_mgr_device_create(_IN_ int dev_type,_IN_ char productCode[PRODUCT_CODE_MA
if
(
devid
)
{
*
devid
=
node
->
devid
;
}
if
(
mac
!=
NULL
)
{
memcpy
(
node
->
mac
,
mac
,
strlen
(
mac
));
}
return
TSL_ALREADY_EXIST
;
}
...
...
@@ -447,7 +450,6 @@ int dm_mgr_update_timestamp_by_devicecode(_IN_ char deviceCode[DEVICE_CODE_MAXLE
{
dm_mgr_ctx
*
ctx
=
_dm_mgr_get_ctx
();
dm_mgr_dev_node_t
*
search_node
=
NULL
;
_dm_mgr_mutex_lock
();
list_for_each_entry
(
search_node
,
&
ctx
->
dev_list
,
linked_list
,
dm_mgr_dev_node_t
)
{
if
((
strlen
(
search_node
->
deviceCode
)
==
strlen
(
deviceCode
))
&&
...
...
@@ -594,26 +596,7 @@ static void _dm_mgr_destroy_devlist(void)
free
(
del_node
);
}
}
char
s_pid
[
PRODUCT_CODE_LEN
]
=
{
0
};
static
int
kk_pid_init
(
void
)
{
char
pid
[
PRODUCT_CODE_LEN
]
=
{
0
};
int
pid_len
=
0
;
HAL_Execel_cmd
(
GET_PRODUCTID_CMD
,(
char
*
)
pid
,
sizeof
(
pid
),
&
pid_len
);
if
(
pid_len
>
0
&&
pid_len
<=
PRODUCT_CODE_LEN
){
memcpy
(
s_pid
,
pid
,
pid_len
-
1
);
INFO_PRINT
(
"s_pid:%s
\n
"
,
s_pid
);
}
else
{
return
-
1
;
}
return
0
;
}
int
kk_get_pid
(
char
*
productId
)
{
strncpy
(
productId
,
s_pid
,
strlen
(
s_pid
));
printf
(
"kk_get_pid:%s
\n
"
,
s_pid
);
return
strlen
(
s_pid
);
}
extern
char
*
kk_sync_get_info
();
int
dm_mgr_init
(
void
)
{
...
...
@@ -624,7 +607,6 @@ int dm_mgr_init(void)
char
pid
[
32
]
=
{
0
};
int
devId
=
0
,
heartbeat
=
0
;
memset
(
ctx
,
0
,
sizeof
(
dm_mgr_ctx
));
/* Create Mutex */
ctx
->
mutex
=
kk_MutexCreate
();
if
(
ctx
->
mutex
==
NULL
)
{
...
...
@@ -634,7 +616,6 @@ int dm_mgr_init(void)
ctx
->
global_devid
=
1
;
kk_property_db_init
();
HAL_Get_ccuid
(
ccuid
);
kk_pid_init
();
kk_get_pid
(
pid
);
/* Init Device List */
INIT_LIST_HEAD
(
&
ctx
->
dev_list
);
...
...
@@ -1303,7 +1284,57 @@ int dm_mgr_upstream_thing_list_found(_IN_ int devid)
return
res
;
}
const
char
DM_URI_HB_CLOUD
[]
=
"/thing/ccu/cloudHB"
;
int
dm_mgr_ccu_heartbeat_cloud
(
_IN_
int
devid
)
{
int
res
=
0
;
dm_mgr_dev_node_t
*
node
=
NULL
;
//dm_mgr_dev_node_t *gw_node = NULL;
dm_msg_request_t
request
;
char
msgId
[
MSG_MAX_LEN
]
=
{
0
};
if
(
devid
<
0
)
{
return
INVALID_PARAMETER
;
}
memset
(
&
request
,
0
,
sizeof
(
dm_msg_request_t
));
res
=
dm_mgr_search_dev_by_devid
(
devid
,
&
node
);
if
(
res
!=
SUCCESS_RETURN
)
{
return
FAIL_RETURN
;
}
memcpy
(
request
.
productCode
,
node
->
productCode
,
strlen
(
node
->
productCode
));
memcpy
(
request
.
deviceCode
,
node
->
deviceCode
,
strlen
(
node
->
deviceCode
));
request
.
msgTypeStr
=
(
char
*
)
DM_URI_HB_CLOUD
;
/* Get Params And Method */
res
=
dm_msg_heartbeat_cloud
(
node
->
productCode
,
node
->
deviceCode
,
&
request
);
if
(
res
!=
SUCCESS_RETURN
)
{
return
FAIL_RETURN
;
}
/* Get Msg ID */
iotx_report_id
(
msgId
);
//sprintf(msgId,"%d",iotx_report_id());
memcpy
(
request
.
msgid
,
msgId
,
strlen
(
msgId
));
/* Get Dev ID */
request
.
devid
=
devid
;
/* Callback */
//request.callback = dm_client_combine_login_reply;
/* Send Message To Cloud */
res
=
dm_msg_request
(
&
request
,
0
);
free
(
request
.
params
);
return
res
;
}
const
char
DM_URI_STATUS_CLOUD
[]
=
"/thing/ccu/cloudstate"
;
int
dm_mgr_ccu_status_cloud
(
_IN_
int
devid
)
{
...
...
midware/midware/dm/kk_dm_mng.h
View file @
a9b31f46
...
...
@@ -124,5 +124,7 @@ int dm_mgr_subdev_delete(_IN_ char deviceCode[DEVICE_CODE_MAXLEN]);
int
dm_msg_thing_property_post_all
(
char
*
deviceCode
);
int
dm_mgr_get_gw_deviceCode
(
_OU_
dm_mgr_dev_node_t
**
node
);
void
dm_mgr_resubscribe
(
void
);
int
kk_get_pid
(
char
*
productId
);
int
kk_get_pid
(
char
*
productId
);
int
dm_mgr_ccu_heartbeat_cloud
(
_IN_
int
devid
);
#endif
midware/midware/dm/kk_dm_msg.c
View file @
a9b31f46
...
...
@@ -13,6 +13,7 @@ const char DM_MSG_INFO[] DM_READ_ONLY = "{\"msgtype\":\"%s\",\"productCode\":\"%
extern
void
kk_sendData2gw
(
void
*
data
,
int
len
,
char
*
chalMark
);
void
kk_sendData2app
(
void
*
info
,
void
*
payload
,
int
isAsync
){
void
*
buf
=
NULL
;
int
res
=
0
;
cJSON
*
root
=
cJSON_CreateObject
();
cJSON
*
infoObj
=
cJSON_Parse
(
info
);
cJSON
*
payloadObj
=
cJSON_Parse
(
payload
);
...
...
@@ -24,7 +25,7 @@ void kk_sendData2app(void *info, void *payload,int isAsync){
dm_queue_msg_insert4
(
buf
);
}
else
{
kk_ipc_send
(
IPC_MID2APP
,
buf
,
strlen
(
buf
)
+
1
);
res
=
kk_ipc_send
(
IPC_MID2APP
,
buf
,
strlen
(
buf
)
+
1
);
free
(
buf
);
}
cJSON_Delete
(
root
);
...
...
@@ -260,7 +261,39 @@ int dm_msg_thing_topo_delete(_IN_ char deviceCode[DEVICE_CODE_MAXLEN],_OU_ dm_ms
return
SUCCESS_RETURN
;
}
const
char
DM_MSG_HB_CLOUD_METHOD
[]
DM_READ_ONLY
=
"thing.ccu.cloudHB"
;
const
char
DM_MSG_HB_CLOUD
[]
DM_READ_ONLY
=
"{
\"
deviceCode
\"
:
\"
%s
\"
}"
;
int
dm_msg_heartbeat_cloud
(
_IN_
char
productCode
[
PRODUCT_CODE_MAXLEN
],
_IN_
char
deviceCode
[
DEVICE_CODE_MAXLEN
],
_OU_
dm_msg_request_t
*
request
)
{
char
*
params
=
NULL
;
int
params_len
=
0
;
if
(
request
==
NULL
||
deviceCode
==
NULL
||
productCode
==
NULL
||
(
strlen
(
deviceCode
)
>=
DEVICE_CODE_MAXLEN
)
||
(
strlen
(
productCode
)
>=
PRODUCT_CODE_MAXLEN
)
||
(
strlen
(
request
->
deviceCode
)
>=
DEVICE_CODE_MAXLEN
))
{
return
INVALID_PARAMETER
;
}
/* Params */
request
->
method
=
(
char
*
)
DM_MSG_HB_CLOUD_METHOD
;
params_len
=
strlen
(
DM_MSG_HB_CLOUD
)
+
strlen
(
deviceCode
)
+
1
;
params
=
malloc
(
params_len
);
if
(
params
==
NULL
)
{
return
DM_MEMORY_NOT_ENOUGH
;
}
memset
(
params
,
0
,
params_len
);
HAL_Snprintf
(
params
,
params_len
,
DM_MSG_HB_CLOUD
,
deviceCode
);
request
->
params
=
params
;
request
->
params_len
=
strlen
(
request
->
params
);
return
SUCCESS_RETURN
;
}
const
char
DM_MSG_STATUS_CLOUD_METHOD
[]
DM_READ_ONLY
=
"thing.ccu.cloudstate"
;
const
char
DM_MSG_STATUS_CLOUD
[]
DM_READ_ONLY
=
"{
\"
deviceCode
\"
:
\"
%s
\"
}"
;
...
...
midware/midware/dm/kk_dm_msg.h
View file @
a9b31f46
...
...
@@ -52,6 +52,7 @@ typedef struct {
#define KK_THING_SERVICE_PROPERTY_GET_REPLY "/thing/service/property/get_reply"
#define KK_THING_OTA_DEVICE_UPGRADE "/thing/service/upgrade"
#define KK_THING_CLOUDSTATE_MSG "/thing/ccu/cloudstate_reply"
#define KK_THING_CLOUDHB_MSG "/thing/ccu/cloudHB_reply"
#define KK_THING_TOPO_ADD_MSG "/thing/topo/add"
#define KK_THING_TOPO_BATCH_ADD_MSG "/thing/topo/batch_add"
#define KK_THING_PROPERTY_POST "property/post"
...
...
@@ -185,6 +186,8 @@ int dm_msg_thing_syncinfopush_reply(void);
void
kk_split
(
char
*
src
,
const
char
*
separator
,
char
**
dest
,
int
*
num
);
int
kk_msg_cloud_status_notify
(
char
*
deviceCode
,
const
char
*
productCode
);
int
dm_msg_thing_syncdeviceinfo_reply
(
cJSON
*
msgId
);
int
dm_msg_heartbeat_cloud
(
_IN_
char
productCode
[
PRODUCT_CODE_MAXLEN
],
_IN_
char
deviceCode
[
DEVICE_CODE_MAXLEN
],
_OU_
dm_msg_request_t
*
request
);
//const char DM_URI_SYS_PREFIX[] DM_READ_ONLY = "/sys/%s/%s/";
...
...
midware/midware/dm/kk_dm_queue.c
View file @
a9b31f46
...
...
@@ -219,7 +219,6 @@ int dm_queue_msg_insert(void *data)
if
(
data
==
NULL
)
{
return
INVALID_PARAMETER
;
}
_dm_queue_lock
();
if
(
ctx
->
msg_list
.
size
>=
ctx
->
msg_list
.
max_size
)
{
printf
(
"dm queue list full"
);
...
...
@@ -251,9 +250,7 @@ int dm_queue_msg_next(void **data)
if
(
data
==
NULL
||
*
data
!=
NULL
)
{
return
INVALID_PARAMETER
;
}
_dm_queue_lock
();
if
(
list_empty
(
&
ctx
->
msg_list
.
message_list
))
{
_dm_queue_unlock
();
return
FAIL_RETURN
;
...
...
midware/midware/dm/kk_linkkit.c
View file @
a9b31f46
...
...
@@ -283,7 +283,6 @@ static void _iotx_linkkit_upstream_callback_remove(int msgid, int code)
#endif
static
int
s_CloudStatus
=
0
;
static
int
s_CloudStatusRecv
=
0
;
/************************************************************
*功能描述:获取连云状态
*输入参数:无
...
...
@@ -563,7 +562,7 @@ static int kk_service_updateRoom_handle(const char *deviceCode, cJSON *params,cJ
if
(
floorId
==
NULL
){
kk_service_addRoom_reply
(
inforoot
,
msgid
,
roomIdStr
->
valuestring
,
1
);
}
else
{
kk_room_set_floor_info
(
floorId
->
valuestring
,
roomIdStr
->
valuestring
,
roomIdStr
->
valuestring
);
kk_room_set_floor_info
(
floorId
->
valuestring
,
""
,
roomIdStr
->
valuestring
);
kk_service_common_reply
(
inforoot
,
msgid
,
KK_THING_SERVICE_UPDATEROOM_REPLY
);
}
//INFO_PRINT(" update room 111!!!\n");
...
...
@@ -867,7 +866,7 @@ static int kk_service_setFloor_handle(cJSON *params)
if
(
roomid
==
NULL
){
return
INVALID_PARAMETER
;
}
kk_room_set_floor_info
(
floorId
->
valuestring
,
name
->
valuestring
,
roomid
->
valuestring
);
kk_room_set_floor_info
(
floorId
->
valuestring
,
""
,
roomid
->
valuestring
);
itemroom
=
itemroom
->
next
;
}
item
=
item
->
next
;
...
...
@@ -1916,13 +1915,15 @@ static void _iotx_linkkit_event_callback(iotx_dm_event_types_t type, char *data)
}
kk_service_arming_set
(
state
->
valuestring
);
}
}
else
if
(
strstr
(
typeJson
->
valuestring
,
KK_THING_CLOUDSTATE_MSG
)){
}
else
if
(
strstr
(
typeJson
->
valuestring
,
KK_THING_CLOUDSTATE_MSG
)){
INFO_PRINT
(
"cloud state notify
\n
"
);
char
ccuid
[
32
]
=
{
0
};
static
time_t
s_last_notify_time
=
0
;
s_CloudStatusRecv
=
1
;
cJSON
*
paramStr
=
cJSON_GetObjectItem
(
payload
,
MSG_PARAMS_STR
);
cJSON
*
state
=
cJSON_GetObjectItem
(
paramStr
,
MSG_IOTClOUDSTATE_STR
);
s_CloudStatus
=
atoi
(
state
->
valuestring
);
dm_mgr_dev_node_t
*
node
=
NULL
;
dm_mgr_search_dev_by_devid
(
KK_DM_DEVICE_CCU_DEVICEID
,
&
node
);
...
...
@@ -1939,8 +1940,11 @@ static void _iotx_linkkit_event_callback(iotx_dm_event_types_t type, char *data)
}
HAL_Get_ccuid
(
ccuid
);
kk_property_db_update
(
ccuid
);
if
(
s_CloudStatus
!=
atoi
(
state
->
valuestring
)
&&
atoi
(
state
->
valuestring
)
==
1
){
if
(
s_CloudStatus
==
1
){
if
((
HAL_Uptimes
()
-
s_last_notify_time
<=
60
&&
s_last_notify_time
!=
0
)){
ERROR_PRINT
(
"[%s][%d] ignore this notify
\n
"
,
__FUNCTION__
,
__LINE__
);
goto
directReturn
;
}
node
->
isOffline
=
KK_DEV_ONLINE
;
dm_mgr_upstream_thing_sub_register
(
KK_DM_DEVICE_CCU_DEVICEID
);
iotx_dm_dev_online
(
KK_DM_DEVICE_CCU_DEVICEID
);
//first online,report the online status
...
...
@@ -1948,8 +1952,8 @@ static void _iotx_linkkit_event_callback(iotx_dm_event_types_t type, char *data)
kk_subDev_check_auth
(
KK_DM_DEVICE_GATEWAY
);
dm_msg_ccu_property_post
(
node
);
dm_mgr_resubscribe
();
s_last_notify_time
=
HAL_Uptimes
();
}
s_CloudStatus
=
atoi
(
state
->
valuestring
);
}
else
if
(
strcmp
(
typeJson
->
valuestring
,
"/upgrade"
)
==
0
){
INFO_PRINT
(
"ota upgrade...
\n
"
);
char
tmp
[
256
]
=
{
0
};
...
...
midware/midware/dm/kk_sub_db.c
View file @
a9b31f46
...
...
@@ -686,7 +686,6 @@ int kk_subDev_set_action_by_productType(const char *productType,const char *room
int
size
=
0
;
char
*
pStart
=
NULL
;
int
allRoom
=
(
strcmp
(
roomId
,
"-1"
)
==
0
)
?
1
:
0
;
if
(
productType
==
NULL
){
ERROR_PRINT
(
"ERROR [%s][%d]
\n
"
,
__FUNCTION__
,
__LINE__
);
return
INVALID_PARAMETER
;
...
...
@@ -741,7 +740,7 @@ int kk_subDev_set_action_by_productType(const char *productType,const char *room
}
if
(
allRoom
==
0
){
char
roomName
[
256
]
=
{
0
};
char
roomIdStr
[
1
0
]
=
{
0
};
char
roomIdStr
[
1
6
]
=
{
0
};
if
(
kk_get_device_roomInfo
(
pDeviceCode
,
info
.
epNum
,
roomName
,
roomIdStr
)
==
0
){
continue
;
}
...
...
@@ -769,7 +768,6 @@ int kk_subDev_set_action_by_productType(const char *productType,const char *room
//return res;
continue
;
}
}
}
}
...
...
midware/midware/midware.c
View file @
a9b31f46
...
...
@@ -40,6 +40,7 @@
#include "dm_ota.h"
#include "ccu_ver.h"
#include "kk_area_handle.h"
#include "kk_property_get_handle.h"
int
g_timezone
=
8
;
char
*
g_filerToPlatTable
[]
=
...
...
@@ -49,6 +50,7 @@ char * g_filerToPlatTable[] =
(
char
*
){
KK_LOGIN_TOPIC_REPLY
},
(
char
*
){
KK_THING_SERVICE_PROPERTY_GET
},
(
char
*
){
KK_THING_CLOUDSTATE_MSG
},
(
char
*
){
KK_THING_CLOUDHB_MSG
},
(
char
*
){
KK_THING_SERVICE_ADDSCENC
},
(
char
*
){
KK_THING_SERVICE_UPDATESCENC
},
(
char
*
){
KK_THING_SERVICE_DELETESCENC
},
...
...
@@ -62,6 +64,26 @@ char * g_filerToPlatTable[] =
};
static
char
s_ccuid
[
DEVICE_CODE_LEN
]
=
{
0
};
static
char
s_Version
[
VERSION_MAXLEN
]
=
{
0
};
char
s_pid
[
PRODUCT_CODE_LEN
]
=
{
0
};
static
int
kk_pid_init
(
void
)
{
char
pid
[
PRODUCT_CODE_LEN
]
=
{
0
};
int
pid_len
=
0
;
HAL_Execel_cmd
(
GET_PRODUCTID_CMD
,(
char
*
)
pid
,
sizeof
(
pid
),
&
pid_len
);
if
(
pid_len
>
0
&&
pid_len
<=
PRODUCT_CODE_LEN
){
memcpy
(
s_pid
,
pid
,
pid_len
-
1
);
INFO_PRINT
(
"s_pid:%s
\n
"
,
s_pid
);
}
else
{
return
-
1
;
}
return
0
;
}
int
kk_get_pid
(
char
*
productId
)
{
strncpy
(
productId
,
s_pid
,
strlen
(
s_pid
));
printf
(
"kk_get_pid:%s
\n
"
,
s_pid
);
return
strlen
(
s_pid
);
}
static
void
HAL_Ccuid_version
(
void
)
{
FILE
*
fp
;
...
...
@@ -414,174 +436,7 @@ static int kk_property_set_data_check(cJSON * payload,const char *deviceCode){
return
SUCCESS_RETURN
;
}
static
int
kk_service_get_reply
(
char
*
deviceCode
,
char
*
productCode
,
char
*
msgId
,
int
param1
,
int
param2
,
int
param3
,
int
epNum
,
char
*
type
)
{
if
(
deviceCode
==
NULL
||
productCode
==
NULL
){
return
INVALID_PARAMETER
;
}
cJSON
*
info
=
cJSON_CreateObject
();
cJSON_AddStringToObject
(
info
,
MSG_TYPE_STR
,
KK_THING_SERVICE_PROPERTY_GET_REPLY
);
cJSON_AddStringToObject
(
info
,
MSG_DEVICE_CODE_STR
,
deviceCode
);
cJSON_AddStringToObject
(
info
,
MSG_PRODUCT_CODE_STR
,
productCode
);
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
);
cJSON
*
paramInfo
=
cJSON_CreateObject
();
if
(
strcmp
(
type
,
"ColorTempSwitch"
)
==
0
){
cJSON_AddNumberToObject
(
paramInfo
,
"ColorTempSwitch"
,
param1
);
}
else
if
(
strcmp
(
type
,
"FadeTime"
)
==
0
){
cJSON_AddNumberToObject
(
paramInfo
,
"FadeTime"
,
param1
);
cJSON_AddNumberToObject
(
paramInfo
,
"LowBrightness"
,
param2
);
cJSON_AddNumberToObject
(
paramInfo
,
"HighBrightness"
,
param3
);
}
cJSON_AddNumberToObject
(
paramInfo
,
"epNum"
,
epNum
);
cJSON_AddItemToObject
(
payload
,
"params"
,
paramInfo
);
char
*
payload11
=
cJSON_Print
(
payload
);
kk_sendData2app
(
infff
,
payload11
,
0
);
free
(
payload11
);
free
(
infff
);
cJSON_Delete
(
payload
);
cJSON_Delete
(
info
);
return
SUCCESS_RETURN
;
}
static
int
kk_property_FadeAndRange_handle
(
char
*
deviceCode
,
int
epNum
,
char
*
msgid
)
{
int
res
=
0
;
int
idx
=
0
;
int
num
=
0
;
int
mutiDev
=
0
;
int
FadeTime
=
0
;
int
LowBrightness
=
0
;
int
HighBrightness
=
0
;
kk_tsl_data_t
*
property
=
NULL
;
dm_mgr_dev_node_t
*
node
=
NULL
;
char
*
propertiesbuf
[
64
]
=
{
0
};
char
propertiesTmp
[
64
]
=
{
0
};
res
=
dm_mgr_get_device_by_devicecode
((
char
*
)
deviceCode
,
&
node
);
if
(
res
!=
SUCCESS_RETURN
)
{
ERROR_PRINT
(
"ERROR [%s][%d] res:%d
\n
"
,
__FUNCTION__
,
__LINE__
,
res
);
return
FAIL_RETURN
;
}
for
(
idx
=
0
;
idx
<
node
->
dev_shadow
->
property_number
;
idx
++
){
property
=
(
kk_tsl_data_t
*
)(
node
->
dev_shadow
->
properties
+
idx
);
if
(
property
==
NULL
){
continue
;
}
memset
(
propertiesTmp
,
0x0
,
sizeof
(
propertiesTmp
));
memcpy
(
propertiesTmp
,
property
->
identifier
,
strlen
(
property
->
identifier
));
split
(
propertiesTmp
,
"_"
,
propertiesbuf
,
&
num
);
if
(
num
==
2
){
mutiDev
=
1
;
}
break
;
}
if
(
mutiDev
){
memset
(
propertiesTmp
,
0x0
,
sizeof
(
propertiesTmp
));
sprintf
(
propertiesTmp
,
"FadeTime_%d"
,
epNum
);
kk_property_db_get_value
(
deviceCode
,
propertiesTmp
,
&
FadeTime
);
memset
(
propertiesTmp
,
0x0
,
sizeof
(
propertiesTmp
));
sprintf
(
propertiesTmp
,
"LowBrightness_%d"
,
epNum
);
kk_property_db_get_value
(
deviceCode
,
propertiesTmp
,
&
LowBrightness
);
memset
(
propertiesTmp
,
0x0
,
sizeof
(
propertiesTmp
));
sprintf
(
propertiesTmp
,
"HighBrightness_%d"
,
epNum
);
kk_property_db_get_value
(
deviceCode
,
propertiesTmp
,
&
HighBrightness
);
}
else
{
kk_property_db_get_value
(
deviceCode
,
"FadeTime"
,
&
FadeTime
);
kk_property_db_get_value
(
deviceCode
,
"LowBrightness"
,
&
LowBrightness
);
kk_property_db_get_value
(
deviceCode
,
"HighBrightness"
,
&
HighBrightness
);
}
kk_service_get_reply
(
deviceCode
,
node
->
productCode
,
msgid
,
FadeTime
,
LowBrightness
,
HighBrightness
,
epNum
,
"FadeTime"
);
return
SUCCESS_RETURN
;
}
static
int
kk_property_LightProperty_handle
(
char
*
deviceCode
,
int
epNum
,
char
*
msgid
)
{
int
res
=
0
;
int
idx
=
0
;
int
num
=
0
;
int
mutiDev
=
0
;
int
ColorTempSwitch
=
0
;
kk_tsl_data_t
*
property
=
NULL
;
dm_mgr_dev_node_t
*
node
=
NULL
;
char
*
propertiesbuf
[
64
]
=
{
0
};
char
propertiesTmp
[
64
]
=
{
0
};
res
=
dm_mgr_get_device_by_devicecode
((
char
*
)
deviceCode
,
&
node
);
if
(
res
!=
SUCCESS_RETURN
)
{
ERROR_PRINT
(
"ERROR [%s][%d] res:%d
\n
"
,
__FUNCTION__
,
__LINE__
,
res
);
return
FAIL_RETURN
;
}
for
(
idx
=
0
;
idx
<
node
->
dev_shadow
->
property_number
;
idx
++
){
property
=
(
kk_tsl_data_t
*
)(
node
->
dev_shadow
->
properties
+
idx
);
if
(
property
==
NULL
){
continue
;
}
memset
(
propertiesTmp
,
0x0
,
sizeof
(
propertiesTmp
));
memcpy
(
propertiesTmp
,
property
->
identifier
,
strlen
(
property
->
identifier
));
split
(
propertiesTmp
,
"_"
,
propertiesbuf
,
&
num
);
if
(
num
==
2
){
mutiDev
=
1
;
}
break
;
}
if
(
mutiDev
){
memset
(
propertiesTmp
,
0x0
,
sizeof
(
propertiesTmp
));
sprintf
(
propertiesTmp
,
"ColorTempSwitch_%d"
,
epNum
);
kk_property_db_get_value
(
deviceCode
,
propertiesTmp
,
&
ColorTempSwitch
);
}
else
{
kk_property_db_get_value
(
deviceCode
,
"ColorTempSwitch"
,
&
ColorTempSwitch
);
}
kk_service_get_reply
(
deviceCode
,
node
->
productCode
,
msgid
,
ColorTempSwitch
,
-
1
,
-
1
,
epNum
,
"ColorTempSwitch"
);
return
SUCCESS_RETURN
;
}
static
int
kk_property_get_handle
(
cJSON
*
payload
,
char
*
deviceCode
)
{
cJSON
*
params
=
NULL
;
cJSON
*
propertyItem
=
NULL
;
cJSON
*
epNum
=
NULL
;
cJSON
*
msgId
=
NULL
;
int
epNumInt
=
1
;
int
res
=
0
;
int
idx
=
0
;
int
value
=
0
;
int
iCnt
=
0
;
if
(
payload
==
NULL
||
deviceCode
==
NULL
){
return
FAIL_RETURN
;
}
msgId
=
cJSON_GetObjectItem
(
payload
,
MSG_COMMON_MSGID
);
if
(
msgId
==
NULL
){
return
FAIL_RETURN
;
}
params
=
cJSON_GetObjectItem
(
payload
,
MSG_PARAMS_STR
);
if
(
params
!=
NULL
){
epNum
=
cJSON_GetObjectItem
(
params
,
"epNum"
);
if
(
epNum
!=
NULL
){
epNumInt
=
epNum
->
valueint
;
}
else
{
epNumInt
=
1
;
}
cJSON
*
propertyIdentifier
=
cJSON_GetObjectItem
(
params
,
"propertyIdentifier"
);
if
(
propertyIdentifier
==
NULL
){
return
FAIL_RETURN
;
}
int
array_size
=
cJSON_GetArraySize
(
propertyIdentifier
);
for
(
iCnt
=
0
;
iCnt
<
array_size
;
iCnt
++
){
cJSON
*
pSub
=
cJSON_GetArrayItem
(
propertyIdentifier
,
iCnt
);
if
(
NULL
==
pSub
){
continue
;
}
if
(
strcmp
(
pSub
->
valuestring
,
"FadeAndRange"
)
==
0
){
kk_property_FadeAndRange_handle
(
deviceCode
,
epNumInt
,
msgId
->
valuestring
);
}
else
if
(
strcmp
(
pSub
->
valuestring
,
"LightProperty"
)
==
0
){
kk_property_LightProperty_handle
(
deviceCode
,
epNumInt
,
msgId
->
valuestring
);
}
}
}
return
SUCCESS_RETURN
;
}
/************************************************************
*功能描述:nanomsg数据回调,app to mid
*输入参数:data:从app 层发来的数据
...
...
@@ -1054,10 +909,14 @@ void kk_platMsg_handle(void* data, char* chalMark){
goto
error
;
}
if
(
chalMark
!=
NULL
){
dm_mgr_update_timestamp_by_devicecode
(
chalMark
,
HAL_Uptimes
());
}
if
(
strcmp
(
msgType
->
valuestring
,
"/thing/service/property/get_reply"
)
!=
0
){
//if (chalMark != NULL){
//if(strcmp(msgType->valuestring,"/thing/service/property/set_reply") != 0){
//dm_mgr_update_timestamp_by_devicecode(chalMark,HAL_Uptimes());
//}
//}
//printf("msgType->valuestring:%s [%s][%d]\n",msgType->valuestring,__FUNCTION__,__LINE__);
if
(
strcmp
(
msgType
->
valuestring
,
"/thing/service/property/get_reply"
)
!=
0
&&
strcmp
(
msgType
->
valuestring
,
"/thing/service/property/set_reply"
)
!=
0
){
dm_mgr_update_timestamp_by_devicecode
(
info_dcode
->
valuestring
,
HAL_Uptimes
());
}
...
...
@@ -1531,11 +1390,7 @@ void *udp_dispatch_yield(void *args){
memset
(
host_ip
,
0
,
sizeof
(
host_ip
));
memset
(
mac
,
0
,
sizeof
(
mac
));
memset
(
szOut
,
0
,
sizeof
(
szOut
));
#ifdef CONFIG_A133_PLATFORM
HAL_Get_IP
(
host_ip
,
"eth0"
);
#else
HAL_Get_IP
(
host_ip
,
NULL
);
#endif
HAL_Get_ccuid
(
device_code
);
// printf("[%s][%d]inet_ntoa(from.sin_addr):%s\n",__FUNCTION__,__LINE__,inet_ntoa(from.sin_addr));
// printf("[%s][%d]host_ip:%s\n",__FUNCTION__,__LINE__,host_ip);
...
...
@@ -1599,11 +1454,7 @@ void *ccu_property_monitor(void *args)
dm_mgr_search_dev_by_devid
(
KK_DM_DEVICE_CCU_DEVICEID
,
&
node
);
//dm_mgr_update_timestamp_by_devicecode(node->deviceCode,HAL_GetTime());
node
->
timestamp
=
HAL_Uptimes
();
#ifdef CONFIG_A133_PLATFORM
HAL_Get_IP
(
s_IP
,
"eth0"
);
#else
HAL_Get_IP
(
s_IP
,
NULL
);
#endif
res
=
kk_tsl_get_value
(
kk_tsl_get_property_value
,
node
->
dev_shadow
,
KK_TSL_CCU_WANIP_IDENTIFIER
,
s_IP_TSL
,
NULL
);
if
(
res
!=
SUCCESS_RETURN
){
ERROR_PRINT
(
"kk_tsl_get_value Failed
\n
"
);
...
...
@@ -1611,21 +1462,18 @@ void *ccu_property_monitor(void *args)
else
{
if
(
strcmp
(
s_IP
,
s_IP_TSL
)){
kk_tsl_set_value
(
kk_tsl_set_property_value
,
node
->
dev_shadow
,
KK_TSL_CCU_WANIP_IDENTIFIER
,
NULL
,
s_IP
);
kk_tsl_set_value
(
kk_tsl_set_property_value
,
node
->
dev_shadow
,
KK_TSL_CCU_LANIP_IDENTIFIER
,
NULL
,
s_IP
);
INFO_PRINT
(
"current ip:%s,before ip:%s
\n
"
,
s_IP
,
s_IP_TSL
);
kk_property_db_update
(
node
->
deviceCode
);
needReport
=
1
;
}
}
if
(
needReport
&&
(
kk_get_cloudstatus
()
==
1
)){
needReport
=
0
;
char
*
postStr
=
kk_tsl_get_post_property_str
(
node
->
dev_shadow
,
NULL
);
if
(
postStr
!=
NULL
){
dm_mgr_upstream_thing_property_post
(
node
->
devid
,
postStr
,
strlen
(
postStr
),
0
);
free
(
postStr
);
postStr
=
NULL
;
}
char
*
postStr
=
kk_tsl_get_post_property_str
(
node
->
dev_shadow
,
NULL
);
if
(
postStr
!=
NULL
){
dm_mgr_upstream_thing_property_post
(
node
->
devid
,
postStr
,
strlen
(
postStr
),
0
);
free
(
postStr
);
postStr
=
NULL
;
}
//iotx_dm_ccu_cloudHB_check();
sleep
(
time_second
);
}
return
NULL
;
...
...
@@ -1671,6 +1519,7 @@ int main(const int argc, const char **argv)
openlog
(
"midware"
,
LOG_PID
,
LOG_USER
);
memset
(
mid_ctx
,
0
,
sizeof
(
mid_ctx_t
));
HAL_Ccuid_version
();
kk_pid_init
();
res
=
HAL_Ccuid_init
();
if
(
res
==
-
1
){
ERROR_PRINT
(
"CCUID GET FAIL!!!!!!!!!!!
\n
"
);
...
...
midware/midware/scene/kk_scene_handle.c
View file @
a9b31f46
...
...
@@ -111,7 +111,9 @@ static int kk_scene_tsl_load(void)
char
*
tsl_str
=
NULL
;
int
heartTime
=
0
;
char
isDormancyDev
=
0
;
tsl_str
=
kk_load_json
(
"15"
,
KK_DEVICE_TSL_TYPE
);
char
pid
[
32
]
=
{
0
};
kk_get_pid
(
pid
);
tsl_str
=
kk_load_json
(
pid
,
KK_DEVICE_TSL_TYPE
);
if
(
tsl_str
!=
NULL
)
{
res
=
kk_tsl_create
(
tsl_str
,
strlen
(
tsl_str
),
&
s_scene_shadow
,
&
heartTime
,(
int
*
)
&
isDormancyDev
);
...
...
@@ -1175,6 +1177,9 @@ int kk_scene_parse_scene_action(const cJSON* str,const char *sceneId,int isUpdat
productType
=
cJSON_GetObjectItem
(
item
,
MSG_PRODUCT_TYPE_STR
);
roomId
=
cJSON_GetObjectItem
(
item
,
MSG_AREA_ROOM_CCUROOMID
);
if
(
productType
!=
NULL
){
if
(
roomId
==
NULL
){
roomId
=
cJSON_GetObjectItem
(
item
,
MSG_AREA_ROOM_ROOMID
);
}
delay
=
cJSON_GetObjectItem
(
item
,
MSG_SCENE_DELAY
);
if
(
delay
==
NULL
)
return
FAIL_RETURN
;
int
idelay
=
delay
->
valueint
;
...
...
@@ -1233,11 +1238,16 @@ int kk_scene_parse_scene_action(const cJSON* str,const char *sceneId,int isUpdat
if
(
strcmp
(
node
->
productCode
,
"3098"
)
==
0
||
strcmp
(
node
->
productCode
,
"3099"
)
==
0
||
strcmp
(
node
->
productCode
,
"3097"
)
==
0
){
sprintf
(
info
.
propertyName
,
"%s_%d"
,
propertyName
->
valuestring
,
iepnum
);
}
else
if
(
strcmp
(
node
->
productCode
,
"5004"
)
==
0
){
if
(
strstr
(
propertyName
->
valuestring
,
"_"
)
==
NULL
){
sprintf
(
info
.
propertyName
,
"%s_%d"
,
propertyName
->
valuestring
,
iepnum
);
}
else
{
memcpy
(
info
.
propertyName
,
propertyName
->
valuestring
,
strlen
(
propertyName
->
valuestring
));
}
}
else
{
memcpy
(
info
.
propertyName
,
propertyName
->
valuestring
,
strlen
(
propertyName
->
valuestring
));
}
if
(
propertyValue
->
type
==
cJSON_Number
){
snprintf
(
propertyValueStr
,
sizeof
(
propertyValueStr
),
"%d"
,
propertyValue
->
valueint
);
}
else
if
(
propertyValue
->
type
==
cJSON_String
){
snprintf
(
propertyValueStr
,
sizeof
(
propertyValueStr
),
"%s"
,
propertyValue
->
valuestring
);
...
...
midware/tsl/tsl_handle/kk_tsl_common.h
View file @
a9b31f46
...
...
@@ -72,11 +72,11 @@
#define KK_TSL_SPECIAL_EVENT_POST_IDENTIFIER "post"
#define KK_TSL_SPECIAL_EVENT_POST_METHOD "thing.event.property.post"
#define KK_TSL_VERSION_IDENTIFIER "
V
ersion"
#define KK_TSL_CCU_LANIP_IDENTIFIER "
L
anIPAddress"
#define KK_TSL_CCU_WANIP_IDENTIFIER "
W
anIPAddress"
#define KK_TSL_CCU_WANSTATE_IDENTIFIER "
W
anState"
#define KK_TSL_CCU_IOTCLOUD_IDENTIFIER "
IOT
CloudState"
#define KK_TSL_VERSION_IDENTIFIER "
v
ersion"
#define KK_TSL_CCU_LANIP_IDENTIFIER "
l
anIPAddress"
#define KK_TSL_CCU_WANIP_IDENTIFIER "
w
anIPAddress"
#define KK_TSL_CCU_WANSTATE_IDENTIFIER "
w
anState"
#define KK_TSL_CCU_IOTCLOUD_IDENTIFIER "
iot
CloudState"
#define KK_TSL_CCU_ARMINGSTATE_IDENTIFIER "ArmingState"
#define KK_TSL_GATAWAY_VERSION_IDENTIFIER "Version"
...
...
midware/tsl/tsl_handle/kk_tsl_load.c
View file @
a9b31f46
...
...
@@ -13,9 +13,10 @@ char* kk_load_json(const char *productCode,int type)
char
*
tslPath
=
NULL
;
int
path_len
=
0
;
unsigned
int
filesize
;
char
pid
[
32
]
=
{
0
};
kk_get_pid
(
pid
);
if
(
type
==
KK_DM_DEVICE_CCU
){
path_len
=
strlen
(
TSL_CCU_PATH_FILE
)
+
strlen
(
"12"
)
+
1
;
path_len
=
strlen
(
TSL_CCU_PATH_FILE
)
+
strlen
(
pid
)
+
1
;
}
else
if
(
type
==
KK_DM_DEVICE_GATEWAY
){
path_len
=
strlen
(
TSL_GATEWAY_PATH_FILE
)
+
strlen
(
"2"
)
+
1
;
...
...
@@ -33,7 +34,7 @@ char* kk_load_json(const char *productCode,int type)
memset
(
tslPath
,
0x0
,
path_len
);
if
(
type
==
KK_DM_DEVICE_CCU
){
snprintf
(
tslPath
,
path_len
,
TSL_CCU_PATH_FILE
,
"12"
);
snprintf
(
tslPath
,
path_len
,
TSL_CCU_PATH_FILE
,
pid
);
}
else
if
(
type
==
KK_DM_DEVICE_GATEWAY
){
snprintf
(
tslPath
,
path_len
,
TSL_GATEWAY_PATH_FILE
,
"2"
);
...
...
nx5_soc_gw/kk_device_def.json
View file @
a9b31f46
Changes suppressed. Click to show.
{
"version"
:
"1.4"
,
"update"
:
"2021-09-06"
,
"devices"
:
[
{
"pid"
:
"00068611"
,
"name"
:
"XC Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3001
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068612"
,
"name"
:
"XC Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3002
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068613"
,
"name"
:
"XC Wall switch 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3003
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00048611"
,
"name"
:
"XC Scene Panel 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3004
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00038611"
,
"name"
:
"XC Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3005
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038612"
,
"name"
:
"XC Curtain Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3006
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038613"
,
"name"
:
"XC Dry Contact Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3007
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038614"
,
"name"
:
"XC Dry Contact Curtain Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3008
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00068601"
,
"name"
:
"BJ Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3009
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068602"
,
"name"
:
"BJ Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3010
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068603"
,
"name"
:
"BJ Wall switch 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3011
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00038601"
,
"name"
:
"BJ Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3012
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00048601"
,
"name"
:
"BJ Scene Panel 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3013
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00048602"
,
"name"
:
"BJ Quick Panel 3G"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3014
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"0402812C"
,
"name"
:
"BJ SOS Button"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3015
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"zid"
:
"0402"
,
"zone_type"
:
"002C"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402802C"
,
"name"
:
"BJ SOS Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3016
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"zid"
:
"0402"
,
"zone_type"
:
"002C"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00038603"
,
"name"
:
"BJ Open Window Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3017
,
"productType"
:
"actuator"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"01018601"
,
"name"
:
"BJ DimmerLight Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3018
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008"
}
}
]
},
{
"pid"
:
"00518610"
,
"name"
:
"BJ Plug Panel 10A"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3019
,
"productType"
:
"outlet"
,
"eps"
:
[
{
"zid"
:
"0051"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0b04:0702"
}
}
]
},
{
"pid"
:
"00518616"
,
"name"
:
"BJ Plug Panel 16A"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3020
,
"productType"
:
"outlet"
,
"eps"
:
[
{
"zid"
:
"0051"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0b04:0702"
}
}
]
},
{
"pid"
:
"00038602"
,
"name"
:
"BJ Dry Contact Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3021
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00068621"
,
"name"
:
"XB Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3022
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068622"
,
"name"
:
"XB Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3023
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068623"
,
"name"
:
"XB Wall switch 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3024
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00048621"
,
"name"
:
"XB Scene Panel 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3025
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00038621"
,
"name"
:
"XB Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3026
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038622"
,
"name"
:
"XB Curtain Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3027
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00803028"
,
"name"
:
"XB DimmerLight Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3028
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0080"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008"
}
}
]
},
{
"pid"
:
"00803029"
,
"name"
:
"XB Water Floor Heating Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3029
,
"productType"
:
"floorHeating"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201"
}
}
]
},
{
"pid"
:
"00803030"
,
"name"
:
"XB Electric Floor Heating Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3030
,
"productType"
:
"floorHeating"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201"
}
}
]
},
{
"pid"
:
"00803031"
,
"name"
:
"XB Fan Coil Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3031
,
"productType"
:
"fanCoil"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00803032"
,
"name"
:
"XB Fresh Air Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3032
,
"productType"
:
"freshAir"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00803033"
,
"name"
:
"XB Midea Air Condition Panel Z3KA"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3033
,
"productType"
:
"airConditioning"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00803034"
,
"name"
:
"XB Midea Air Condition Panel Z3ZA"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3034
,
"productType"
:
"airConditioning"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00803035"
,
"name"
:
"XB Daikin Air Condition Panel Z3KA"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3035
,
"productType"
:
"airConditioning"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00803036"
,
"name"
:
"XB MHI Air Condition Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3036
,
"productType"
:
"airConditioning"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00518620"
,
"name"
:
"XB Plug Panel 10A"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3037
,
"productType"
:
"outlet"
,
"eps"
:
[
{
"zid"
:
"0051"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0b04:0702"
}
}
]
},
{
"pid"
:
"00518626"
,
"name"
:
"XB Plug Panel 16A"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3038
,
"productType"
:
"outlet"
,
"eps"
:
[
{
"zid"
:
"0051"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0b04:0702"
}
}
]
},
{
"pid"
:
"0402002A"
,
"name"
:
"iHORN water detector"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3039
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002A"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402002B"
,
"name"
:
"iHORN gas detector"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3040
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002B"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04020028"
,
"name"
:
"iHORN smoke detector"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3041
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0028"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402000D"
,
"name"
:
"KPL Body Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3042
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"000D"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402010D"
,
"name"
:
"Infrared Curtain Detector"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3043
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"000D"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04032225"
,
"name"
:
"KPL Indoor Siren"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3044
,
"productType"
:
"siren"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0403"
,
"zone_type"
:
"0225"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04022015"
,
"name"
:
"KPL Door Seneor"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3045
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0015"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00510001"
,
"name"
:
"KIT Quick Panel"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3046
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0002"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0006"
}
}
]
},
{
"pid"
:
"03020000"
,
"name"
:
"KIT Environment Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3048
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0402:0405"
}
}
]
},
{
"pid"
:
"0402000D"
,
"name"
:
"KIT Body Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3049
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"000D"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04020015"
,
"name"
:
"KIT Door Seneor"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3050
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0015"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04021015"
,
"name"
:
"BD Door Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3051
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0015"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"03021000"
,
"name"
:
"BD Environment Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3052
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0019"
,
"server"
:
"0000:0001:0003:0400:0402:0405"
}
}
]
},
{
"pid"
:
"0402100D"
,
"name"
:
"BD Body Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3053
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"000D"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402102C"
,
"name"
:
"BD SOS Button"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3054
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002C"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402102A"
,
"name"
:
"BD Water Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3055
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002A"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00040002"
,
"name"
:
"BD Scene Button"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3056
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"04031225"
,
"name"
:
"BD Indoor Siren"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3057
,
"productType"
:
"siren"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0403"
,
"zone_type"
:
"0225"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00803059"
,
"name"
:
"Infrared remote control"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3059
,
"productType"
:
"remoteControl"
,
"eps"
:
[
{
"zid"
:
"0006"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00803062"
,
"name"
:
"Center Air Conditioning Gateway PRO"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3062
,
"productType"
:
"airConditioningGateway"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0201"
}
}
]
},
{
"pid"
:
"000A0001"
,
"name"
:
"YM Doorlock"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3064
,
"productType"
:
"Doorlock"
,
"eps"
:
[
{
"zid"
:
"000A"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0001:0003:0101:0B05"
}
}
]
},
{
"pid"
:
"02020000"
,
"name"
:
"DY Window Covering"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3067
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0202"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"02020001"
,
"name"
:
"WSD Window Covering"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3068
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0202"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"01000002"
,
"name"
:
"Dual Lamp Control Module"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3069
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0100"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"04028301"
,
"name"
:
"Security Sensor Module"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3070
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"8301"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"03300001"
,
"name"
:
"Water Valve Controller"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3071
,
"productType"
:
"waterValve"
,
"eps"
:
[
{
"zid"
:
"0330"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"03310001"
,
"name"
:
"Gas Valve Controller"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3072
,
"productType"
:
"gasValve"
,
"eps"
:
[
{
"zid"
:
"0331"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"01020001"
,
"name"
:
"Light Belt Controller"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3073
,
"productType"
:
"colorDimmableLight"
,
"eps"
:
[
{
"zid"
:
"0102"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
},
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
""
,
"server"
:
"0004:0005:0006:0008"
}
}
]
},
{
"pid"
:
"03020001"
,
"name"
:
"Environment Sensor"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3076
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0402:0405:0400"
}
}
]
},
{
"pid"
:
"00068624"
,
"name"
:
"XB Wall switch 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3078
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068614"
,
"name"
:
"XC Wall switch 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3079
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"3050"
,
"name"
:
"iHORN Gas Sensor"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3080
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002B"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"3041"
,
"name"
:
"iHORN Smoke Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3081
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0028"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402102B"
,
"name"
:
"BD Gas Sensor"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3082
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002B"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04021028"
,
"name"
:
"BD Smoke Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3083
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0028"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"03020002"
,
"name"
:
"Environment Detection Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3084
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0400:0402:0405:040D:042A:042B"
}
}
]
},
{
"pid"
:
"00068631"
,
"name"
:
"HD Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3085
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068632"
,
"name"
:
"HD Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3086
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068633"
,
"name"
:
"HD Wall switch 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3087
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00038631"
,
"name"
:
"HD Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3088
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038632"
,
"name"
:
"HD Curtain Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3089
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00048631"
,
"name"
:
"HD Scene Panel 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3090
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"01018631"
,
"name"
:
"HD Dimmable Light Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3091
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0B05"
}
}
]
},
{
"pid"
:
"01018632"
,
"name"
:
"HD Dimmable Light Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3092
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0B05"
}
}
]
},
{
"pid"
:
"01018633"
,
"name"
:
"HD Dimmable Light Panel 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3093
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0B05"
}
}
]
},
{
"pid"
:
"01010001"
,
"name"
:
"Dimmable Light Module 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3094
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0B05"
}
}
]
},
{
"pid"
:
"03008611"
,
"name"
:
"HD HVAC Air condition All in one"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3095
,
"productType"
:
"airConditioning"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"03008603"
,
"name"
:
"HD HVAC Floor Heating All in one"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3097
,
"productType"
:
"floorHeating"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"03008601"
,
"name"
:
"HD HVAC Fan coil All in one"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3098
,
"productType"
:
"fanCoil"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"03008604"
,
"name"
:
"HD HVAC Fresh Air All in one"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3099
,
"productType"
:
"freshAir"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00518630"
,
"name"
:
"HD Plug Panel 10A"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3100
,
"productType"
:
"outlet"
,
"eps"
:
[
{
"zid"
:
"0051"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0b04:0702"
}
}
]
},
{
"pid"
:
"01018630"
,
"name"
:
"HD SCR Dimmable Light Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3102
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0B05"
}
}
]
},
{
"pid"
:
"00060002"
,
"name"
:
"Offline Voice Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3104
,
"productType"
:
"voicePanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
},
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
},
{
"zid"
:
"0007"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0008"
}
}
]
},
{
"pid"
:
"04022028"
,
"name"
:
"KPL Smoke Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3105
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0028"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402202B"
,
"name"
:
"KPL Gas Sensor"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3106
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002B"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00020003"
,
"name"
:
"BJ Water cut-off panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3108
,
"productType"
:
"waterValve"
,
"eps"
:
[
{
"zid"
:
"0002"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00803109"
,
"name"
:
"Air Switch Gateway"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3109
,
"productType"
:
"airSwitchGateway"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202:fcc0"
}
}
]
},
{
"pid"
:
"00048612"
,
"name"
:
"XC Scene Panel 6G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3110
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068634"
,
"name"
:
"HD Wall switch 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3115
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00088626"
,
"name"
:
"XB Fresh Air Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3116
,
"productType"
:
"freshAir"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"03020003"
,
"name"
:
"TQ Environment Detection"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3119
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0400:0402:0405:040D:042A:042B"
}
}
]
},
{
"pid"
:
"00803122"
,
"name"
:
"BL Fresh Air Gateway"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3122
,
"productType"
:
"freshAirGateway"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202:fcc0"
}
}
]
},
{
"pid"
:
"04022115"
,
"name"
:
"XB SOS Button"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3124
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"zid"
:
"0402"
,
"zone_type"
:
"002C"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0006862A"
,
"name"
:
"XB Singal Fire Switch 1G"
,
"type"
:
"ZED"
,
"ota"
:
true
,
"b_pid"
:
3129
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"0006862B"
,
"name"
:
"XB Singal Fire Switch 2G"
,
"type"
:
"ZED"
,
"ota"
:
true
,
"b_pid"
:
3130
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"0006862C"
,
"name"
:
"XB Singal Fire Switch 3G"
,
"type"
:
"ZED"
,
"ota"
:
true
,
"b_pid"
:
3131
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"03020004"
,
"name"
:
"TQ Environment Detection Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3132
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0400:0402:0405:040D:042A:042B"
}
}
]
},
{
"pid"
:
"01021000"
,
"name"
:
"YY Dimmalbe Light 5W"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3137
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01000004"
,
"name"
:
"Four Lamp Control Module"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3138
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068651"
,
"name"
:
"YH Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3142
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068652"
,
"name"
:
"YH Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3143
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068653"
,
"name"
:
"YH Wall switch 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3144
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068654"
,
"name"
:
"YH Wall switch 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3145
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00048651"
,
"name"
:
"YH Scene Panel 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3146
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00038651"
,
"name"
:
"YH Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3147
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038652"
,
"name"
:
"YH Curtain Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3148
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00068661"
,
"name"
:
"GN Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3149
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068662"
,
"name"
:
"GN Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3150
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"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"
:
"01010004"
,
"name"
:
"YY Linear Dimmalbe Light Model G4 With Level"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3166
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010C0002"
,
"name"
:
"YY Linear Dimmalbe Light Model G4 With ColorTemp"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3167
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01010014"
,
"name"
:
"YY Live_Neutral_Wire Dimmalbe Light Model G4"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3168
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008"
}
}
]
},
{
"pid"
:
"010C0021"
,
"name"
:
"YY Dimmalbe Light Controler 12W With ColorTemp"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3169
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01010021"
,
"name"
:
"YY Dimmalbe Light Controler 12W With Level"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3170
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010C0031"
,
"name"
:
"YY Dimmalbe Light Controler 20W With ColorTemp"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3171
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01010031"
,
"name"
:
"YY Dimmalbe Light Controler 20W With Level"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3172
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010C0041"
,
"name"
:
"YY Dimmalbe Light Controler 8W With ColorTemp"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3173
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01010041"
,
"name"
:
"YY Dimmalbe Light Controler 8W With Level"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3174
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010C0051"
,
"name"
:
"YY Dimmalbe Light Controler 14W With ColorTemp"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3175
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01010051"
,
"name"
:
"YY Dimmalbe Light Controler 14W With Level"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3176
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010D0062"
,
"name"
:
"YY RGBCW Light Belt Controller"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3177
,
"productType"
:
"colorDimmableLight"
,
"eps"
:
[
{
"zid"
:
"0102"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010D0061"
,
"name"
:
"YY CW Light Belt Controller"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3178
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"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"
}
}
]
}
]
{
"version"
:
"1.4"
,
"update"
:
"2021-09-06"
,
"devices"
:
[
{
"pid"
:
"00068611"
,
"name"
:
"XC Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3001
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068612"
,
"name"
:
"XC Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3002
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068613"
,
"name"
:
"XC Wall switch 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3003
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00048611"
,
"name"
:
"XC Scene Panel 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3004
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00038611"
,
"name"
:
"XC Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3005
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038612"
,
"name"
:
"XC Curtain Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3006
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038613"
,
"name"
:
"XC Dry Contact Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3007
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038614"
,
"name"
:
"XC Dry Contact Curtain Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3008
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00068601"
,
"name"
:
"BJ Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3009
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068602"
,
"name"
:
"BJ Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3010
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068603"
,
"name"
:
"BJ Wall switch 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3011
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00038601"
,
"name"
:
"BJ Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3012
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00048601"
,
"name"
:
"BJ Scene Panel 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3013
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00048602"
,
"name"
:
"BJ Quick Panel 3G"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3014
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"0402812C"
,
"name"
:
"BJ SOS Button"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3015
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"zid"
:
"0402"
,
"zone_type"
:
"002C"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402802C"
,
"name"
:
"BJ SOS Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3016
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"zid"
:
"0402"
,
"zone_type"
:
"002C"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00038603"
,
"name"
:
"BJ Open Window Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3017
,
"productType"
:
"actuator"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"01018601"
,
"name"
:
"BJ DimmerLight Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3018
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008"
}
}
]
},
{
"pid"
:
"00518610"
,
"name"
:
"BJ Plug Panel 10A"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3019
,
"productType"
:
"outlet"
,
"eps"
:
[
{
"zid"
:
"0051"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0b04:0702"
}
}
]
},
{
"pid"
:
"00518616"
,
"name"
:
"BJ Plug Panel 16A"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3020
,
"productType"
:
"outlet"
,
"eps"
:
[
{
"zid"
:
"0051"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0b04:0702"
}
}
]
},
{
"pid"
:
"00038602"
,
"name"
:
"BJ Dry Contact Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3021
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00068621"
,
"name"
:
"XB Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3022
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068622"
,
"name"
:
"XB Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3023
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068623"
,
"name"
:
"XB Wall switch 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3024
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00048621"
,
"name"
:
"XB Scene Panel 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3025
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00038621"
,
"name"
:
"XB Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3026
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038622"
,
"name"
:
"XB Curtain Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3027
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00803028"
,
"name"
:
"XB DimmerLight Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3028
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0080"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008"
}
}
]
},
{
"pid"
:
"00803029"
,
"name"
:
"XB Water Floor Heating Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3029
,
"productType"
:
"floorHeating"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201"
}
}
]
},
{
"pid"
:
"00803030"
,
"name"
:
"XB Electric Floor Heating Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3030
,
"productType"
:
"floorHeating"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201"
}
}
]
},
{
"pid"
:
"00803031"
,
"name"
:
"XB Fan Coil Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3031
,
"productType"
:
"fanCoil"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00803032"
,
"name"
:
"XB Fresh Air Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3032
,
"productType"
:
"freshAir"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00803033"
,
"name"
:
"XB Midea Air Condition Panel Z3KA"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3033
,
"productType"
:
"airConditioning"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00803034"
,
"name"
:
"XB Midea Air Condition Panel Z3ZA"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3034
,
"productType"
:
"airConditioning"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00803035"
,
"name"
:
"XB Daikin Air Condition Panel Z3KA"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3035
,
"productType"
:
"airConditioning"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00803036"
,
"name"
:
"XB MHI Air Condition Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3036
,
"productType"
:
"airConditioning"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00518620"
,
"name"
:
"XB Plug Panel 10A"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3037
,
"productType"
:
"outlet"
,
"eps"
:
[
{
"zid"
:
"0051"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0b04:0702"
}
}
]
},
{
"pid"
:
"00518626"
,
"name"
:
"XB Plug Panel 16A"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3038
,
"productType"
:
"outlet"
,
"eps"
:
[
{
"zid"
:
"0051"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0b04:0702"
}
}
]
},
{
"pid"
:
"0402002A"
,
"name"
:
"iHORN water detector"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3039
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002A"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402002B"
,
"name"
:
"iHORN gas detector"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3040
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002B"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04020028"
,
"name"
:
"iHORN smoke detector"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3041
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0028"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402000D"
,
"name"
:
"KPL Body Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3042
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"000D"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402010D"
,
"name"
:
"Infrared Curtain Detector"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3043
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"000D"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04032225"
,
"name"
:
"KPL Indoor Siren"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3044
,
"productType"
:
"siren"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0403"
,
"zone_type"
:
"0225"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04022015"
,
"name"
:
"KPL Door Seneor"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3045
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0015"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00510001"
,
"name"
:
"KIT Quick Panel"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3046
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0002"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0006"
}
}
]
},
{
"pid"
:
"03020000"
,
"name"
:
"KIT Environment Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3048
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0402:0405"
}
}
]
},
{
"pid"
:
"0402000D"
,
"name"
:
"KIT Body Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3049
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"000D"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04020015"
,
"name"
:
"KIT Door Seneor"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3050
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0015"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04021015"
,
"name"
:
"BD Door Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3051
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0015"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"03021000"
,
"name"
:
"BD Environment Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3052
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0019"
,
"server"
:
"0000:0001:0003:0400:0402:0405"
}
}
]
},
{
"pid"
:
"0402100D"
,
"name"
:
"BD Body Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3053
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"000D"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402102C"
,
"name"
:
"BD SOS Button"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3054
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002C"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402102A"
,
"name"
:
"BD Water Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3055
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002A"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00040002"
,
"name"
:
"BD Scene Button"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3056
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"04031225"
,
"name"
:
"BD Indoor Siren"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3057
,
"productType"
:
"siren"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0403"
,
"zone_type"
:
"0225"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00803059"
,
"name"
:
"Infrared remote control"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3059
,
"productType"
:
"remoteControl"
,
"eps"
:
[
{
"zid"
:
"0006"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00803062"
,
"name"
:
"Center Air Conditioning Gateway PRO"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3062
,
"productType"
:
"airConditioningGateway"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0201"
}
}
]
},
{
"pid"
:
"000A0001"
,
"name"
:
"YM Doorlock"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3064
,
"productType"
:
"Doorlock"
,
"eps"
:
[
{
"zid"
:
"000A"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0001:0003:0101:0B05"
}
}
]
},
{
"pid"
:
"000A0002"
,
"name"
:
"YC Doorlock"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3066
,
"productType"
:
"Doorlock"
,
"eps"
:
[
{
"zid"
:
"000A"
}
]
},
{
"pid"
:
"02020000"
,
"name"
:
"DY Window Covering"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3067
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0202"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"02020001"
,
"name"
:
"WSD Window Covering"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3068
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0202"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"01000002"
,
"name"
:
"Dual Lamp Control Module"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3069
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0100"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"04028301"
,
"name"
:
"Security Sensor Module"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3070
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"8301"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"03300001"
,
"name"
:
"Water Valve Controller"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3071
,
"productType"
:
"waterValve"
,
"eps"
:
[
{
"zid"
:
"0330"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"03310001"
,
"name"
:
"Gas Valve Controller"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3072
,
"productType"
:
"gasValve"
,
"eps"
:
[
{
"zid"
:
"0331"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"01020001"
,
"name"
:
"Light Belt Controller"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3073
,
"productType"
:
"colorDimmableLight"
,
"eps"
:
[
{
"zid"
:
"0102"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
},
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
""
,
"server"
:
"0004:0005:0006:0008"
}
}
]
},
{
"pid"
:
"03020001"
,
"name"
:
"Environment Sensor"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3076
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0402:0405:0400"
}
}
]
},
{
"pid"
:
"00068624"
,
"name"
:
"XB Wall switch 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3078
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068614"
,
"name"
:
"XC Wall switch 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3079
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"3050"
,
"name"
:
"iHORN Gas Sensor"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3080
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002B"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"3041"
,
"name"
:
"iHORN Smoke Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3081
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0028"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402102B"
,
"name"
:
"BD Gas Sensor"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3082
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002B"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"04021028"
,
"name"
:
"BD Smoke Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3083
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0028"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"03020002"
,
"name"
:
"Environment Detection Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3084
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0400:0402:0405:040D:042A:042B"
}
}
]
},
{
"pid"
:
"00068631"
,
"name"
:
"HD Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3085
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068632"
,
"name"
:
"HD Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3086
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068633"
,
"name"
:
"HD Wall switch 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3087
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00038631"
,
"name"
:
"HD Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3088
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038632"
,
"name"
:
"HD Curtain Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3089
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00048631"
,
"name"
:
"HD Scene Panel 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3090
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"01018631"
,
"name"
:
"HD Dimmable Light Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3091
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0B05"
}
}
]
},
{
"pid"
:
"01018632"
,
"name"
:
"HD Dimmable Light Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3092
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0B05"
}
}
]
},
{
"pid"
:
"01018633"
,
"name"
:
"HD Dimmable Light Panel 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3093
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0B05"
}
}
]
},
{
"pid"
:
"01010001"
,
"name"
:
"Dimmable Light Module 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3094
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0B05"
}
}
]
},
{
"pid"
:
"03008611"
,
"name"
:
"HD HVAC Air condition All in one"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3095
,
"productType"
:
"airConditioning"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"03008603"
,
"name"
:
"HD HVAC Floor Heating All in one"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3097
,
"productType"
:
"floorHeating"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"03008601"
,
"name"
:
"HD HVAC Fan coil All in one"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3098
,
"productType"
:
"fanCoil"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"03008604"
,
"name"
:
"HD HVAC Fresh Air All in one"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3099
,
"productType"
:
"freshAir"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"00518630"
,
"name"
:
"HD Plug Panel 10A"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3100
,
"productType"
:
"outlet"
,
"eps"
:
[
{
"zid"
:
"0051"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0b04:0702"
}
}
]
},
{
"pid"
:
"01018630"
,
"name"
:
"HD SCR Dimmable Light Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3102
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0101"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0B05"
}
}
]
},
{
"pid"
:
"00060002"
,
"name"
:
"Offline Voice Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3104
,
"productType"
:
"voicePanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
},
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
},
{
"zid"
:
"0007"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0008"
}
}
]
},
{
"pid"
:
"04022028"
,
"name"
:
"KPL Smoke Sensor"
,
"type"
:
"ZSED"
,
"ota"
:
true
,
"b_pid"
:
3105
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"0028"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0402202B"
,
"name"
:
"KPL Gas Sensor"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3106
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"ep"
:
"1"
,
"zid"
:
"0402"
,
"zone_type"
:
"002B"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"00020003"
,
"name"
:
"BJ Water cut-off panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3108
,
"productType"
:
"waterValve"
,
"eps"
:
[
{
"zid"
:
"0002"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00803109"
,
"name"
:
"Air Switch Gateway"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3109
,
"productType"
:
"airSwitchGateway"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202:fcc0"
}
}
]
},
{
"pid"
:
"00048612"
,
"name"
:
"XC Scene Panel 6G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3110
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068634"
,
"name"
:
"HD Wall switch 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3115
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00088626"
,
"name"
:
"XB Fresh Air Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3116
,
"productType"
:
"freshAir"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202"
}
}
]
},
{
"pid"
:
"03020003"
,
"name"
:
"TQ Environment Detection"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3119
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0400:0402:0405:040D:042A:042B"
}
}
]
},
{
"pid"
:
"00803122"
,
"name"
:
"BL Fresh Air Gateway"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3122
,
"productType"
:
"freshAirGateway"
,
"eps"
:
[
{
"zid"
:
"0300"
,
"cluster"
:
{
"client"
:
"0003:0006"
,
"server"
:
"0000:0003:0004:0005:0006:0201:0202:fcc0"
}
}
]
},
{
"pid"
:
"04022115"
,
"name"
:
"XB SOS Button"
,
"type"
:
"ZSED"
,
"ota"
:
false
,
"b_pid"
:
3124
,
"productType"
:
"IASsensor"
,
"eps"
:
[
{
"zid"
:
"0402"
,
"zone_type"
:
"002C"
,
"cluster"
:
{
"client"
:
"0003"
,
"server"
:
"0000:0003:0500"
}
}
]
},
{
"pid"
:
"0006862A"
,
"name"
:
"XB Singal Fire Switch 1G"
,
"type"
:
"ZED"
,
"ota"
:
true
,
"b_pid"
:
3129
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"0006862B"
,
"name"
:
"XB Singal Fire Switch 2G"
,
"type"
:
"ZED"
,
"ota"
:
true
,
"b_pid"
:
3130
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"0006862C"
,
"name"
:
"XB Singal Fire Switch 3G"
,
"type"
:
"ZED"
,
"ota"
:
true
,
"b_pid"
:
3131
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"03020004"
,
"name"
:
"TQ Environment Detection Panel"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3132
,
"productType"
:
"Environmental"
,
"eps"
:
[
{
"zid"
:
"0302"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0400:0402:0405:040D:042A:042B"
}
}
]
},
{
"pid"
:
"01021000"
,
"name"
:
"YY Dimmalbe Light 5W"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3137
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01000004"
,
"name"
:
"Four Lamp Control Module"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3138
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068651"
,
"name"
:
"YH Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3142
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068652"
,
"name"
:
"YH Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3143
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068653"
,
"name"
:
"YH Wall switch 3G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3144
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068654"
,
"name"
:
"YH Wall switch 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3145
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00048651"
,
"name"
:
"YH Scene Panel 4G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3146
,
"productType"
:
"scene"
,
"eps"
:
[
{
"zid"
:
"0004"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00038651"
,
"name"
:
"YH Curtain Panel 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3147
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00038652"
,
"name"
:
"YH Curtain Panel 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3148
,
"productType"
:
"curtain"
,
"eps"
:
[
{
"zid"
:
"0203"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0102"
}
}
]
},
{
"pid"
:
"00068661"
,
"name"
:
"GN Wall switch 1G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3149
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006"
}
}
]
},
{
"pid"
:
"00068662"
,
"name"
:
"GN Wall switch 2G"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3150
,
"productType"
:
"switch"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"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"
:
"01010004"
,
"name"
:
"YY Linear Dimmalbe Light Model G4 With Level"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3166
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010C0002"
,
"name"
:
"YY Linear Dimmalbe Light Model G4 With ColorTemp"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3167
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01010014"
,
"name"
:
"YY Live_Neutral_Wire Dimmalbe Light Model G4"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3168
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008"
}
}
]
},
{
"pid"
:
"010C0021"
,
"name"
:
"YY Dimmalbe Light Controler 12W With ColorTemp"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3169
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01010021"
,
"name"
:
"YY Dimmalbe Light Controler 12W With Level"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3170
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010C0031"
,
"name"
:
"YY Dimmalbe Light Controler 20W With ColorTemp"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3171
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01010031"
,
"name"
:
"YY Dimmalbe Light Controler 20W With Level"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3172
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010C0041"
,
"name"
:
"YY Dimmalbe Light Controler 8W With ColorTemp"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3173
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01010041"
,
"name"
:
"YY Dimmalbe Light Controler 8W With Level"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3174
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010C0051"
,
"name"
:
"YY Dimmalbe Light Controler 14W With ColorTemp"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3175
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"01010051"
,
"name"
:
"YY Dimmalbe Light Controler 14W With Level"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3176
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010D0062"
,
"name"
:
"YY RGBCW Light Belt Controller"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3177
,
"productType"
:
"colorDimmableLight"
,
"eps"
:
[
{
"zid"
:
"0102"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"pid"
:
"010D0061"
,
"name"
:
"YY CW Light Belt Controller"
,
"type"
:
"ZR"
,
"ota"
:
true
,
"b_pid"
:
3178
,
"productType"
:
"lightPanel"
,
"eps"
:
[
{
"zid"
:
"0103"
,
"cluster"
:
{
"client"
:
"0003:0019"
,
"server"
:
"0000:0003:0004:0005:0006:0008:0300"
}
}
]
},
{
"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"
}
}
]
}
]
}
\ No newline at end of file
tsl/ccu_12.json
deleted
100644 → 0
View file @
db4d645b
{
"schema"
:
"https://iot-ap.ikonke.com/model/ccu_12.json"
,
"productType"
:
"ccu"
,
"profile"
:
{
"heartbeat"
:
"3000"
,
"productCode"
:
"12"
,
"productName"
:
"主机"
},
"properties"
:
[
{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"ArmingState"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"安防状态"
,
"accessMode"
:
"rw"
,
"required"
:
false
}
],
"services"
:
[
{
"outputData"
:
[],
"identifier"
:
"set"
,
"inputData"
:
[
{
"identifier"
:
"ArmingState"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"安防状态"
}
],
"method"
:
"thing.service.property.set"
,
"name"
:
"set"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性设置"
},
{
"outputData"
:
[
{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
},
{
"identifier"
:
"ArmingState"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"安防状态"
}
],
"identifier"
:
"get"
,
"inputData"
:
[
"SN"
,
"MACAddress"
,
"LanIPAddress"
,
"WanIPAddress"
,
"IOTCloudState"
,
"Version"
,
"ArmingState"
],
"method"
:
"thing.service.property.get"
,
"name"
:
"get"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性获取"
},
{
"outputData"
:
[],
"identifier"
:
"reboot"
,
"inputData"
:
[],
"method"
:
"thing.service.reboot"
,
"name"
:
"reboot"
,
"required"
:
false
,
"callType"
:
"async"
,
"desc"
:
"重启"
},
{
"outputData"
:
[],
"identifier"
:
"addRoom"
,
"inputData"
:
[
{
"identifier"
:
"roomName"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间名字"
}
],
"method"
:
"thing.service.addRoom"
,
"name"
:
"addRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"添加房间"
},
{
"outputData"
:
[],
"identifier"
:
"addDeviceToRoom"
,
"inputData"
:
[
{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
},
{
"identifier"
:
"deviceCode"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"设备编码"
},
{
"identifier"
:
"epNum"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"10"
},
"type"
:
"text"
},
"name"
:
"设备路数"
}
],
"method"
:
"thing.service.addDeviceToRoom"
,
"name"
:
"addDeviceToRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"添加设备到房间"
},
{
"outputData"
:
[],
"identifier"
:
"removeDeviceFromRoom"
,
"inputData"
:
[
{
"identifier"
:
"deviceCode"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"设备编码"
},
{
"identifier"
:
"epNum"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"10"
},
"type"
:
"text"
},
"name"
:
"设备路数"
}
],
"method"
:
"thing.service.removeDeviceFromRoom"
,
"name"
:
"removeDeviceFromRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"移除设备从房间"
},
{
"outputData"
:
[],
"identifier"
:
"deleteRoom"
,
"inputData"
:
[
{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
}
],
"method"
:
"thing.service.deleteRoom"
,
"name"
:
"deleteRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"删除房间"
},
{
"outputData"
:
[],
"identifier"
:
"executeRoom"
,
"inputData"
:
[
{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
},
{
"identifier"
:
"productType"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"产品类别"
},
{
"identifier"
:
"action"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
[
{
"identifier"
:
"PowerSwitch"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"打开"
},
"type"
:
"bool"
},
"name"
:
"电源开关"
}
]
},
"name"
:
"动作"
}
],
"method"
:
"thing.service.executeRoom"
,
"name"
:
"executeRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"批量执行房间设备"
}
],
"events"
:
[
{
"outputData"
:
[
{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
},
{
"identifier"
:
"ArmingState"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"安防状态"
}
],
"identifier"
:
"property"
,
"method"
:
"thing.event.property.post"
,
"name"
:
"property"
,
"type"
:
"info"
,
"required"
:
true
,
"desc"
:
"属性上报"
},
{
"outputData"
:
[],
"identifier"
:
"rebootNotification"
,
"method"
:
"thing.event.rebootNotification.post"
,
"name"
:
"重启通知消息"
,
"type"
:
"info"
,
"required"
:
true
},
{
"outputData"
:
[
{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
}
],
"identifier"
:
"addRoomNotification"
,
"method"
:
"thing.event.addRoomNotification.post"
,
"name"
:
"房间添加通知消息"
,
"type"
:
"info"
,
"required"
:
true
},
{
"outputData"
:
[
{
"identifier"
:
"ErrorCode"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"正常"
},
"type"
:
"enum"
},
"name"
:
"故障代码"
}
],
"identifier"
:
"error"
,
"method"
:
"thing.event.error.post"
,
"name"
:
"故障上报"
,
"type"
:
"error"
,
"required"
:
true
}
]
}
\ No newline at end of file
tsl/ccu_12_scene.json
deleted
100644 → 0
View file @
db4d645b
{
"schema"
:
"https://iot-ap.ikonke.com/model/ccu_12_scene.json"
,
"productType"
:
"ccu"
,
"profile"
:
{
"heartbeat"
:
"3000"
,
"productCode"
:
"12"
,
"productName"
:
"主机"
},
"properties"
:
[{
"identifier"
:
"Scene"
,
"name"
:
"场景"
,
"accessMode"
:
"rw"
,
"required"
:
true
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"name"
,
"name"
:
"场景名字"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"sceneType"
,
"name"
:
"场景类型"
,
"dataType"
:
{
"type"
:
"enum"
,
"specs"
:
{
"0"
:
"情景模式"
,
"1"
:
"IFTTT"
,
"2"
:
"定时"
,
"3"
:
"多控"
}
}
},
{
"identifier"
:
"enable"
,
"name"
:
"启用"
,
"dataType"
:
{
"type"
:
"bool"
,
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"启用"
}
}
},
{
"identifier"
:
"triggers"
,
"name"
:
"触发条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"conditions"
,
"name"
:
"限制条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"actions"
,
"name"
:
"动作"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
}]
}
},
{
"identifier"
:
"triggers"
,
"name"
:
"触发场景"
,
"accessMode"
:
"rw"
,
"required"
:
true
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"items"
,
"name"
:
"记录"
,
"dataType"
:
{
"type"
:
"array"
,
"specs"
:
{
"size"
:
"128"
,
"item"
:
{
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"触发类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"deviceCode"
,
"name"
:
"设备唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"epNum"
,
"name"
:
"端点号"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"100"
}
}
},
{
"identifier"
:
"propertyName"
,
"name"
:
"属性名"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"compareType"
,
"name"
:
"标记类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"compareValue"
,
"name"
:
"比较值"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
},
"item1"
:
{
"name"
:
"定时时间"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"限制类型 trigger/timing"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"time"
,
"name"
:
"定时时间"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{}
}
},
{
"identifier"
:
"week"
,
"name"
:
"重复的周期"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{}
}
}]
}
}
}
}]
}
},
{
"identifier"
:
"conditions"
,
"name"
:
"限制条件"
,
"accessMode"
:
"rw"
,
"required"
:
true
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"items"
,
"name"
:
"记录"
,
"dataType"
:
{
"type"
:
"array"
,
"specs"
:
{
"size"
:
"128"
,
"item"
:
{
"name"
:
"时间限制条件"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"限制类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"startTime"
,
"name"
:
"开始时间 UTC时间 秒"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{}
}
},
{
"identifier"
:
"endTime"
,
"name"
:
"结束时间 UTC时间 秒"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{}
}
},
{
"identifier"
:
"crossDay"
,
"name"
:
"是否垮天"
,
"dataType"
:
{
"type"
:
"enum"
,
"specs"
:
{
"0"
:
"非跨天"
,
"1"
:
"垮天"
}
}
},
{
"identifier"
:
"repeat_days"
,
"name"
:
"重复的天 为空是不重复"
,
"dataType"
:
{
"type"
:
"array"
,
"specs"
:
{
"size"
:
"7"
,
"item"
:
{
"type"
:
"int"
,
"specs"
:
[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
}
}
}
}]
},
"item1"
:
{
"name"
:
"设备属性限制条件"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"触发类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"deviceCode"
,
"name"
:
"设备唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"epNum"
,
"name"
:
"端点号"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"100"
}
}
},
{
"identifier"
:
"propertyName"
,
"name"
:
"属性名"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"compareType"
,
"name"
:
"标记类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"compareValue"
,
"name"
:
"比较值"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
}
}
}
}]
}
},
{
"identifier"
:
"actions"
,
"name"
:
"执行动作"
,
"accessMode"
:
"rw"
,
"required"
:
true
,
"dataType"
:
{
"type"
:
"array"
,
"specs"
:
{
"size"
:
"128"
,
"item"
:
{
"name"
:
"设置属性"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"动作类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"deviceCode"
,
"name"
:
"设备唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"epNum"
,
"name"
:
"端点号"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"100"
}
}
},
{
"identifier"
:
"propertyName"
,
"name"
:
"属性名"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"propertyValue"
,
"name"
:
"属性值"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"delay"
,
"name"
:
"延迟时间 单位s"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"86400"
}
}
}]
},
"item1"
:
{
"name"
:
"批量动作"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"动作类型 action/thing/setProperty"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"productType"
,
"name"
:
"批量执行的产品品类"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"propertyName"
,
"name"
:
"属性名"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"propertyValue"
,
"name"
:
"属性值"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
},
"item2"
:
{
"name"
:
"嵌套场景"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"动作类型 action/scene"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"delay"
,
"name"
:
"延迟时间 单位s"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"86400"
}
}
}]
},
"item3"
:
{
"name"
:
"多控"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"动作类型 action/thing/group"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"deviceCode"
,
"name"
:
"设备唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"epNum"
,
"name"
:
"端点号"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"100"
}
}
}]
},
"item4"
:
{
"name"
:
"调用服务"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"动作类型 action/thing/invokeService"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"deviceCode"
,
"name"
:
"设备唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"identifier"
,
"name"
:
"服务唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"args"
,
"name"
:
"参数"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{
"desc"
:
"服务调用的传参"
}
}
}]
}
}
}
}],
"events"
:
[{
"identifier"
:
"addSceneNotification"
,
"name"
:
"添加场景通知"
,
"type"
:
"info"
,
"required"
:
true
,
"method"
:
"thing.event.addSceneNotification.post"
,
"outputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
},
{
"identifier"
:
"updateSceneNotification"
,
"name"
:
"修改场景通知"
,
"type"
:
"info"
,
"required"
:
true
,
"method"
:
"thing.event.updateSceneNotification.post"
,
"outputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
},
{
"identifier"
:
"deleteSceneNotification"
,
"name"
:
"删除场景通知"
,
"type"
:
"info"
,
"required"
:
true
,
"method"
:
"thing.event.deleteSceneNotification.post"
,
"outputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
},
{
"identifier"
:
"executeSceneNotification"
,
"name"
:
"执行场景通知"
,
"type"
:
"info"
,
"required"
:
true
,
"method"
:
"thing.event.executeSceneNotification.post"
,
"outputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
}],
"services"
:
[{
"identifier"
:
"addScene"
,
"name"
:
"addScene"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"添加场景"
,
"method"
:
"thing.service.addScene"
,
"inputData"
:
[{
"identifier"
:
"name"
,
"name"
:
"场景名字"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"sceneType"
,
"name"
:
"场景类型"
,
"dataType"
:
{
"type"
:
"enum"
,
"specs"
:
{
"0"
:
"情景模式"
,
"1"
:
"IFTTT"
,
"2"
:
"定时"
}
}
},
{
"identifier"
:
"enable"
,
"name"
:
"启用"
,
"dataType"
:
{
"type"
:
"bool"
,
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"启用"
}
}
},
{
"identifier"
:
"triggers"
,
"name"
:
"触发条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"conditions"
,
"name"
:
"限制条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"actions"
,
"name"
:
"动作"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
}],
"outputData"
:
[]
},
{
"identifier"
:
"updateScene"
,
"name"
:
"updateScene"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"修改场景"
,
"method"
:
"thing.service.updateScene"
,
"inputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"name"
,
"name"
:
"场景名字"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"sceneType"
,
"name"
:
"场景类型"
,
"dataType"
:
{
"type"
:
"enum"
,
"specs"
:
{
"0"
:
"情景模式"
,
"1"
:
"IFTTT"
,
"2"
:
"定时"
}
}
},
{
"identifier"
:
"enable"
,
"name"
:
"启用"
,
"dataType"
:
{
"type"
:
"bool"
,
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"启用"
}
}
},
{
"identifier"
:
"triggers"
,
"name"
:
"触发条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"conditions"
,
"name"
:
"限制条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"actions"
,
"name"
:
"动作"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
}],
"outputData"
:
[]
},
{
"identifier"
:
"deleteScene"
,
"name"
:
"deleteScene"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"删除场景"
,
"method"
:
"thing.service.deleteScene"
,
"inputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}],
"outputData"
:
[]
},
{
"identifier"
:
"executeScene"
,
"name"
:
"executeScene"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"执行场景"
,
"method"
:
"thing.service.executeScene"
,
"inputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}],
"outputData"
:
[]
},
{
"identifier"
:
"enableScene"
,
"name"
:
"enableScene"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"enable场景"
,
"method"
:
"thing.service.executeScene"
,
"inputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"enable"
,
"name"
:
"启用"
,
"dataType"
:
{
"type"
:
"bool"
,
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"启用"
}
}
}],
"outputData"
:
[]
}]
}
\ No newline at end of file
tsl/ccu_15.json
deleted
100644 → 0
View file @
db4d645b
{
"schema"
:
"https://iot-ap.ikonke.com/model/ccu_15.json"
,
"productType"
:
"ccu"
,
"profile"
:
{
"heartbeat"
:
"3000"
,
"productCode"
:
"15"
,
"productName"
:
"主机"
},
"properties"
:
[
{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"ArmingState"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"安防状态"
,
"accessMode"
:
"rw"
,
"required"
:
false
}
],
"services"
:
[
{
"outputData"
:
[],
"identifier"
:
"set"
,
"inputData"
:
[
{
"identifier"
:
"ArmingState"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"安防状态"
}
],
"method"
:
"thing.service.property.set"
,
"name"
:
"set"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性设置"
},
{
"outputData"
:
[
{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
},
{
"identifier"
:
"ArmingState"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"安防状态"
}
],
"identifier"
:
"get"
,
"inputData"
:
[
"SN"
,
"MACAddress"
,
"LanIPAddress"
,
"WanIPAddress"
,
"IOTCloudState"
,
"Version"
,
"ArmingState"
],
"method"
:
"thing.service.property.get"
,
"name"
:
"get"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性获取"
},
{
"outputData"
:
[],
"identifier"
:
"reboot"
,
"inputData"
:
[],
"method"
:
"thing.service.reboot"
,
"name"
:
"reboot"
,
"required"
:
false
,
"callType"
:
"async"
,
"desc"
:
"重启"
},
{
"outputData"
:
[],
"identifier"
:
"addRoom"
,
"inputData"
:
[
{
"identifier"
:
"roomName"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间名字"
}
],
"method"
:
"thing.service.addRoom"
,
"name"
:
"addRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"添加房间"
},
{
"outputData"
:
[],
"identifier"
:
"addDeviceToRoom"
,
"inputData"
:
[
{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
},
{
"identifier"
:
"deviceCode"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"设备编码"
},
{
"identifier"
:
"epNum"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"10"
},
"type"
:
"text"
},
"name"
:
"设备路数"
}
],
"method"
:
"thing.service.addDeviceToRoom"
,
"name"
:
"addDeviceToRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"添加设备到房间"
},
{
"outputData"
:
[],
"identifier"
:
"removeDeviceFromRoom"
,
"inputData"
:
[
{
"identifier"
:
"deviceCode"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"设备编码"
},
{
"identifier"
:
"epNum"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"10"
},
"type"
:
"text"
},
"name"
:
"设备路数"
}
],
"method"
:
"thing.service.removeDeviceFromRoom"
,
"name"
:
"removeDeviceFromRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"移除设备从房间"
},
{
"outputData"
:
[],
"identifier"
:
"deleteRoom"
,
"inputData"
:
[
{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
}
],
"method"
:
"thing.service.deleteRoom"
,
"name"
:
"deleteRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"删除房间"
},
{
"outputData"
:
[],
"identifier"
:
"executeRoom"
,
"inputData"
:
[
{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
},
{
"identifier"
:
"productType"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"产品类别"
},
{
"identifier"
:
"action"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
[
{
"identifier"
:
"PowerSwitch"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"打开"
},
"type"
:
"bool"
},
"name"
:
"电源开关"
}
]
},
"name"
:
"动作"
}
],
"method"
:
"thing.service.executeRoom"
,
"name"
:
"executeRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"批量执行房间设备"
}
],
"events"
:
[
{
"outputData"
:
[
{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
},
{
"identifier"
:
"ArmingState"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"安防状态"
}
],
"identifier"
:
"property"
,
"method"
:
"thing.event.property.post"
,
"name"
:
"property"
,
"type"
:
"info"
,
"required"
:
true
,
"desc"
:
"属性上报"
},
{
"outputData"
:
[],
"identifier"
:
"rebootNotification"
,
"method"
:
"thing.event.rebootNotification.post"
,
"name"
:
"重启通知消息"
,
"type"
:
"info"
,
"required"
:
true
},
{
"outputData"
:
[
{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
}
],
"identifier"
:
"addRoomNotification"
,
"method"
:
"thing.event.addRoomNotification.post"
,
"name"
:
"房间添加通知消息"
,
"type"
:
"info"
,
"required"
:
true
},
{
"outputData"
:
[
{
"identifier"
:
"ErrorCode"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"正常"
},
"type"
:
"enum"
},
"name"
:
"故障代码"
}
],
"identifier"
:
"error"
,
"method"
:
"thing.event.error.post"
,
"name"
:
"故障上报"
,
"type"
:
"error"
,
"required"
:
true
}
]
}
\ No newline at end of file
tsl/ccu_15_scene.json
deleted
100644 → 0
View file @
db4d645b
{
"schema"
:
"https://iot-ap.ikonke.com/model/ccu_15_scene.json"
,
"productType"
:
"ccu"
,
"profile"
:
{
"heartbeat"
:
"3000"
,
"productCode"
:
"15"
,
"productName"
:
"主机"
},
"properties"
:
[{
"identifier"
:
"Scene"
,
"name"
:
"场景"
,
"accessMode"
:
"rw"
,
"required"
:
true
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"name"
,
"name"
:
"场景名字"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"sceneType"
,
"name"
:
"场景类型"
,
"dataType"
:
{
"type"
:
"enum"
,
"specs"
:
{
"0"
:
"情景模式"
,
"1"
:
"IFTTT"
,
"2"
:
"定时"
,
"3"
:
"多控"
}
}
},
{
"identifier"
:
"enable"
,
"name"
:
"启用"
,
"dataType"
:
{
"type"
:
"bool"
,
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"启用"
}
}
},
{
"identifier"
:
"triggers"
,
"name"
:
"触发条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"conditions"
,
"name"
:
"限制条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"actions"
,
"name"
:
"动作"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
}]
}
},
{
"identifier"
:
"triggers"
,
"name"
:
"触发场景"
,
"accessMode"
:
"rw"
,
"required"
:
true
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"items"
,
"name"
:
"记录"
,
"dataType"
:
{
"type"
:
"array"
,
"specs"
:
{
"size"
:
"128"
,
"item"
:
{
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"触发类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"deviceCode"
,
"name"
:
"设备唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"epNum"
,
"name"
:
"端点号"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"100"
}
}
},
{
"identifier"
:
"propertyName"
,
"name"
:
"属性名"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"compareType"
,
"name"
:
"标记类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"compareValue"
,
"name"
:
"比较值"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
},
"item1"
:
{
"name"
:
"定时时间"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"限制类型 trigger/timing"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"time"
,
"name"
:
"定时时间"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{}
}
},
{
"identifier"
:
"week"
,
"name"
:
"重复的周期"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{}
}
}]
}
}
}
}]
}
},
{
"identifier"
:
"conditions"
,
"name"
:
"限制条件"
,
"accessMode"
:
"rw"
,
"required"
:
true
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"items"
,
"name"
:
"记录"
,
"dataType"
:
{
"type"
:
"array"
,
"specs"
:
{
"size"
:
"128"
,
"item"
:
{
"name"
:
"时间限制条件"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"限制类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"startTime"
,
"name"
:
"开始时间 UTC时间 秒"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{}
}
},
{
"identifier"
:
"endTime"
,
"name"
:
"结束时间 UTC时间 秒"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{}
}
},
{
"identifier"
:
"crossDay"
,
"name"
:
"是否垮天"
,
"dataType"
:
{
"type"
:
"enum"
,
"specs"
:
{
"0"
:
"非跨天"
,
"1"
:
"垮天"
}
}
},
{
"identifier"
:
"repeat_days"
,
"name"
:
"重复的天 为空是不重复"
,
"dataType"
:
{
"type"
:
"array"
,
"specs"
:
{
"size"
:
"7"
,
"item"
:
{
"type"
:
"int"
,
"specs"
:
[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
}
}
}
}]
},
"item1"
:
{
"name"
:
"设备属性限制条件"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"触发类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"deviceCode"
,
"name"
:
"设备唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"epNum"
,
"name"
:
"端点号"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"100"
}
}
},
{
"identifier"
:
"propertyName"
,
"name"
:
"属性名"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"compareType"
,
"name"
:
"标记类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"compareValue"
,
"name"
:
"比较值"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
}
}
}
}]
}
},
{
"identifier"
:
"actions"
,
"name"
:
"执行动作"
,
"accessMode"
:
"rw"
,
"required"
:
true
,
"dataType"
:
{
"type"
:
"array"
,
"specs"
:
{
"size"
:
"128"
,
"item"
:
{
"name"
:
"设置属性"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"动作类型"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"deviceCode"
,
"name"
:
"设备唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"epNum"
,
"name"
:
"端点号"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"100"
}
}
},
{
"identifier"
:
"propertyName"
,
"name"
:
"属性名"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"propertyValue"
,
"name"
:
"属性值"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"delay"
,
"name"
:
"延迟时间 单位s"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"86400"
}
}
}]
},
"item1"
:
{
"name"
:
"批量动作"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"动作类型 action/thing/setProperty"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"productType"
,
"name"
:
"批量执行的产品品类"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"propertyName"
,
"name"
:
"属性名"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"propertyValue"
,
"name"
:
"属性值"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
},
"item2"
:
{
"name"
:
"嵌套场景"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"动作类型 action/scene"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"delay"
,
"name"
:
"延迟时间 单位s"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"86400"
}
}
}]
},
"item3"
:
{
"name"
:
"多控"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"动作类型 action/thing/group"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"deviceCode"
,
"name"
:
"设备唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"epNum"
,
"name"
:
"端点号"
,
"dataType"
:
{
"type"
:
"int"
,
"specs"
:
{
"min"
:
"1"
,
"max"
:
"100"
}
}
}]
},
"item4"
:
{
"name"
:
"调用服务"
,
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"type"
,
"name"
:
"动作类型 action/thing/invokeService"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"deviceCode"
,
"name"
:
"设备唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"identifier"
,
"name"
:
"服务唯一标识"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"args"
,
"name"
:
"参数"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{
"desc"
:
"服务调用的传参"
}
}
}]
}
}
}
}],
"events"
:
[{
"identifier"
:
"addSceneNotification"
,
"name"
:
"添加场景通知"
,
"type"
:
"info"
,
"required"
:
true
,
"method"
:
"thing.event.addSceneNotification.post"
,
"outputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
},
{
"identifier"
:
"updateSceneNotification"
,
"name"
:
"修改场景通知"
,
"type"
:
"info"
,
"required"
:
true
,
"method"
:
"thing.event.updateSceneNotification.post"
,
"outputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
},
{
"identifier"
:
"deleteSceneNotification"
,
"name"
:
"删除场景通知"
,
"type"
:
"info"
,
"required"
:
true
,
"method"
:
"thing.event.deleteSceneNotification.post"
,
"outputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
},
{
"identifier"
:
"executeSceneNotification"
,
"name"
:
"执行场景通知"
,
"type"
:
"info"
,
"required"
:
true
,
"method"
:
"thing.event.executeSceneNotification.post"
,
"outputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}]
}],
"services"
:
[{
"identifier"
:
"addScene"
,
"name"
:
"addScene"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"添加场景"
,
"method"
:
"thing.service.addScene"
,
"inputData"
:
[{
"identifier"
:
"name"
,
"name"
:
"场景名字"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"sceneType"
,
"name"
:
"场景类型"
,
"dataType"
:
{
"type"
:
"enum"
,
"specs"
:
{
"0"
:
"情景模式"
,
"1"
:
"IFTTT"
,
"2"
:
"定时"
}
}
},
{
"identifier"
:
"enable"
,
"name"
:
"启用"
,
"dataType"
:
{
"type"
:
"bool"
,
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"启用"
}
}
},
{
"identifier"
:
"triggers"
,
"name"
:
"触发条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"conditions"
,
"name"
:
"限制条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"actions"
,
"name"
:
"动作"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
}],
"outputData"
:
[]
},
{
"identifier"
:
"updateScene"
,
"name"
:
"updateScene"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"修改场景"
,
"method"
:
"thing.service.updateScene"
,
"inputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"name"
,
"name"
:
"场景名字"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"sceneType"
,
"name"
:
"场景类型"
,
"dataType"
:
{
"type"
:
"enum"
,
"specs"
:
{
"0"
:
"情景模式"
,
"1"
:
"IFTTT"
,
"2"
:
"定时"
}
}
},
{
"identifier"
:
"enable"
,
"name"
:
"启用"
,
"dataType"
:
{
"type"
:
"bool"
,
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"启用"
}
}
},
{
"identifier"
:
"triggers"
,
"name"
:
"触发条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"conditions"
,
"name"
:
"限制条件"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
},
{
"identifier"
:
"actions"
,
"name"
:
"动作"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
{}
}
}],
"outputData"
:
[]
},
{
"identifier"
:
"deleteScene"
,
"name"
:
"deleteScene"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"删除场景"
,
"method"
:
"thing.service.deleteScene"
,
"inputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}],
"outputData"
:
[]
},
{
"identifier"
:
"executeScene"
,
"name"
:
"executeScene"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"执行场景"
,
"method"
:
"thing.service.executeScene"
,
"inputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
}],
"outputData"
:
[]
},
{
"identifier"
:
"enableScene"
,
"name"
:
"enableScene"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"enable场景"
,
"method"
:
"thing.service.executeScene"
,
"inputData"
:
[{
"identifier"
:
"sceneId"
,
"name"
:
"场景id"
,
"dataType"
:
{
"type"
:
"text"
,
"specs"
:
{
"length"
:
"255"
}
}
},
{
"identifier"
:
"enable"
,
"name"
:
"启用"
,
"dataType"
:
{
"type"
:
"bool"
,
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"启用"
}
}
}],
"outputData"
:
[]
}]
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment