Xiaomi Mi camera plugin for Homebridge.
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
LICENSE.md First commit. Jun 4, 2017
README.md First commit. Jun 4, 2017
example.config.json First commit. Jun 4, 2017
index.js Updated to support miio 0.15.6. May 28, 2018
package.json Updated to support miio 0.15.6. May 28, 2018



This is Xiaomi Mi Camera plugin for Homebridge.



  • Switch on / off.

Notes: Only able to wake the camera from sleep or set it to sleep at this moment.


  1. Install required packages.

    npm install -g homebridge-mi-camera miio

  2. Open Mi Home app and open Mi Camera from the device list.

  3. Go to Network Info and find the IP address of the camera.

  4. On your Homebridge server, open command prompt or terminal. Run following command to discover the device:

    miio --discover --sync

    Notes: This will take about a minute or two.

  5. Wait until you get output below with the Address matches with the IP address you found from Network Info.

    Device ID: 50668318
    Model info: Unknown
    Token: 3574645a6a52526447566b4e69484e42 via auto-token
    Support: Unknown
  6. Record down the value value for Token as we need it later.

  7. Add these values to config.json.

      "accessories": [
          "accessory": "MiCamera",
          "name": "Mi Camera",
          "ip": "IP_ADDRESS_OF_THE_CAMERA",
          "token": "TOKEN_DISCOVERED_FROM_STEP_5",

  8. Restart Homebridge, and your Mi Camera will be added to Home app.


See the LICENSE file for license rights and limitations (MIT).