From 387b486865782c139aad5e01325ce7ba395e9510 Mon Sep 17 00:00:00 2001 From: Georgi Kirichkov Date: Sat, 5 Aug 2017 01:06:29 +0300 Subject: [PATCH] Updates xiaomi component page (#3138) Adds example of the usage of "interface" option Typo fixes --- source/_components/xiaomi.markdown | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/source/_components/xiaomi.markdown b/source/_components/xiaomi.markdown index 09e41b74706..d87d7167faa 100644 --- a/source/_components/xiaomi.markdown +++ b/source/_components/xiaomi.markdown @@ -61,7 +61,7 @@ xiaomi: ``` -Multiple Gateway +Multiple Gateways ```yaml # 12 characters mac can be obtained from the gateway. @@ -73,12 +73,26 @@ xiaomi: key: xxxxxxxxxxxxxxxx ``` + + +Search for gateways on specific interface + +```yaml +# 12 characters mac can be obtained from the gateway. +xiaomi: + interface: '192.168.0.1' + gateways: + - mac: xxxxxxxxxxxx + key: xxxxxxxxxxxxxxxx +``` + + Configuration variables: - **mac** (*Optional*): The MAC of your gateway. Required if you have more than one. - **key** (*Optional*): The key of your gateway. Required if you also want to control lights and switches; sensors and binary sensors will still work. - **discovery_retry** (*Optional*): Amount of times Home Assitant should try to reconnect to the Xiaomi Gateway. Default is 3. -- **interface** (*Optional*): Which network interface to use. Default to any. +- **interface** (*Optional*): Which network interface to use. Defaults to any. ## {% linkable_title Services %}