Description
Home Assistant release with the issue:
Home Assistant 0.67.0
Last working Home Assistant release (if known):
N/A
Operating environment (Hass.io/Docker/Windows/etc.):
Using https://hub.docker.com/r/homeassistant/home-assistant/ on a Synology NAS.
Component/platform:
- TP-Link (HS110 with energy monitoring): https://www.home-assistant.io/components/switch.tplink/
Description of problem:
According to the logs, home-assistant is not able to even add the device. The new HS110 firmware seems to have changed the API output. The issue was already reported in the pyHS100 issue tracker.
A good solution (other than waiting for this library to fix this problem) could be to create a way to disable the energy meter through a setting key or just fail more gracefully in these kinds of cases.
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
switch:
- platform: tplink
host: 192.168.1.34
Traceback (if applicable):
tplink: Error on device update!
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 188, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/app/homeassistant/helpers/entity.py", line 327, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/switch/tplink.py", line 108, in update
= "{:.2f}".format(emeter_readings["power"])
KeyError: 'power'
Additional information:
None