Skip to content

Instantly share code, notes, and snippets.

@marcelrv
Created January 2, 2020 00:40
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save marcelrv/20509106e97b4c7dd8c9056aefda2332 to your computer and use it in GitHub Desktop.
Save marcelrv/20509106e97b4c7dd8c9056aefda2332 to your computer and use it in GitHub Desktop.
Xiaomi MI OT links
http://miot-spec.org/miot-spec-v2/instances?status=all
http://miot-spec.org/miot-spec-v2/instances?status=debug
http://miot-spec.org/miot-spec-v2/instances?status=released
and for example air purifier 3 cn (zhimi.airpurifier.ma4)
https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-ma4:1
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:light:0000A001:philips-bulb:1
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:fan:0000A005:zhimi-sa1:1
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:light:0000A001:philips-sread1:1
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:vacuum:0000A006:rockrobo-v1:1
other queries
Type
DeviceType
http://miot-spec.org/miot-spec-v2/spec/devices
ServiceType
http://miot-spec.org/miot-spec-v2/spec/services
PropertyType
http://miot-spec.org/miot-spec-v2/spec/properties
ActionType
http://miot-spec.org/miot-spec-v2/spec/actions
EventType
http://miot-spec.org/miot-spec-v2/spec/events
DeviceType
http://miot-spec.org/miot-spec-v2/spec/device?type=urn:miot-spec-v2:device:light:0000A001
ServiceType
http://miot-spec.org/miot-spec-v2/spec/service?type=urn:miot-spec-v2:service:fan:00007808
PropertyType
http://miot-spec.org/miot-spec-v2/spec/property?type=urn:miot-spec-v2:property:on:00000006
ActionType
http://miot-spec.org/miot-spec-v2/spec/action?type=urn:miot-spec-v2:action:play:0000280B
https://github.com/MiEcosystem/miot-spec-doc/
https://translate.google.com/translate?sl=zh-CN&tl=en&u=https%3A%2F%2Fiot.mi.com%2Fnew%2Fdoc%2F02-%25E5%25BC%2580%25E5%258F%2591%25E8%2580%2585%25E9%25A1%25BB%25E7%259F%25A5%2F02-%25E5%25B0%258F%25E7%25B1%25B3IoT%25E5%258D%258F%25E8%25AE%25AE%25E8%25A7%2584%25E8%258C%2583%2F04-%25E5%25AE%259E%25E4%25BE%258B%25E5%25AE%259A%25E4%25B9%2589.html
https://github.com/Yeelight/miot-api
e.g. All outlets
http://www.miot-spec.org/instance/devices?name=outlets
http://miot-spec.org/instance/devices?vendor=yeelink
http://miot-spec.org/instance/devices
Vacuum examples
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:vacuum:0000A006:rockrobo-v1:1
@marcelrv
Copy link
Author

not all devices support miot spec, prob your cgllc is one of those.

For older devices, typically not all commands are suported but a subset of the commands may be supported by the miot spec.
You can recognise this as these commands can't be send directly to the device, but instead, need to be send to the cloud and the Xiaomi cloud will do the translation to the device commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment