homebridge-xiaomi-smart-plug
v1.0.5
Published
[](https://badge.fury.io/js/homebridge-xiaomi-smart-plug.svg) # Homebridge Mi Smart Plug
Downloads
38
Readme
Homebridge Mi Smart Plug
Homebridge plugin for Xiaomi Smart Plug

Supporting devices
The following ones should be supported as they share the same API https://github.com/rytilahti/python-miio/blob/master/miio/chuangmi_plug.py
- MODEL_CHUANGMI_PLUG_V3 = "chuangmi.plug.v3"
- MODEL_CHUANGMI_PLUG_V1 = "chuangmi.plug.v1"
- MODEL_CHUANGMI_PLUG_M1 = "chuangmi.plug.m1"
- MODEL_CHUANGMI_PLUG_M3 = "chuangmi.plug.m3"
- MODEL_CHUANGMI_PLUG_V2 = "chuangmi.plug.v2"
- MODEL_CHUANGMI_PLUG_HMI205 = "chuangmi.plug.hmi205" [Walmart]
- MODEL_CHUANGMI_PLUG_HMI206 = "chuangmi.plug.hmi206"
- MODEL_CHUANGMI_PLUG_HMI208 = "chuangmi.plug.hmi208"
Get your token and IP
Good luck!!! (Because it's the hard part), some links to help you:
- https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md
- https://github.com/mediter/miio/blob/master/docs/ios-token-without-reset.md
Installation
npm install -g homebridge-xiaomi-smart-plugExample Configuration
{
"accessories": [
{
"accessory": "homebridge-xiaomi-smart-plug", // don't change this
"name": "My Smart Plug",
"ip": "192.168.0.101",
"token": "6591d0ad2003ddd2da75815f5d7def26"
}
]
}