Skip to content

Decwind/homebridge-mi-outlet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-mi-outlet

npm version

XiaoMi outlet plugins for HomeBridge.
Thanks for nfarina(the author of homebridge), wfr(the author of mihome-binary-protocol), aholstenson(the author of miio), all other developer and testers.

Supported Devices

1.PlugBase(米家智能插座基础版)
2.PlugBaseWithUSB(米家智能插座_USB版) ---- coming soon
3.IntelligencePinboard(米家智能插线板) ---- coming soon
4.QingPinboard(青米智能插线板_五孔位版) ---- coming soon
5.QingPinboardWithUSB(青米智能插线板_USB版) ---- coming soon

Installation

  1. Install HomeBridge, please follow it's README.
    If you are using Raspberry Pi, please read Running-HomeBridge-on-a-Raspberry-Pi.
  2. Make sure you can see HomeBridge in your iOS devices, if not, please go back to step 1.
  3. Install packages.
npm install -g miio homebridge-mi-outlet

Configuration

"platforms": [{
    "platform": "MiOutlet",
    "accessories": [{
        "type": "PlugBase",
        "ip": "192.168.88.xx",
        "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "outletName": "living room outlet",
        "outletDisable": false,
        "temperatureName": "living room outlet temperature",
        "temperatureDisable": false
    }]
}]

Get token

Open command prompt or terminal. Run following command:.

miio --discover

Wait until you get output similar to this:

Device ID: xxxxxxxx   
Model info: Unknown   
Address: 192.168.88.xx   
Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx via auto-token   
Support: Unknown   

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx is token.

Version Logs

0.0.1

1.support for PlugBase: outlet, temperature sensor.

About

XiaoMi outlet plugins for HomeBridge(https://github.com/nfarina/homebridge).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%