navigonic
(Navigonic)
November 30, 2016, 7:09pm
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/
1 Like
navigonic
(Navigonic)
November 30, 2016, 7:15pm
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.
2 Likes
cub69
(Cub69)
December 1, 2016, 10:30pm
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
eetree
(Matt)
April 11, 2018, 4:45pm
4
Thank you! Took a few more than expected searches to find. I’m going to add this to the docs.