|
发表于 2021-1-10 21:39:10
|
显示全部楼层
小米窗帘的piid和siid怎么填,我填出来的状态怎么是相反的?楼主帮我看看
{
"type": "urn:miot-spec-v2:device:curtain:0000A00C:lumi-hmcn01:1",
"description": "Curtain",
"services": [{
"iid": 1,
"type": "urn:miot-spec-v2:service:device-information:00007801:lumi-hmcn01:1",
"description": "Device Information",
"properties": [{
"iid": 1,
"type": "urn:miot-spec-v2:property:manufacturer:00000001:lumi-hmcn01:1",
"description": "Device Manufacturer",
"format": "string",
"access": ["read"]
}, {
"iid": 2,
"type": "urn:miot-spec-v2:property:model:00000002:lumi-hmcn01:1",
"description": "Device Model",
"format": "string",
"access": ["read"]
}, {
"iid": 3,
"type": "urn:miot-spec-v2:property:serial-number:00000003:lumi-hmcn01:1",
"description": "Device Serial Number",
"format": "string",
"access": ["read"]
}, {
"iid": 4,
"type": "urn:miot-spec-v2:property:firmware-revision:00000005:lumi-hmcn01:1",
"description": "Current Firmware Version",
"format": "string",
"access": ["read"]
}]
}, {
"iid": 2,
"type": "urn:miot-spec-v2:service:curtain:00007816:lumi-hmcn01:1",
"description": "Curtain",
"properties": [{
"iid": 1,
"type": "urn:miot-spec-v2:property:fault:00000009:lumi-hmcn01:1",
"description": "Device Fault",
"format": "uint8",
"access": ["read", "notify"],
"unit": "none",
"value-list": [{
"value": 0,
"description": "No Faults"
}]
}, {
"iid": 2,
"type": "urn:miot-spec-v2:property:motor-control:00000038:lumi-hmcn01:1",
"description": "Motor Control",
"format": "uint8",
"access": ["write"],
"unit": "none",
"value-list": [{
"value": 0,
"description": "Pause"
}, {
"value": 1,
"description": "Open"
}, {
"value": 2,
"description": "Close"
}, {
"value": 3,
"description": "Toggle"
}]
}, {
"iid": 3,
"type": "urn:miot-spec-v2:property:current-position:00000039:lumi-hmcn01:1",
"description": "Current Position",
"format": "uint8",
"access": ["read", "notify"],
"unit": "percentage",
"value-range": [0, 100, 1]
}, {
"iid": 6,
"type": "urn:miot-spec-v2:property:status:00000007:lumi-hmcn01:1",
"description": "Status",
"format": "uint8",
"access": ["read", "notify"],
"unit": "none",
"value-list": [{
"value": 0,
"description": "Stopped"
}, {
"value": 1,
"description": "Opening"
}, {
"value": 2,
"description": "Closing"
}]
}, {
"iid": 7,
"type": "urn:miot-spec-v2:property:target-position:0000003A:lumi-hmcn01:1",
"description": "Target Position",
"format": "uint8",
"access": ["read", "write", "notify"],
"unit": "percentage",
"value-range": [0, 100, 1]
}]
}, {
"iid": 6,
"type": "urn:miot-spec-v2:service:identify:0000782C:lumi-hmcn01:1",
"description": "Identify",
"actions": [{
"iid": 1,
"type": "urn:miot-spec-v2:action:identify:00002801:lumi-hmcn01:1",
"description": "Identify",
"in": [],
"out": []
}]
}, {
"iid": 4,
"type": "urn:lumi-spec:service:curtain-cfg:00007802:lumi-hmcn01:1",
"description": "curtain-cfg",
"properties": [{
"iid": 1,
"type": "urn:lumi-spec:property:manual-enabled:00000001:lumi-hmcn01:1",
"description": "manual-enabled",
"format": "int32",
"access": ["read", "notify", "write"],
"unit": "none",
"value-list": [{
"value": 0,
"description": "Disable"
}, {
"value": 1,
"description": "Enable"
}]
}, {
"iid": 2,
"type": "urn:lumi-spec:property:polarity:00000002:lumi-hmcn01:1",
"description": "polarity",
"format": "int32",
"access": ["read", "notify", "write"],
"unit": "none",
"value-list": [{
"value": 0,
"description": "Positive"
}, {
"value": 1,
"description": "Reverse"
}]
}, {
"iid": 3,
"type": "urn:lumi-spec:property:pos-limit:00000003:lumi-hmcn01:1",
"description": "pos-limit",
"format": "int32",
"access": ["read", "notify", "write"],
"unit": "none",
"value-list": [{
"value": 0,
"description": "Unlimit"
}, {
"value": 1,
"description": "Limit"
}]
}, {
"iid": 4,
"type": "urn:lumi-spec:property:en-night-tip-light:00000004:lumi-hmcn01:1",
"description": "en-night-tip-light",
"format": "int32",
"access": ["read", "notify", "write"],
"unit": "none",
"value-list": [{
"value": 0,
"description": "Disable"
}, {
"value": 1,
"description": "Enable"
}]
}, {
"iid": 5,
"type": "urn:lumi-spec:property:run-time:00000005:lumi-hmcn01:1",
"description": "run-time",
"format": "int32",
"access": ["read", "notify"],
"unit": "none",
"value-range": [0, 255, 1]
}]
}, {
"iid": 5,
"type": "urn:lumi-spec:service:motor-controller:00007803:lumi-hmcn01:1",
"description": "motor-controller",
"properties": [{
"iid": 1,
"type": "urn:lumi-spec:property:adjust-value:00000001:lumi-hmcn01:1",
"description": "adjust-value",
"format": "int32",
"access": ["write"],
"unit": "none",
"value-range": [-100, 100, 1]
}],
"events": [{
"iid": 1,
"type": "urn:lumi-spec:event:cutain-manual-open:00005001:lumi-hmcn01:1",
"description": "cutain-manual-open",
"arguments": []
}, {
"iid": 2,
"type": "urn:lumi-spec:event:cutain-manual-close:00005002:lumi-hmcn01:1",
"description": "cutain-manual-close",
"arguments": []
}]
}, {
"iid": 7,
"type": "urn:lumi-spec:service:remote-cfg:00007804:lumi-hmcn01:1",
"description": "remote-cfg",
"properties": [{
"iid": 1,
"type": "urn:lumi-spec:property:remote-identify:00000001:lumi-hmcn01:1",
"description": "remote-identify",
"format": "string",
"access": ["read", "notify"],
"unit": "none"
}, {
"iid": 2,
"type": "urn:lumi-spec:property:remote-list:00000002:lumi-hmcn01:1",
"description": "remote-list",
"format": "string",
"access": ["read", "notify"],
"unit": "none"
}, {
"iid": 3,
"type": "urn:lumi-spec:property:remote-pair:00000003:lumi-hmcn01:1",
"description": "remote-pair",
"format": "int32",
"access": ["write"],
"unit": "none",
"value-list": [{
"value": 0,
"description": "exit"
}, {
"value": 1,
"description": "enter"
}]
}, {
"iid": 4,
"type": "urn:lumi-spec:property:remote-pair-status:00000004:lumi-hmcn01:1",
"description": "remote-pair-status",
"format": "int32",
"access": ["read", "notify"],
"unit": "none",
"value-list": [{
"value": 0,
"description": "配对成功"
}, {
"value": 1,
"description": "配对失败"
}, {
"value": 2,
"description": "配对中"
}, {
"value": 3,
"description": "退出配对"
}]
}, {
"iid": 5,
"type": "urn:lumi-spec:property:remote-delete:00000005:lumi-hmcn01:1",
"description": "remote-delete",
"format": "string",
"access": ["write"],
"unit": "none"
}]
}, {
"iid": 8,
"type": "urn:lumi-spec:service:sunrise-mode:00007801:lumi-hmcn01:1",
"description": "sunrise-mode",
"actions": [{
"iid": 1,
"type": "urn:lumi-spec:action:sunrise-mode:00002801:lumi-hmcn01:1",
"description": "sunrise-mode",
"in": [],
"out": []
}]
}]
} |
|