Code Monkey home page Code Monkey logo

homebridge-miio's Introduction

homebridge-miio is a platform plugin for homebridge which lets you switch Xiaomi Power Plugs on and off using Homekit apps and Siri.

It's early days, but it seems to work well with Xiaomi Power Plug v2. It might work with other Xiaomi home automation ecosystem devices, if they implement a "power" feature, and announce themselves over mdns/zeroconf. Some do not seem to do this... If you have other devices, it would be great to get information on how to support them, or better yet, code pull requests!

Currently there is some buggyness if you start homebridge while your plugs are not online. As long as you avoid that situation, it should work!

Here's an example homebridge config file!

{
  "bridge": {
    "name": "TestBridge",
    "username": "CC:22:3D:E3:CE:33",
    "port": 51826,
    "pin": "031-45-154"
  },

  "description": "Test Bridge",
  "accessories": [],
  "platforms": [
    {
      "platform" : "XiaomiMiio",
      "name" : "XiaomiMiio",
      "pollChanges": true,
      "pollInterval": 15
    }
  ]
}

You can change the pollChanges to false, if you want to minimise network traffic, but HomeKit might not notice if you turn the device on or off with the a button or directly using a Xiaomi app. The pollInterval setting is in seconds, and affects how much network traffic goes on constantly in the background.

homebridge-miio's People

Contributors

awesomegiga avatar bluebie avatar

Watchers

 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.