home-assistant.io/source/_components/switch.tplink.markdown
Josh Cooper 39ab9079c4 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

* ✏️ Move example below configuration list
2018-10-29 12:31:16 +01:00

1.5 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_iot_class, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page TP-Link Switch Instructions on how to integrate TP-Link switches into Home Assistant. 2016-07-13 08:00 true false true true tp-link.png Switch Local Polling 0.24

The tplink switch platform allows you to control the state of your TP-Link smart switch.

Supported units:

  • HS100
  • HS105
  • HS110
  • HS200

To use your TP-Link switch or socket in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
switch:
  - platform: tplink
    host: IP_ADDRESS

{% configuration %} name: description: The name to use when displaying this switch. required: false type: string default: TP-Link Switch host: description: "The IP address of your TP-Link switch, eg. 192.168.1.32." required: true type: string enable_leds: description: If the LEDs on the switch (WiFi and power) should be lit. required: false type: boolean {% endconfiguration %}

{% linkable_title Adding multiple switches %}

You may need to add multiple switches and the config would need to include multiple switches separately.

# Example configuration.yaml entry
switch:
  - platform: tplink
    host: FIRST_IP_ADDRESS
  - platform: tplink
    host: SECOND_IP_ADDRESS