Multiple TP-Link switches


#1

Probably a silly question…but how does one add multiple switches when, I keep getting error for either multiple instances of switch, host, or platform no matter which way I try:

My config for example:
switch:

  • platform: tplink
    host: 192.168.1.2
    name: bedlight
    host: 192.168.1.3
    name: heater

Gives error of two instances of host…

TP-Link: https://home-assistant.io/components/switch.tplink/


#2

This was covered by the FAQ, apologizes for making a thread.

The solution (define the platform each time)

  • platform: tplink
    host: 192.168.1.2
    name: bedlight
  • platform: tplink
    host: 192.168.1.3
    name: heater

Sorry again.


#3

Thanks for posting that - I had the same problem and I’m glad I searched before adding a new question. Your solution solved my issue as well.
Norm


#4

Thank you! Took a few more than expected searches to find. I’m going to add this to the docs.