|
楼主 |
发表于 2021-1-6 15:53:36
|
显示全部楼层
谢谢!不过我还是搞不定啊。
mrbond.airer.m1pro:
{
"type": "urn:miot-spec-v2:device:airer:0000A00D:mrbond-m1pro:1",
"description": "Airer",
"services": [
{
"iid": 1,
"type": "urn:miot-spec-v2:service:device-information:00007801:mrbond-m1pro:1",
"description": "Device Information",
"properties": [
{
"iid": 1,
"type": "urn:miot-spec-v2:property:manufacturer:00000001:mrbond-m1pro:1",
"description": "Device Manufacturer",
"format": "string",
"access": [
"read"
]
},
{
"iid": 2,
"type": "urn:miot-spec-v2:property:model:00000002:mrbond-m1pro:1",
"description": "Device Model",
"format": "string",
"access": [
"read"
]
},
{
"iid": 3,
"type": "urn:miot-spec-v2:property:serial-number:00000003:mrbond-m1pro:1",
"description": "Device Serial Number",
"format": "string",
"access": [
"read"
]
},
{
"iid": 4,
"type": "urn:miot-spec-v2:property:firmware-revision:00000005:mrbond-m1pro:1",
"description": "Current Firmware Version",
"format": "string",
"access": [
"read"
]
}
]
},
{
"iid": 2,
"type": "urn:miot-spec-v2:service:airer:00007817:mrbond-m1pro:1",
"description": "Airer",
"properties": [
{
"iid": 1,
"type": "urn:miot-spec-v2:property:motor-control:00000038:mrbond-m1pro:1",
"description": "Motor Control",
"format": "uint8",
"access": [
"write"
],
"value-list": [
{
"value": 0,
"description": "Pause"
},
{
"value": 1,
"description": "Up"
},
{
"value": 2,
"description": "Down"
}
]
},
{
"iid": 2,
"type": "urn:miot-spec-v2:property:dryer:00000027:mrbond-m1pro:1",
"description": "Dryer",
"format": "bool",
"access": [
"read",
"write",
"notify"
]
},
{
"iid": 3,
"type": "urn:miot-spec-v2:property:drying-level:0000003B:mrbond-m1pro:1",
"description": "Drying Level",
"format": "uint8",
"access": [
"read",
"write",
"notify"
],
"value-list": [
{
"value": 1,
"description": "Level1"
},
{
"value": 2,
"description": "Level2"
},
{
"value": 3,
"description": "Level3"
},
{
"value": 4,
"description": "Level4"
}
]
}
]
},
{
"iid": 3,
"type": "urn:miot-spec-v2:service:light:00007802:mrbond-m1pro:1",
"description": "Light",
"properties": [
{
"iid": 1,
"type": "urn:miot-spec-v2:property:on:00000006:mrbond-m1pro:1",
"description": "Switch Status",
"format": "bool",
"access": [
"read",
"write",
"notify"
]
}
]
}
]
}
小米晾衣架:
{
"type": "urn:miot-spec-v2:device:airer:0000A00D:hyd-znlyj1:1",
"description": "Airer",
"services": [
{
"iid": 1,
"type": "urn:miot-spec-v2:service:device-information:00007801:hyd-znlyj1:1",
"description": "Device Information",
"properties": [
{
"iid": 1,
"type": "urn:miot-spec-v2:property:manufacturer:00000001:hyd-znlyj1:1",
"description": "Device Manufacturer",
"format": "string",
"access": [
"read"
]
},
{
"iid": 2,
"type": "urn:miot-spec-v2:property:model:00000002:hyd-znlyj1:1",
"description": "Device Model",
"format": "string",
"access": [
"read"
]
},
{
"iid": 3,
"type": "urn:miot-spec-v2:property:serial-number:00000003:hyd-znlyj1:1",
"description": "Device Serial Number",
"format": "string",
"access": [
"read"
]
},
{
"iid": 4,
"type": "urn:miot-spec-v2:property:firmware-revision:00000005:hyd-znlyj1:1",
"description": "Current Firmware Version",
"format": "string",
"access": [
"read"
]
}
]
},
{
"iid": 2,
"type": "urn:miot-spec-v2:service:airer:00007817:hyd-znlyj1:1",
"description": "Airer",
"properties": [
{
"iid": 1,
"type": "urn:miot-spec-v2:property:fault:00000009:hyd-znlyj1:1",
"description": "Device Fault",
"format": "uint8",
"access": [
"read",
"notify"
],
"unit": "none",
"value-list": [
{
"value": 0,
"description": "No Faults"
},
{
"value": 1,
"description": "Obstruction"
},
{
"value": 2,
"description": "Overweight"
},
{
"value": 3,
"description": "Overheated"
}
]
},
{
"iid": 2,
"type": "urn:miot-spec-v2:property:motor-control:00000038:hyd-znlyj1:1",
"description": "Motor Control",
"format": "uint8",
"access": [
"write"
],
"unit": "none",
"value-list": [
{
"value": 0,
"description": "Pause"
},
{
"value": 1,
"description": "Up"
},
{
"value": 2,
"description": "Down"
}
]
},
{
"iid": 3,
"type": "urn:miot-spec-v2:property:current-position:00000039:hyd-znlyj1:1",
"description": "Current Position",
"format": "uint8",
"access": [
"read",
"notify"
],
"unit": "none",
"value-range": [
0,
2,
1
]
},
{
"iid": 4,
"type": "urn:miot-spec-v2:property:status:00000007:hyd-znlyj1:1",
"description": "Status",
"format": "uint8",
"access": [
"read",
"notify"
],
"unit": "none",
"value-list": [
{
"value": 0,
"description": "Stopped"
},
{
"value": 1,
"description": "Up"
},
{
"value": 2,
"description": "Down"
},
{
"value": 3,
"description": "Pause"
}
]
}
]
},
{
"iid": 3,
"type": "urn:miot-spec-v2:service:light:00007802:hyd-znlyj1:1",
"description": "Light",
"properties": [
{
"iid": 1,
"type": "urn:miot-spec-v2:property:on:00000006:hyd-znlyj1:1",
"description": "Switch Status",
"format": "bool",
"access": [
"read",
"write",
"notify"
],
"unit": "none"
}
]
}
]
}
两款只是功能上有点差别,这个也是很接近的。特别是灯应该是一样的,但是直接用插件都没办法显示状态或控制。
用命令行猜也全是 code:-4004
要原因可能还是我没搞懂这些控制命令怎么用的。
|
|