* Update TP Link Switch markdown to include power
Update the markdown to include how to retrieve power readings from a switch that has Energy Monitoring features, such as the HS110 https://www.tp-link.com/us/products/details/cat-5516_HS110.html
* Use latest attributes and add friendly name
* remove comment in yaml
* Update kW to kWh
* Minor changes
* 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 is the error if you provide http://IP_ADDRESS as the example shows.
```ERROR:homeassistant.components.switch:Error while setting up platform tplink
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/switch/tplink.py", line 40, in setup_platform
add_devices([SmartPlugSwitch(SmartPlug(host), name)], True)
File "/home/ged/.homeassistant/deps/pyHS100/pyHS100.py", line 78, in __init__
socket.inet_pton(socket.AF_INET, ip_address)
OSError: illegal IP address string passed to inet_pton```
Adding support for HS200 via GadgetReactor committed on GitHub Merge
pull request #5 from smaggard/add-hs200 …
Adding in support for the HS200 Wall switch referencing issues (#4)