| Mi Power-plug v3 | miio:basic | [chuangmi.plug.v3](#chuangmi-plug-v3) | Yes | |
| Mi Power-plug | miio:basic | [chuangmi.plug.m3](#chuangmi-plug-m3) | Yes | |
| Mi Smart Plug | miio:basic | [chuangmi.plug.hmi205](#chuangmi-plug-hmi205) | Yes | |
+| Mi Smart Plug | miio:basic | [chuangmi.plug.hmi206](#chuangmi-plug-hmi206) | Yes | |
+| Mi Smart Plug | miio:basic | [chuangmi.plug.hmi208](#chuangmi-plug-hmi208) | Yes | |
| Qing Mi Smart Power Strip v1 | miio:basic | [qmi.powerstrip.v1](#qmi-powerstrip-v1) | Yes | |
| Mi Power-strip v2 | miio:basic | [zimi.powerstrip.v2](#zimi-powerstrip-v2) | Yes | |
| Mi Toothbrush | miio:unsupported | soocare.toothbrush.x3 | No | |
The database file may need to be modified to display the right channel names.
After validation, please share the logfile and json files on the openHAB forum or the openHAB GitHub to build future support for this model.
-# Advanced: adding local database files to support new devices
+## Advanced: adding local database files to support new devices
Things using the basic handler (miio:basic things) are driven by json 'database' files.
This instructs the binding which channels to create, which properties and actions are associated with the channels etc.
Note that local database files take preference over build-in ones, hence if a json file is local and in the database the local file will be used.
For format, please check the current database files in openHAB GitHub.
-## Channels
+# Channels
Depending on the device, different channels are available.
| temperature | Number | Temperature | |
| led | Switch | Indicator light | |
+### Mi Smart Plug (<a name="chuangmi-plug-hmi206">chuangmi.plug.hmi206</a>) Channels
+
+| Channel | Type | Description | Comment |
+|------------------|---------|-------------------------------------|------------|
+| power | Switch | Power | If this channel does not respond to on/off replace the model with chuangmi.plug.v3old in the config or upgrade firmware |
+| usb | Switch | USB | |
+| temperature | Number | Temperature | |
+| led | Switch | Wifi LED | |
+
+### Mi Smart Plug (<a name="chuangmi-plug-hmi208">chuangmi.plug.hmi208</a>) Channels
+
+| Channel | Type | Description | Comment |
+|------------------|---------|-------------------------------------|------------|
+| power | Switch | Power | If this channel does not respond to on/off replace the model with chuangmi.plug.v3old in the config or upgrade firmware |
+| usb | Switch | USB | |
+| temperature | Number | Temperature | |
+| led | Switch | Wifi LED | |
+
### Qing Mi Smart Power Strip v1 (<a name="qmi-powerstrip-v1">qmi.powerstrip.v1</a>) Channels
| Channel | Type | Description | Comment |
Switch led "Indicator light" (G_plug) {channel="miio:basic:plug:led"}
```
+### Mi Smart Plug (chuangmi.plug.hmi206) item file lines
+
+note: Autogenerated example. Replace the id (plug) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered.
+
+```java
+Group G_plug "Mi Smart Plug" <status>
+Switch power "Power" (G_plug) {channel="miio:basic:plug:power"}
+Switch usb "USB" (G_plug) {channel="miio:basic:plug:usb"}
+Number temperature "Temperature" (G_plug) {channel="miio:basic:plug:temperature"}
+Switch led "Wifi LED" (G_plug) {channel="miio:basic:plug:led"}
+```
+
+### Mi Smart Plug (chuangmi.plug.hmi208) item file lines
+
+note: Autogenerated example. Replace the id (plug) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered.
+
+```java
+Group G_plug "Mi Smart Plug" <status>
+Switch power "Power" (G_plug) {channel="miio:basic:plug:power"}
+Switch usb "USB" (G_plug) {channel="miio:basic:plug:usb"}
+Number temperature "Temperature" (G_plug) {channel="miio:basic:plug:temperature"}
+Switch led "Wifi LED" (G_plug) {channel="miio:basic:plug:led"}
+```
+
### Qing Mi Smart Power Strip v1 (qmi.powerstrip.v1) item file lines
note: Autogenerated example. Replace the id (powerstrip) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered.
POWERPLUG3("chuangmi.plug.v3", "Mi Power-plug v3", THING_TYPE_BASIC),
POWERPLUGM3("chuangmi.plug.m3", "Mi Power-plug", THING_TYPE_BASIC),
POWERPLUG_HMI205("chuangmi.plug.hmi205", "Mi Smart Plug", THING_TYPE_BASIC),
+ CHUANGMI_PLUG_HMI206("chuangmi.plug.hmi206", "Mi Smart Plug", THING_TYPE_BASIC),
+ CHUANGMI_PLUG_HMI208("chuangmi.plug.hmi208", "Mi Smart Plug", THING_TYPE_BASIC),
POWERSTRIP("qmi.powerstrip.v1", "Qing Mi Smart Power Strip v1", THING_TYPE_BASIC),
POWERSTRIP2("zimi.powerstrip.v2", "Mi Power-strip v2", THING_TYPE_BASIC),
TOOTHBRUSH("soocare.toothbrush.x3", "Mi Toothbrush", THING_TYPE_UNSUPPORTED),