Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blakadder/3c5a2474487cef7dcda94b9c8308f1f8 to your computer and use it in GitHub Desktop.
Save blakadder/3c5a2474487cef7dcda94b9c8308f1f8 to your computer and use it in GitHub Desktop.
SmartMi ZNNFJ07ZM MiOT spec
{
"type":"urn:miot-spec-v2:device:heater:0000A01A:zhimi-na1:1",
"description":"Heater",
"services":[
{
"iid":1,
"type":"urn:miot-spec-v2:service:device-information:00007801:zhimi-na1:1",
"description":"Device Information",
"properties":[
{
"iid":4,
"type":"urn:miot-spec-v2:property:firmware-revision:00000005:zhimi-na1:1",
"description":"Current Firmware Version",
"format":"string",
"access":[
"read"
]
},
{
"iid":1,
"type":"urn:miot-spec-v2:property:manufacturer:00000001:zhimi-na1:1",
"description":"Device Manufacturer",
"format":"string",
"access":[
"read"
]
},
{
"iid":2,
"type":"urn:miot-spec-v2:property:model:00000002:zhimi-na1:1",
"description":"Device Model",
"format":"string",
"access":[
"read"
]
},
{
"iid":3,
"type":"urn:miot-spec-v2:property:serial-number:00000003:zhimi-na1:1",
"description":"Device Serial Number",
"format":"string",
"access":[
"read"
]
}
]
},
{
"iid":2,
"type":"urn:miot-spec-v2:service:heater:0000782E:zhimi-na1:1",
"description":"Heater",
"properties":[
{
"iid":1,
"type":"urn:miot-spec-v2:property:fault:00000009:zhimi-na1:1",
"description":"Device Fault",
"format":"uint8",
"access":[
"read",
"notify"
],
"value-list":[
{
"value":0,
"description":"No faults"
}
]
},
{
"iid":2,
"type":"urn:miot-spec-v2:property:on:00000006:zhimi-na1:1",
"description":"Switch Status",
"format":"bool",
"access":[
"read",
"write",
"notify"
]
},
{
"iid":3,
"type":"urn:miot-spec-v2:property:heat-level:00000047:zhimi-na1:1",
"description":"Heat Level",
"format":"uint8",
"access":[
"read",
"write",
"notify"
],
"unit":"none",
"value-list":[
{
"value":1,
"description":"High"
},
{
"value":2,
"description":"Low"
}
]
},
{
"iid":4,
"type":"urn:miot-spec-v2:property:mode:00000008:zhimi-na1:1",
"description":"Mode",
"format":"uint8",
"access":[
"read",
"write",
"notify"
],
"value-list":[
{
"value":0,
"description":"Fan not swing"
},
{
"value":1,
"description":"Fan swing"
}
]
}
]
},
{
"iid":3,
"type":"urn:miot-spec-v2:service:alarm:00007804:zhimi-na1:1",
"description":"Alarm",
"properties":[
{
"iid":1,
"type":"urn:miot-spec-v2:property:alarm:00000012:zhimi-na1:1",
"description":"Alarm",
"format":"bool",
"access":[
"read",
"write",
"notify"
]
}
]
},
{
"iid":4,
"type":"urn:miot-spec-v2:service:countdown:0000782D:zhimi-na1:1",
"description":"Countdown",
"properties":[
{
"iid":1,
"type":"urn:miot-spec-v2:property:countdown-time:00000055:zhimi-na1:1",
"description":"Countdown Time",
"format":"uint32",
"access":[
"read",
"write",
"notify"
],
"unit":"hours",
"value-range":[
0,
12,
1
]
}
]
},
{
"iid":6,
"type":"urn:miot-spec-v2:service:indicator-light:00007803:zhimi-na1:1",
"description":"Indicator Light",
"properties":[
{
"iid":1,
"type":"urn:miot-spec-v2:property:brightness:0000000D:zhimi-na1:1",
"description":"Brightness",
"format":"uint8",
"access":[
"read",
"write",
"notify"
],
"value-range":[
0,
2,
1
]
}
]
},
{
"iid":7,
"type":"urn:miot-spec-v2:service:physical-controls-locked:00007807:zhimi-na1:1",
"description":"Physical Control Locked",
"properties":[
{
"iid":1,
"type":"urn:miot-spec-v2:property:physical-controls-locked:0000001D:zhimi-na1:1",
"description":"Physical Control Locked",
"format":"bool",
"access":[
"read",
"write",
"notify"
]
}
]
},
{
"iid":8,
"type":"urn:zhimi-spec:service:private-service:00007801:zhimi-na1:1",
"description":"",
"properties":[
{
"iid":1,
"type":"urn:zhimi-spec:property:button-pressed:00000001:zhimi-na1:1",
"description":"按键点击",
"format":"uint8",
"access":[
"notify"
],
"unit":"none",
"value-range":[
0,
15,
1
]
},
{
"iid":3,
"type":"urn:zhimi-spec:property:return-to-middle:00000003:zhimi-na1:1",
"description":"",
"format":"bool",
"access":[
"read",
"notify",
"write"
],
"unit":"none"
}
],
"events":[
{
"iid":1,
"type":"urn:zhimi-spec:event:temperature-exce:00005001:zhimi-na1:1",
"description":"",
"arguments":[
]
},
{
"iid":2,
"type":"urn:zhimi-spec:event:childlock-trig-evt:00005002:zhimi-na1:1",
"description":"童锁状态下,一秒5次点击。上报!如果30min内将无上报,如果30min外将第二次上报",
"arguments":[
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment