https://github.com/machsix/homebridge-xiaomi-smart-plug
https://github.com/machsix/homebridge-xiaomi-smart-plug
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/machsix/homebridge-xiaomi-smart-plug
- Owner: machsix
- Created: 2022-04-03T11:13:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-03T23:51:04.000Z (about 3 years ago)
- Last Synced: 2024-10-29T20:00:48.787Z (7 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://badge.fury.io/js/homebridge-xiaomi-smart-plug.svg)
# Homebridge Mi Smart Plug[Homebridge](https://github.com/nfarina/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](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]](https://www.walmart.com/ip/Xiaomi-Mi-Smart-Plug-1-Pack/295288889)
- 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-plug
```## Example Configuration
```json
{
"accessories": [
{
"accessory": "homebridge-xiaomi-smart-plug", // don't change this
"name": "My Smart Plug",
"ip": "192.168.0.101",
"token": "6591d0ad2003ddd2da75815f5d7def26"
}
]
}
```## Thanks to
[homebridge-mi-led-desk-lamp](https://github.com/moifort/homebridge-mi-led-desk-lamp)