Hi all,
I just got a new TP-Link HS105 smart plug, and am having issues getting it working. As far as I can tell, the only configuration option for it is the IP address, but I am encountering some connection errors.
I am certain that the IP address is correct, and Home Assistant was able to poll the name of the plug (I named it “Case Study”), but beyond that, it seems unable to communicate with it.
Any suggestions as to what the issue could be and how I can troubleshoot further?
2017-08-09 21:47:09 WARNING (Thread-10) [homeassistant.components.switch.tplink] Could not read state for Case Study:
2017-08-09 21:47:20 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=entity_id=switch.case_study, service_call_id=3047515504-6, domain=homeassistant, service=turn_off>
2017-08-09 21:47:20 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=entity_id=['switch.case_study'], service_call_id=3047515504-7, domain=switch, service=turn_off>
2017-08-09 21:47:25 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/root/.homeassistant/deps/lib/python3.4/site-packages/pyHS100/pyHS100.py", line 71, in _query_helper
request={target: {cmd: arg}}
File "/root/.homeassistant/deps/lib/python3.4/site-packages/pyHS100/protocol.py", line 47, in query
sock.connect((host, port))
socket.timeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 1025, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/__init__.py", line 116, in async_handle_switch_service
yield from switch.async_turn_off()
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/tplink.py", line 77, in turn_off
self.smartplug.turn_off()
File "/root/.homeassistant/deps/lib/python3.4/site-packages/pyHS100/pyHS100.py", line 732, in turn_off
self._query_helper("system", "set_relay_state", {"state": 0})
File "/root/.homeassistant/deps/lib/python3.4/site-packages/pyHS100/pyHS100.py", line 74, in _query_helper
raise_from(SmartPlugException(), ex)
File "/root/.homeassistant/deps/lib/python3.4/site-packages/future/utils/__init__.py", line 398, in raise_from
exec(execstr, myglobals, mylocals)
File "<string>", line 1, in <module>
pyHS100.pyHS100.SmartPlugException
Thanks!