Skip to content

Commit

Permalink
Add Xiaomi ZNCZ05CM EU Smart Socket (chuangmi.plug.hmi206) support (C…
Browse files Browse the repository at this point in the history
…loses: #545) (#554)
  • Loading branch information
syssi authored Oct 6, 2019
1 parent 5184dcf commit 63a47fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions miio/chuangmi_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
MODEL_CHUANGMI_PLUG_M3 = 'chuangmi.plug.m3'
MODEL_CHUANGMI_PLUG_V2 = 'chuangmi.plug.v2'
MODEL_CHUANGMI_PLUG_HMI205 = 'chuangmi.plug.hmi205'
MODEL_CHUANGMI_PLUG_HMI206 = 'chuangmi.plug.hmi206'

AVAILABLE_PROPERTIES = {
MODEL_CHUANGMI_PLUG_V1: ['on', 'usb_on', 'temperature'],
Expand All @@ -24,6 +25,7 @@
MODEL_CHUANGMI_PLUG_M3: ['power', 'temperature'],
MODEL_CHUANGMI_PLUG_V2: ['power', 'temperature'],
MODEL_CHUANGMI_PLUG_HMI205: ['power', 'temperature'],
MODEL_CHUANGMI_PLUG_HMI206: ['power', 'temperature'],
}


Expand Down
3 changes: 2 additions & 1 deletion miio/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .airhumidifier import (MODEL_HUMIDIFIER_CB1, MODEL_HUMIDIFIER_CA1, MODEL_HUMIDIFIER_V1, )
from .chuangmi_plug import (MODEL_CHUANGMI_PLUG_V1, MODEL_CHUANGMI_PLUG_V2, MODEL_CHUANGMI_PLUG_V3,
MODEL_CHUANGMI_PLUG_M1, MODEL_CHUANGMI_PLUG_M3,
MODEL_CHUANGMI_PLUG_HMI205, )
MODEL_CHUANGMI_PLUG_HMI205, MODEL_CHUANGMI_PLUG_HMI206, )

from .fan import (MODEL_FAN_V2, MODEL_FAN_V3, MODEL_FAN_SA1, MODEL_FAN_ZA1, MODEL_FAN_ZA3,
MODEL_FAN_ZA4, MODEL_FAN_P5, )
Expand All @@ -39,6 +39,7 @@
"chuangmi-plug-v2": partial(ChuangmiPlug, model=MODEL_CHUANGMI_PLUG_V2),
"chuangmi-plug-v3": partial(ChuangmiPlug, model=MODEL_CHUANGMI_PLUG_V3),
"chuangmi-plug-hmi205": partial(ChuangmiPlug, model=MODEL_CHUANGMI_PLUG_HMI205),
"chuangmi-plug-hmi206": partial(ChuangmiPlug, model=MODEL_CHUANGMI_PLUG_HMI206),
"chuangmi-plug_": partial(ChuangmiPlug, model=MODEL_CHUANGMI_PLUG_V1),
"qmi-powerstrip-v1": partial(PowerStrip, model=MODEL_POWER_STRIP_V1),
"zimi-powerstrip-v2": partial(PowerStrip, model=MODEL_POWER_STRIP_V2),
Expand Down

0 comments on commit 63a47fa

Please sign in to comment.