mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
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
This commit is contained in:
parent
3b44bec80f
commit
39ab9079c4
@ -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
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user