Skip to content

Instantly share code, notes, and snippets.

View titipat's full-sized avatar

Titipat titipat

View GitHub Profile

Miio Getting Started

  1. Install Node.js wrapper using "npm i -g miio".
  2. Reset a device by holding both top and back switch simultaneously 5 seconds.
  3. Connect to the device's ad-hoc wifi. It should have a name like "zhmi-airpurifier-vX-miapYYYY", which X is a model version and YYYY is last 4 characters of the device's mac address.
  4. Find the device's id and ip address using "miio discover".
  5. Force set the device's token using "miio tokens update <device_id|ip_address> --token <your_desired_hexadecimal_token>"
  6. Specify a wifi network for the device using "miio configure <device_id|ip_address> --ssid "your_ssid" --passwd "your_password".
  7. The device will beep once and connected to the wifi network.
@titipat
titipat / keybase.md
Created July 3, 2017 12:47
Keybase proof

Keybase proof

I hereby claim:

  • I am titipat on github.
  • I am titipats (https://keybase.io/titipats) on keybase.
  • I have a public key ASA1XSRh_OUHtEUK4jRiPCR_oaIw7HGenOT6aZlmf9Kbago

To claim this, I am signing this object: