Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.48 KB

MiioGeneric.md

File metadata and controls

50 lines (41 loc) · 1.48 KB

Mi Io Generic commands

These commands appear to be shared amngs all(?) Xiaomi Mi Io devices.

Get Wifi status

Command

Key Value Comment
method miIO.wifi_assoc_state
id [Integer] is returned in the response used to link the send message to the response.

Example

'method': 'miIO.wifi_assoc_state', 'id': 7840

response

Key Example Description
id 37 Returned ID from request
code 0 Unknown where this is used for
message ok
result Response to the command
state ONLINE
auth_fail_count 0 Authentication failed
conn_success_count 1 connection success count
conn_fail_count 0 connection fail count
dhcp_fail_count 0 dhcp request failed count

Response Example

{ "id":37,
   "code":0,
   "message":"ok",
   "result": {"state":"ONLINE",
              "auth_fail_count":0,
              "conn_success_count":1,
              "conn_fail_count":0,
              "dhcp_fail_count":0}
 }

Command

Key Value Comment
method miIO.ota
id [Integer] is returned in the response used to link the send message to the response.

Example

miIO.ota '{"mode":"normal", "install":"1", "app_url":"http://IP/v11_#version#.pkg", "file_md5":"#md5#","proc":"dnld install"}'