This plugin supports only chuangmi.plug.hmi208 (米家智能插座蓝牙网关版)
chuangmi.plug.hmi208 has one socket and two USB swtiches.
It was released in 2019 and uses the old and deprecated Miio protocol, whose successor is the MIoT protocol.
Homebridge-miot can only control chuangmi.plug.hmi208 via the cloud, but this plugin can control it locally.
If you want to port this plugin to other chuangmi plug, please read miio2miot.py to see different parameters used by chuangmi plug.
Remember to install homebridge@1.5.1 to avoid this problem
You see the goddamn chaos of logic.
raw_command | Power | USB |
---|---|---|
get | get_prop '["power"]' | get_prop '["usb_on"]' |
get_on | on | True |
get_off | off | False |
set_on | set_power '["on"]' | set_usb_on |
set_off | set_power '["off"]' | set_usb_off |
https://github.com/szaboge/homebridge-mi-smart-plug