Multiple TP-Link switches

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/

1 Like

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.

2 Likes

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

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