Hi all,
I’m trying to get home assistant to see a HS110 TPLink smart plug with power monitoring. Home assistant is running on a Synology NAS, currently on version 0.52.1.
My configuration is:
switch:
- platform: tplink
host: 192.168.1.180
name: tplinkhs110
The IP address is correct (responds to pings) and I can see/control it from the TPLink app. I get the following in the log though:
2017-10-30 23:41:38 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 182, in _step
result = coro.throw(exc)
File “/usr/src/app/homeassistant/helpers/entity_component.py”, line 381, in async_process_entity
new_entity, self, update_before_add=update_before_add
File “/usr/src/app/homeassistant/helpers/entity_component.py”, line 212, in async_add_entity
yield from self.hass.async_add_job(entity.update)
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 332, in iter
yield self # This tells Task to wait for completion.
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 250, in _wakeup
future.result()
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 245, in result
raise self._exception
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/app/homeassistant/components/switch/tplink.py”, line 95, in update
= “%.1f W” % emeter_readings[“power”]
KeyError: ‘power’
Any help would be much appreciated!