productKey required | string |
productId required | string |
fileContent required | string |
modifier required | string |
{- "productId": "midea.zb2485.001",
- "productKey": "fjksdlfjldsjfkls",
- "modifier": "张三",
- "fileContent": "print hello"
}
正常值返回
{ "code": 200, "message": "ok" }
productKey required | string |
pageNo required | integer <int32> |
pageSize required | integer <int32> |
{- "productKey": "fjksdlfjldsjfkls",
- "pageNo": 1,
- "pageSize": 10
}
正常值返回
{ "message": "Ok", "code": 200, "data": { "total": 1, "records": [ { "id": { "timestamp": 1653119803, "date": "2022-05-21T07:56:43.000+0000" }, "productId": "midea.zb2485.001", "fileName": "d12", "fileSize": 17, "tmVersion": 1, "filePath": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/iot/20220521/1653120767266/d12.lua", "md5sum": "2fe370e83fee3b7a829b3850079178e8", "modifier": "张三", "modifyTime": "2022-05-21T08:12:47.416+0000", "createTime": "2022-05-21T07:56:43.281+0000" } ], "pageNo": 1, "pageSize": 10 } }
object | |
empty | boolean |
property name* additional property | object |
执行无参数方法
{- "fileContent": "--input=\"input\"\n--output=\"hello_input\"\nfunction hello(input) \n print ('hello'..input)\n end \n"
}
正常值返回
{ "code": 200, "message": "ok", "data": { "output": "output message" } }
object | |
empty | boolean |
property name* additional property | object |
执行无参数方法
{- "fileContent": "function hello() \n print 'hello'\n end \n",
- "functionName": "hello"
}
正常值返回
{- "code": 200,
- "message": "ok",
- "data": "zigbee"
}
productKey required | string |
productId required | string |
fileContent required | string |
modifier required | string |
productBase | string |
deviceType | integer <int32> |
version | integer <int32> |
{- "productId": "midea.zb2485.001",
- "productKey": "122162155",
- "modifier": "张三",
- "fileContent": "print hello"
}
正常值返回
{- "code": 200,
- "message": "ok"
}
productKey required | string |
pageNo required | integer <int32> |
pageSize required | integer <int32> |
{- "productKey": "midea.zb2485.001",
- "pageNo": 1,
- "pageSize": 10
}
正常值返回
{- "message": "Ok",
- "code": 200,
- "data": {
- "total": 1,
- "records": [
- {
- "id": {
- "timestamp": 1653119803,
- "date": "2022-05-21T07:56:43.000+0000"
}, - "productBase": "remac-smartLife",
- "productId": "midea.zb2485.001",
- "fileName": "d12",
- "fileSize": 17,
- "deviceType": 1,
- "version": 1,
- "md5sum": "2fe370e83fee3b7a829b3850079178e8",
- "modifier": "张三",
- "modifyTime": "2022-05-21T08:12:47.416+0000",
- "createTime": "2022-05-21T07:56:43.281+0000"
}
], - "pageNo": 1,
- "pageSize": 10
}
}
正常值返回
{ "code": 200, "message": "ok", "data": { "fileContent": "just do it" } }
正常值返回
{ "message": "Ok", "code": 200, "data": { "fileName": "zigbee_woshuai.switch.001_1.lua", "modifyTime": "2022-05-10T01:30:31.076+0000", "productId": "woshuai.switch.001", "createTime": "2022-05-06T03:34:53.252+0000", "fileSize": 7088, "md5sum": "a5ecb181ce48f2e98bd690a9f7ce0111", "modifier": null, "version": 1, "fileContent": "print hello world", } }
productKey required | string 所实现的设备产品的ID |
tmVersion required | string 版本 |
正常值返回
{ "message": "Ok", "code": 200, "data": { "fileName": "zigbee_woshuai.switch.001_1.lua", "modifyTime": "2022-05-10T01:30:31.076+0000", "productId": "woshuai.switch.001", "createTime": "2022-05-06T03:34:53.252+0000", "fileSize": 7088, "md5sum": "a5ecb181ce48f2e98bd690a9f7ce0111", "modifier": null, "version": 1, "fileContent": "print hello world", } }
productKey required | string 所实现的设备产品的ID |
debug required | boolean 是否调试脚本 |
正常值返回
{- "message": "Ok",
- "code": 200,
- "data": {
- "deviceType": 1,
- "fileName": "zigbee_woshuai.switch.001_1.lua",
- "modifyTime": "2022-05-10T01:30:31.076+0000",
- "productId": "woshuai.switch.001",
- "createTime": "2022-05-06T03:34:53.252+0000",
- "fileSize": 7088,
- "md5sum": "a5ecb181ce48f2e98bd690a9f7ce0111",
- "modifier": null,
- "version": 1,
- "fileContent": "print hello world",
- "productBase": "remac-smartLife"
}
}
正常值返回
{- "message": "Ok",
- "code": 200,
- "data": {
- "deviceType": 1,
- "fileName": "zigbee_woshuai.switch.001_1.lua",
- "modifyTime": "2022-05-10T01:30:31.076+0000",
- "productId": "woshuai.switch.001",
- "createTime": "2022-05-06T03:34:53.252+0000",
- "fileSize": 7088,
- "md5sum": "a5ecb181ce48f2e98bd690a9f7ce0111",
- "modifier": null,
- "version": 1,
- "fileContent": "print hello world",
- "productBase": "remac-smartLife"
}
}
{- "message": "Ok",
- "code": 200,
- "data": [
- {
- "functionName": "getDeviceType",
- "functionDesc": "获取设备类型",
- "remark": "返回zigbee、wifi、485等",
- "order": 1,
- "modifier": "admin",
- "modifyTime": "2022-05-20T10:58:18.722+0000",
- "createTime": "2022-05-20T10:58:18.722+0000"
}
]
}
id | string |
firstCategory required | string |
secondCategory required | string |
firstCategoryId required | integer <int32> |
secondCategoryId required | integer <int32> |
configType required | string |
tdKey required | string |
title required | string |
functionLabel required | string |
type | string |
defaultValue | object |
Array of objects (EnumInfoDto) | |
maxLen | integer <int32> |
min | integer <int32> |
max | integer <int32> |
step | integer <int32> |
ratio | integer <int32> |
readWrite | string |
sceneCare | string |
description required | string |
object | |
object |
{- "sceneCare": "full",
- "defaultValue": 0,
- "description": "开关",
- "readWrite": "rw",
- "type": "enumInt",
- "title": "开关",
- "enum": [
- {
- "description": "合闸",
- "value": 1
}, - {
- "description": "分闸",
- "value": 0
}
]
}
tokenInfo | string |
productKey required | string |
configType required | string |
tdKey required | string |
createMan required | string |
删除功能
{- "productId": "ming.test.001",
- "createMan": "admin",
- "configType": "properties",
- "tdKey": "power_1"
}
{ "message": "Ok", "code": 200 }
keyword | string |
secondCategory | string |
secondCategoryId | integer <int32> |
type | Array of strings |
pageNo | integer <int32> |
pageSize | integer <int32> |
enabled | integer <int32> |
{- "keyword": "设备的panel个数",
- "type": [
- "整形",
- "字符串"
], - "secondCategory": "智能空开"
}
{ "message": "Ok", "code": 200, "data": { "total": 290, "pages": 290, "list": [ { "tdValue": { "min": 11, "secondCategory": "热水器", "max": 22, "firstCategory": "家电", "readWrite": "rw", "step": 22, "id": "632045f61082be2188c7dbca", "configType": "properties", "title": "09135", "type": "rangeInt", "tdKey": "09135", "ratio": 1 }, "secondCategory": "热水器", "name": "家电/热水器", "firstCategory": "家电", "readWrite": "rw", "id": "632045f61082be2188c7dbca", "configType": "properties", "title": "09135", "tdKey": "09135", "enabled": 0 } ] } }
keyword | string |
secondCategory | string |
secondCategoryId | integer <int32> |
type | Array of strings |
pageNo | integer <int32> |
pageSize | integer <int32> |
enabled | integer <int32> |
{- "keyword": "设备的panel个数",
- "type": [
- "整形",
- "字符串"
], - "secondCategory": "智能空开"
}
{ "message": "Ok", "code": 200, "data": [ { "tdValue": { "sceneCare": "full", "defaultValue": 0, "description": "开关", "readWrite": "rw", "type": "enumInt", "title": "开关", "enum": [ { "description": "合闸", "value": 1 }, { "description": "分闸", "value": 0 } ] } } ] }
id | string |
firstCategory required | string |
secondCategory required | string |
firstCategoryId required | integer <int32> |
secondCategoryId required | integer <int32> |
configType required | string |
tdKey required | string |
title required | string |
functionLabel required | string |
type | string |
defaultValue | object |
Array of objects (EnumInfoDto) | |
maxLen | integer <int32> |
min | integer <int32> |
max | integer <int32> |
step | integer <int32> |
ratio | integer <int32> |
readWrite | string |
sceneCare | string |
description required | string |
object | |
object |
{- "sceneCare": "full",
- "defaultValue": 0,
- "description": "开关",
- "readWrite": "rw",
- "type": "enumInt",
- "title": "开关",
- "enum": [
- {
- "description": "合闸",
- "value": 1
}, - {
- "description": "分闸",
- "value": 0
}
]
}
productKey required | string |
pageNo required | integer <int32> |
pageSize required | integer <int32> |
{- "productKey": "",
- "pageNo": 1,
- "pageSize": 10
}
{ "message": "Ok", "code": 200, "data": { "total": 1, "records": [ { "id": "urn:midea-iot-spec-v1:thing-p:0000:TV:heiman.tv.ir", "td": { "description": "", "title": "电视红外遥控器WS2IRC", "version": { "td": "1.0.0" } } } ], "pageNo": 1, "pageSize": 2 } }
productKey required | string |
dataVersion required | integer <int32> |
pageNo required | integer <int32> >= 1 |
pageSize required | integer <int32> >= 1 |
{- "dataVersion": 1,
- "productKey": "f63bc6588a28410b833a82d3a303b7ef",
- "pageSize": 10,
- "pageNo": 1
}
{ "message": "Ok", "code": 200, "data": { "total": 7, "records": [ { "functionName": "设备的panel个数11122", "productKey": "c61bb402952646c29350c9700d07142e", "dataVersion": 1, "createMan": "admin", "createTime": "2022-07-01T07:15:21.767+0000", "tdKey": "panelQty2", "title": null, "operationType": "del", "operationTypeName": "删除", "fieldName": null, "oldValue": null, "currentValue": null, "batchNo": "18a323df0fc745c0a3f3d3d71da16b32" }, { "functionName": "设备的panel个数11122", "productKey": "c61bb402952646c29350c9700d07142e", "dataVersion": 1, "createMan": "admin", "createTime": "2022-07-01T07:12:38.769+0000", "tdKey": "panelQty2", "title": "功能点名称", "operationType": "edit", "operationTypeName": "编辑", "fieldName": "title", "oldValue": "设备的panel个数", "currentValue": "设备的panel个数2", "batchNo": "6dec0c93e2d64236911bd1f14789e69a" } ], "pageNo": 1, "pageSize": 2 } }
productKey required | string |
required | Array of objects (FunctionBaseVo) |
{- "productKey": "test.001",
- "functionList": [
- {
- "configType": "properties",
- "tdKey": "power_1"
}
]
}
{ "message": "Ok", "code": 200, "data": true }
tokenInfo | string |
productId required | string |
productKey required | string |
required | Array of objects (FunctionInfoDto) |
createMan required | string |
oldTdKey required | string |
{- "productId": "统一sinye.valve.201",
- "productKey": "f63bc6588a28410b833a82d3a303b7ef",
- "createMan": "admin",
- "oldTdKey": "dada",
- "functionList": [
- {
- "configType": "properties",
- "tdKey": "dada",
- "lastUpdateTime": 1656571061200,
- "isCustom": "1",
- "defaultValue": 1,
- "title": "sdfas",
- "type": "integer",
- "sceneCare": "none",
- "readWrite": "rw"
}
]
}
{ "message": "Ok", "code": 200 }
tokenInfo | string |
object | |
empty | boolean |
property name* additional property | object |
{- "productId": "ming.test.001",
- "productKey": "212515254415244",
- "functionList": [
- {
- "configType": "properties",
- "tdKey": "power_1",
- "tdValue": {
- "min": 0,
- "max": 5000,
- "defaultValue": 0,
- "sceneCare": "none",
- "description": "室内温度",
- "readWrite": "rw",
- "step": 10,
- "title": "室内温度",
- "type": "rangeInt",
- "ratio": 100
}
}
]
}
{ "message": "Ok", "code": 200 }
tokenInfo | string |
productId required | string |
productKey required | string |
required | Array of objects (FunctionInfoDto) |
createMan required | string |
{- "productId": "统一sinye.valve.201",
- "productKey": "f63bc6588a28410b833a82d3a303b7ef",
- "createMan": "admin",
- "functionList": [
- {
- "configType": "properties",
- "tdKey": "dada",
- "lastUpdateTime": 1656571061200,
- "isCustom": "1",
- "defaultValue": 1,
- "title": "sdfas",
- "type": "integer",
- "sceneCare": "none",
- "readWrite": "rw"
}
]
}
{ "message": "Ok", "code": 200 }
keyword | string |
secondCategory | string |
secondCategoryId | integer <int32> |
type | Array of strings |
pageNo | integer <int32> |
pageSize | integer <int32> |
enabled | integer <int32> |
{- "keyword": "string",
- "secondCategory": "string",
- "secondCategoryId": 0,
- "type": [
- "string"
], - "pageNo": 0,
- "pageSize": 0,
- "enabled": 0
}
tdKey required | string |
productKey | string |
configType required | string |
pageNo required | integer <int32> >= 1 |
pageSize required | integer <int32> >= 1 |
{- "tdKey": "pan",
- "productKey": "2df95fd281a34ca9810ad397e2208231",
- "configType": "actions",
- "pageSize": 10,
- "pageNo": 1
}
{ "message": "Ok", "code": 200, "data": { "total": 1, "records": [ { "_id": { "timestamp": 1656924635, "date": "2022-07-04T08:50:35.000+0000" }, "configType": "properties", "productKey": "2125232", "createTime": 13465465, "tdKey": "panelQty", "tdValue": { "defaultValue": 1, "sceneCare": "none", "readWrite": "r", "title": "设备的panel个数", "type": "integer" } } ], "pageNo": 1, "pageSize": 10 } }
{- "tdKey": "pan",
- "configType": "actions"
}
{ "message": "Ok", "code": 200, "data": { "records": [ { "_id": { "timestamp": 1656924635, "date": "2022-07-04T08:50:35.000+0000" }, "configType": "properties", "productKey": "2125232", "createTime": 13465465, "tdKey": "panelQty", "tdValue": { "defaultValue": 1, "sceneCare": "none", "readWrite": "r", "title": "设备的panel个数", "type": "integer" } } ] } }
[- "string"
]
{ "message": "Ok", "code": 200, "data": [{ "productKey": "1", "actions": {}, "properties": { "power_1": { "sceneCare": "full" }, "events": {} }] }
productId required | string |
productKey required | string |
required | Array of objects (SceneFunctionInfoDto) |
createMan required | string |
oldTdKey required | string |
isOld | boolean |
{- "productId": "0826test",
- "productKey": "cfb568894d854b9ea279d7d41fc95847",
- "createMan": "iot_developer",
- "oldTdKey": "11",
- "functionList": [
- {
- "configType": "actions",
- "tdKey": "11",
- "lastUpdateTime": 1661735785311,
- "title": "测试点",
- "sceneCare": "none",
- "description": "111111"
}
]
}
{ "message": "Ok", "code": 200 }
{ "message": "Ok", "code": 200, "data": { "security": [ "nosec_sc" ], "description": "", "id": "urn:midea-iot-spec-v1:thing-p:0000:remac.air.001", "title": "新风线控器(A3Z-XFWK-01)", "actions": {}, "tdVersion": "1.0.0", "securityDefinitions": { "nosec_sc": { "scheme": "nosec" } }, "@context": [ "https://www.w3.org/2019/wot/td/v1" ], "properties": { "curTemper": { "min": -5000, "max": 5000, "defaultValue": 0, "sceneCare": "none", "description": "室内温度", "readWrite": "rw", "step": 10, "title": "室内温度", "type": "rangeInt", "ratio": 100 }, "power_1": { "sceneCare": "full", "defaultValue": 0, "description": "", "readWrite": "rw", "type": "enumInt", "title": "开关", "enum": [ { "description": "打开", "value": 1 }, { "description": "关闭", "value": 0 } ] }, "windSpeed": { "sceneCare": "actionOnly", "defaultValue": 0, "description": "", "readWrite": "rw", "type": "enumInt", "title": "风速", "enum": [ { "description": "低风", "value": 0 }, { "description": "中风", "value": 1 }, { "description": "高风", "value": 2 } ] }, "version": { "sceneCare": "none", "readWrite": "r", "title": "设备版本", "type": "string", "maxLen": 50 } }, "events": {} } }
{ "message": "Ok", "code": 200, "data": { "security": [ "nosec_sc" ], "description": "", "id": "urn:midea-iot-spec-v1:thing-p:0000:remac.air.001", "title": "新风线控器(A3Z-XFWK-01)", "actions": {}, "tdVersion": "1.0.0", "securityDefinitions": { "nosec_sc": { "scheme": "nosec" } }, "@context": [ "https://www.w3.org/2019/wot/td/v1" ], "properties": { "curTemper": { "min": -5000, "max": 5000, "defaultValue": 0, "sceneCare": "none", "description": "室内温度", "readWrite": "rw", "step": 10, "title": "室内温度", "type": "rangeInt", "ratio": 100 }, "power_1": { "sceneCare": "full", "defaultValue": 0, "description": "", "readWrite": "rw", "type": "enumInt", "title": "开关", "enum": [ { "description": "打开", "value": 1 }, { "description": "关闭", "value": 0 } ] }, "windSpeed": { "sceneCare": "actionOnly", "defaultValue": 0, "description": "", "readWrite": "rw", "type": "enumInt", "title": "风速", "enum": [ { "description": "低风", "value": 0 }, { "description": "中风", "value": 1 }, { "description": "高风", "value": 2 } ] }, "version": { "sceneCare": "none", "readWrite": "r", "title": "设备版本", "type": "string", "maxLen": 50 } }, "events": {} } }
{ "message": "Ok", "code": 200, "data": [ { "code": "integer", "name": "整型" }, { "code": "string", "name": "字符串" }, { "code": "rangeInt", "name": "范围值" }, { "code": "enumStr", "name": "枚举(字符串)" }, { "code": "enumInt", "name": "枚举(整型)" } ] }
{ "message": "Ok", "code": 200, "data": { "productKey": "cfb568894d854b9ea279d7d41fc95847", "td": { "properties": { "panelQty": { "title": "设备的panel个数", "sceneCare": "conditionOnly", "description": "设备的pane" }, "maxTemper": { "title": "最大设置温度", "sceneCare": "none", "description": "最大设置温度" } }, "actions": {}, "events": {} } } }
tokenInfo | string |
productKey required | string |
configType required | string |
tdKey required | string |
title required | string |
type | string |
defaultValue | object |
Array of objects (EnumInfoDto) | |
maxLen | integer <int32> |
min | integer <int32> |
max | integer <int32> |
step | integer <int32> |
ratio | integer <int32> |
sceneCare | string |
description required | string |
readWrite | string |
object | |
object | |
isCustom | string |
lastUpdateTime | integer <int64> |
functionLabel | string |
isRequired | boolean |
{- "productKey": "string",
- "configType": "string",
- "tdKey": "string",
- "title": "string",
- "type": "string",
- "defaultValue": { },
- "enumList": [
- {
- "value": { },
- "description": "string"
}
], - "maxLen": 0,
- "min": 0,
- "max": 0,
- "step": 0,
- "ratio": 0,
- "sceneCare": "string",
- "description": "string",
- "readWrite": "string",
- "input": {
- "innerMap": {
- "property1": { },
- "property2": { }
}, - "empty": true,
- "property1": { },
- "property2": { }
}, - "output": {
- "innerMap": {
- "property1": { },
- "property2": { }
}, - "empty": true,
- "property1": { },
- "property2": { }
}, - "isCustom": "string",
- "lastUpdateTime": 0,
- "functionLabel": "string",
- "isRequired": true
}
tdId required | string 所实现物模型TD的Id |
productBase required | string 所实现的设备产品的产品库 |
productId required | string 所实现的设备产品的ID |
object | |
empty | boolean |
property name* additional property | object |
美的IoT物模型平台
{- "method": "third-party-MideaIoT"
}
object (ObjectId) | |
productBase | string |
productId | string |
productKey | string |
fileName | string |
fileSize | integer <int64> |
deviceType | integer <int32> |
version | integer <int32> |
filePath | string |
md5sum | string |
modifier | string |
modifyTime | string <date-time> |
createTime | string <date-time> |
tmVersion | integer <int32> |
debug | boolean |
lastestVersion | boolean |
type | string |
{- "id": {
- "timestamp": 0,
- "date": "2019-08-24T14:15:22Z"
}, - "productBase": "string",
- "productId": "string",
- "productKey": "string",
- "fileName": "string",
- "fileSize": 0,
- "deviceType": 0,
- "version": 0,
- "filePath": "string",
- "md5sum": "string",
- "modifier": "string",
- "modifyTime": "2019-08-24T14:15:22Z",
- "createTime": "2019-08-24T14:15:22Z",
- "tmVersion": 0,
- "debug": true,
- "lastestVersion": true,
- "type": "string"
}
"string"
productBase required | string Example: remac-smartLife 所实现的设备产品的产品库 |
productId required | Array of strings Example: productId=light.001,light.002 所实现的设备产品的ID |
identifier | string Example: identifier=000016111MSGWG139A70FBF2167F0000 网关序列号 |
[ { "id": { "timestamp": 1648545381, "date": "2022-03-29T09:16:21.000+0000" }, "productBase": "remac-smartLife", "productId": "light.001", "fileName": null, "fileSize": null, "deviceType": 1, "version": 1, "filePath": "https://mideazy-public.oss-cn-hangzhou.aliyuncs.com/luaFile/test.lua", "md5sum": "f2d2043faea3654a289dcd22a8a9536d", "modifier": null, "modifyTime": null } ]
tdId required | string |
object | |
empty | boolean |
property name* additional property | object |
查询可读属性
{- "simpleFilters": {
- "readable": true
}
}
"string"
tdId required | string |
object | |
empty | boolean |
property name* additional property | object |
查询带输入参数的操作
{- "simpleFilters": {
- "hasInput": true
}
}
"string"
modelId | string |
debug | boolean |
actions | Array of strings |
coditions | Array of strings |
functionCollections | Array of strings |
{- "modelId": "string",
- "debug": true,
- "actions": [
- "string"
], - "coditions": [
- "string"
], - "functionCollections": [
- "string"
]
}
{ }
object | |
empty | boolean |
property name* additional property | object |
{- "innerMap": {
- "property1": { },
- "property2": { }
}, - "empty": true,
- "property1": { },
- "property2": { }
}
{ }
materialCode | string |
debug | boolean |
actions | Array of strings |
coditions | Array of strings |
{- "materialCode": "string",
- "debug": true,
- "actions": [
- "string"
], - "coditions": [
- "string"
]
}
{ }
productKey | string |
debug | boolean |
actions | Array of strings |
coditions | Array of strings |
functionCollections | Array of strings |
产品key
{- "productKey": "b1a98426a8b64d579719a1f8f2b04730",
- "debug": false
}
[- {
- "standard": 0,
- "certType": 1,
- "modelNum": "0xCE",
- "connectType": "1",
- "productKey": "b1a98426a8b64d579719a1f8f2b04730",
- "isEnable": false,
- "productSku": "",
- "isRemoved": false,
- "appId": 1001,
- "imageUrl": "",
- "createdTime": 1654854783000,
- "isReference": false,
- "needLuaMapping": false,
- "encryptSalt": "8de30f059f034ab1927408dc47b17856",
- "id": 100000099,
- "tdSwitch": 0,
- "brand": "美的",
- "publishStatus": 1,
- "thirdModelNum": "",
- "updatedTime": 1666836516000,
- "luaSwitch": 0,
- "nodeType": 1,
- "supportMqtt5": false,
- "name": "wifi新风线控器",
- "tenantId": 1,
- "initialize": 1,
- "isVirtual": 0,
- "secondCategoryId": 70,
- "categoryId": 2
}
]
tdIdList required | Array of strings |
identifier | string |
debugTd | integer <int32> |
sceneCare | string |
已发布物模型
{- "tdIdList": [
- "urn:midea-iot-spec-v1:thing-p:0000:1212211",
- "urn:midea-iot-spec-v1:thing-p:0000:hongwaimulian"
]
}
[- {
- "security": [
- "nosec_sc"
], - "description": "",
- "id": "urn:midea-iot-spec-v1:thing-p:0000:1212211",
- "tdVersion": "1.0.0",
- "securityDefinitions": {
- "nosec_sc": {
- "scheme": "nosec"
}
}, - "actions": { },
- "properties": {
- "sadss": {
- "lastUpdateTime": 1656750673590,
- "isCustom": "1",
- "enum": [
- {
- "value": "1",
- "description": "1"
}
], - "title": "asda",
- "type": "enumInt",
- "sceneCare": "none",
- "description": "qeqwe",
- "readWrite": "rw"
}
}, - "events": { }
}
]
productKeyList required | Array of strings |
debugTd | integer <int32> |
已发布物模型
{- "productKeyList": [
- "bdcfbb93c1b841b6a2a0d5266125a94a",
- "6cb77c936ced4658ba1cc21a09ae8b2b"
]
}
[- {
- "security": [
- "nosec_sc"
], - "description": "",
- "productKey": "bdcfbb93c1b841b6a2a0d5266125a94a",
- "id": "urn:midea-iot-spec-v1:thing-p:0000:1212211",
- "tdVersion": "1.0.0",
- "securityDefinitions": {
- "nosec_sc": {
- "scheme": "nosec"
}
}, - "actions": { },
- "properties": {
- "sadss": {
- "lastUpdateTime": 1656750673590,
- "isCustom": "1",
- "enum": [
- {
- "value": "1",
- "description": "1"
}
], - "title": "asda",
- "type": "enumInt",
- "sceneCare": "none",
- "description": "qeqwe",
- "readWrite": "rw"
}
}, - "events": { }
}
]
modelIdList required | Array of strings |
debugTd | integer <int32> |
identifier | string |
sceneCare | string |
已发布物模型
{- "modelIdList": [
- "1212211",
- "hongwaimulian"
], - "identifier": "000016111MSGWG04BC325FBD22D70000",
- "sceneCare": "none"
}
"string"
参数样例参考/thingDesc/{tdId}/filterProperties
kind required | string 关联类型 |
fk required | string 关联对象的标识符 |
object | |
empty | boolean |
property name* additional property | object |
{- "innerMap": {
- "property1": { },
- "property2": { }
}, - "empty": true,
- "property1": { },
- "property2": { }
}
"string"
参数样例参考/thingDesc/{tdId}/filterActions
kind required | string 关联类型 |
fk required | string 关联对象的标识符 |
object | |
empty | boolean |
property name* additional property | object |
{- "innerMap": {
- "property1": { },
- "property2": { }
}, - "empty": true,
- "property1": { },
- "property2": { }
}
"string"
[- {
- "description": "",
- "id": "urn:midea-iot-spec-v1:thing-p:0000:TV:heiman.tv.ir",
- "title": "电视红外遥控器WS2IRC",
- "version": {
- "td": "1.0.0"
}
}, - {
- "description": "",
- "id": "urn:midea-iot-spec-v1:thing-p:0000:camera:camera-ezviz",
- "title": "萤石摄像头",
- "version": {
- "td": "1.0.0"
}
}
]
tdId required | string |
debugTd | integer <int32> |
带属性和事件的TD
{- "id": "urn:midea-iot-spec-v1:thing-p:0000:09:E00000M3",
- "title": "美的智能门锁",
- "description": "美的智能门锁:M3,modelId=midea.doorlock.031",
- "properties": {
- "doorLockState": {
- "description": "True:开门,False:关门",
- "title": "门状态",
- "type": "boolean",
- "readOnly": true
}, - "doorAlarmInfo": {
- "title": "报警信息",
- "type": "object",
- "readOnly": true,
- "properties": {
- "lockOpenOutside": {
- "type": "boolean",
- "title": "门外开锁",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "lockClose": {
- "type": "boolean",
- "title": "门关",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "lockBellRing": {
- "type": "boolean",
- "title": "门铃响",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "lockedInside": {
- "type": "boolean",
- "title": "门被反锁",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "lockPassword": {
- "type": "boolean",
- "title": "密码锁定",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "lockCard": {
- "type": "boolean",
- "title": "卡片锁定",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "lockFinger": {
- "type": "boolean",
- "title": "指纹锁定",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "antiPryingAlarm": {
- "type": "boolean",
- "title": "防撬报警",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "doorBell": {
- "type": "boolean",
- "title": "门铃响",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "lowPower": {
- "type": "boolean",
- "title": "低电量",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "openDoorFail": {
- "type": "boolean",
- "title": "开门失败",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "closeDoorFail": {
- "type": "boolean",
- "title": "关门失败",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "lockFace": {
- "type": "boolean",
- "title": "人脸锁定",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "leaveHomeAlarm": {
- "type": "boolean",
- "title": "离家模式报警",
- "description": "True:触发,False:未触发",
- "readOnly": true
}, - "safeHomeAlarm": {
- "type": "boolean",
- "title": "居家安防",
- "description": "True:触发,False:未触发",
- "readOnly": true
}
}
}, - "batteryPower": {
- "title": "电量",
- "unit": "percentage",
- "type": "integer",
- "minimum": 1,
- "maximum": 101,
- "interval": 1,
- "readOnly": true
}, - "volume": {
- "title": "音量",
- "unit": "percentage",
- "type": "integer",
- "minimum": 1,
- "maximum": 100,
- "interval": 1,
- "readOnly": true
}
}, - "actions": { },
- "events": {
- "userEditNotify": {
- "title": "添加/删除用户上报",
- "data": {
- "type": "object",
- "properties": { },
- "timestamp": {
- "description": "开锁时间",
- "type": "dateTime"
}
}
}, - "lowerPowerNotify": {
- "title": "电量过低告警上报",
- "data": {
- "type": "object",
- "properties": {
- "batteryPower": {
- "title": "电量",
- "type": "integer",
- "unit": "percentage",
- "minimum": 1,
- "maximum": 100
}, - "timestamp": {
- "description": "开锁时间",
- "type": "dateTime"
}
}
}
}, - "doorOpenRecordNotify": {
- "title": "用户开锁记录上报",
- "data": {
- "type": "object",
- "properties": {
- "openMethod": {
- "title": "开锁方式",
- "enum": [
- {
- "value": "password",
- "description": "密码"
}, - {
- "value": "fingerprint",
- "description": "指纹"
}, - {
- "value": "icCard",
- "description": "IC卡"
}, - {
- "value": "",
- "description": "机械钥匙"
}, - {
- "value": "",
- "description": "无线遥控"
}, - {
- "value": "",
- "description": "应急电源"
}, - {
- "value": "",
- "description": "APP"
}, - {
- "value": "",
- "description": "蓝牙"
}, - {
- "value": "",
- "description": "虹膜识别"
}, - {
- "value": "",
- "description": "人脸识别"
}, - {
- "value": "",
- "description": "门内开锁"
}, - {
- "value": "",
- "description": "管理员密码"
}, - {
- "value": "",
- "description": "管理员指纹"
}, - {
- "value": "",
- "description": "管理员门卡"
}, - {
- "value": "",
- "description": "临时密码"
}, - {
- "value": "",
- "description": "临时指纹"
}, - {
- "value": "",
- "description": "临时门卡"
}
], - "type": "string"
}, - "openUser": {
- "title": "开锁用户",
- "type": "object",
- "properties": {
- "userNo": {
- "title": "用户编号",
- "type": "integer"
}, - "userType": {
- "title": "用户类型",
- "type": "integer"
}, - "timestamp": {
- "title": "开锁时间",
- "type": "dateTime"
}
}
}
}
}
}
}, - "version": {
- "td": "1.0.0"
}, - "@context": [
- "https: //www.w3.org/2019/wot/td/v1"
]
}
thingId required | string |
requestId required | string 调试ID |
object | |
empty | boolean |
property name* additional property | object |
{- "msgId": "消息ID",
- "productId": "设备型号",
- "data": {
- "paramA": "xxx",
- "paramB": "xxx"
}, - "extras": {
- "gatewaySn": "网关SN"
}
}
thingId required | string |
actionName required | string |
requestId required | string 调试ID |
object | |
empty | boolean |
property name* additional property | object |
{- "msgId": "消息ID",
- "productId": "设备型号",
- "input": {
- "paramA": "xxx",
- "paramB": "xxx"
}, - "extras": {
- "gatewaySn": "网关SN"
}
}
gatewaySn required | string |
requestId required | string 调试ID |
object | |
empty | boolean |
property name* additional property | object |
{- "msgId": "消息ID"
}
{ "code":200 "msg":"success" "data":{} }
msgId | string |
gatewaySn required | string |
tmId required | string |
{- "msgId": "消息ID",
- "gatewaySn": "产品库代号",
- "productId": "产品ID",
- "tmId": "lua脚本ID"
}
{ "code":200 "msg":"success" "data":{} }
identifier required | string000016111MSGWG\d{2}[0-9A-Z]{12}0000 |
modelIds | Array of strings [ 1 .. 2147483647 ] items |
validate | boolean |
{- "identifier": "identifier.001",
- "validate": true,
- "modelIds": [
- "modelId.001",
- "modelId.002"
]
}
{ "message": "Ok", "code": 200, "data": {} }
businessId required | string |
businessType required | string |
fileName | string |
remoteFilename | string |
fileExt | string |
contentType | string |
fileServer | string |
privacy | string |
businessGetUri | string |
businessServiceName | string |
fileBase64Content required | string |
{- "businessId": "string",
- "businessType": "string",
- "fileName": "string",
- "remoteFilename": "string",
- "fileExt": "string",
- "contentType": "string",
- "fileServer": "string",
- "privacy": "string",
- "businessGetUri": "string",
- "businessServiceName": "string",
- "fileBase64Content": "string"
}
businessId required | string |
businessType required | string |
fileName | string |
remoteFilename | string |
fileExt | string |
contentType | string |
fileServer | string |
privacy | string |
businessGetUri | string |
businessServiceName | string |
fileBase64Content required | string |
{- "businessId": "string",
- "businessType": "string",
- "fileName": "string",
- "remoteFilename": "string",
- "fileExt": "string",
- "contentType": "string",
- "fileServer": "string",
- "privacy": "string",
- "businessGetUri": "string",
- "businessServiceName": "string",
- "fileBase64Content": "string"
}
businessId required | string |
businessType required | string |
fileName | string |
remoteFilename | string |
fileExt | string |
contentType | string |
fileServer | string |
privacy | string |
businessGetUri | string |
businessServiceName | string |
fileBase64Content required | string |
{- "businessId": "string",
- "businessType": "string",
- "fileName": "string",
- "remoteFilename": "string",
- "fileExt": "string",
- "contentType": "string",
- "fileServer": "string",
- "privacy": "string",
- "businessGetUri": "string",
- "businessServiceName": "string",
- "fileBase64Content": "string"
}
{ "message": "Ok", "code": 200, "data": { "filePath": "http://www.midea.com/hello.txt", "md5sum": "c5c834c80e257a6f4dcf03210c74fc" } }