Giter Club home page Giter Club logo

homebridge-mi-smart-plug's Introduction

Homebridge Mi Smart Plug

Homebridge Plugin for Xiaomi Mi Smart Plug

Supported devices

  • chuangmi.plug.hmi206

If working with your device too, please open an issue to add this list.

Installation

Before installing this plugin, you should install Homebridge using the official instructions.

Manual Installation

  1. Install this plugin using:
    npm install -g homebridge-mi-smart-plug --unsafe-perm
    
  2. Edit config.json manually to add your plug. See below for instructions on that.

Configuration

"accessories": [
    {
        "accessory": "MiSmartPlug",
        "name": "Mi Smart Plug",
        "ip": "X.X.X.X",
        "token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    }
]

Fields:

  • accessory: Must always be "MiSmartPlug" (required)
  • name: Name that will be displayed in your home app (required)
  • ip: IP address of the smart plug (required)
  • token: The device token of the smart plug (required)

IP address

  1. Install the miio npm package

    npm install -g miio
    
  2. Make sure your computer is on the same network with your smart plug, then run following command.

    miio discover
    
  3. You may need to wait few seconds until you get the response similar to below:

    Device ID: 127261362
    Model info: Unknown
    Address: X.X.X.X
    Token: ???
    Support: Unknown
    
  4. This Address will be your device IP address in configuration

Token

This is no so straight forward but it shouldn't be to hard either. I don't plan to keep and updated tutorial on this but there a lot of good ones online so you can use google to find them.

A very comprehensive one can be found here

homebridge-mi-smart-plug's People

Contributors

szaboge avatar itekhi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.