From 39ab9079c4fb0bc0ee2fd10a258cd5838558f624 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Mon, 29 Oct 2018 11:31:16 +0000 Subject: [PATCH] Added multiple switches (#7198) * Added multiple switches Added example code and text to illustrate how multiple switches would need to be added. * Added multiple switches (2) Updated headings and details around using multiple sockets, linking to a discussion comment to link the two together. * Update switch.tplink.markdown * fix deploy error * Back to how it was working /me stops trying to be clever. * Time to go back! Clean up * :pencil2: Move example below configuration list --- source/_components/switch.tplink.markdown | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/source/_components/switch.tplink.markdown b/source/_components/switch.tplink.markdown index da0083120b6..59912f87d1f 100644 --- a/source/_components/switch.tplink.markdown +++ b/source/_components/switch.tplink.markdown @@ -13,7 +13,6 @@ ha_iot_class: "Local Polling" ha_release: "0.24" --- - The `tplink` switch platform allows you to control the state of your [TP-Link smart switch](http://www.tp-link.com/en/products/list-5258.html). Supported units: @@ -23,7 +22,7 @@ Supported units: - HS110 - HS200 -To use your TP-Link switch in your installation, add the following to your `configuration.yaml` file: +To use your TP-Link switch or socket in your installation, add the following to your `configuration.yaml` file: ```yaml # Example configuration.yaml entry @@ -48,3 +47,15 @@ enable_leds: type: boolean {% endconfiguration %} +## {% linkable_title Adding multiple switches %} + +You may need to add [multiple switches](https://community.home-assistant.io/t/multiple-tp-link-switches/6935) and the config would need to include multiple switches separately. + +```yaml +# Example configuration.yaml entry +switch: + - platform: tplink + host: FIRST_IP_ADDRESS + - platform: tplink + host: SECOND_IP_ADDRESS +```