From 3bf0390512236ae87784cb22b9e302e37a16d2e9 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Tue, 6 Mar 2018 22:55:36 +0100 Subject: [PATCH] Flag the device as unavailable if not reachable. (#4782) --- .../_components/switch.xiaomi_miio.markdown | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/source/_components/switch.xiaomi_miio.markdown b/source/_components/switch.xiaomi_miio.markdown index f8d03291d0d..7212a742872 100644 --- a/source/_components/switch.xiaomi_miio.markdown +++ b/source/_components/switch.xiaomi_miio.markdown @@ -28,9 +28,31 @@ switch: name: Original Xiaomi Mi Smart WiFi Socket host: 192.168.130.59 token: YOUR_TOKEN + model: chuangmi.plug.m1 ``` Configuration variables: -- **host** (*Required*): The IP of your plug. -- **token** (*Required*): The API token of your plug. -- **name** (*Optional*): The name of your plug. +- **host** (*Required*): The IP of your miio device. +- **token** (*Required*): The API token of your miio device. +- **name** (*Optional*): The name of your miio device. +- **model** (*Optional*): The model of your miio device. Valid values are chuangmi.plug.v1`, `qmi.powerstrip.v1`, `zimi.powerstrip.v2`, `chuangmi.plug.m1` and `chuangmi.plug.v2`. This setting can be used to bypass the device model detection and is recommended if your device isn't always available. + +{% configuration %} +host: + description: The IP address of your device. + required: true + type: string +token: + description: The API token of your device. + required: true + type: string +name: + description: The name of your device. + required: false + type: string + default: Xiaomi Miio Switch +model: + description: The model of your device. + required: false + type: string +{% endconfiguration %}