After the latest update, my TP-Link switches are unavailable. I’ve removed the original platform configuration and done it via the TP-Link component documentation (introduce 0.89 and not 0.24). All IoT devices are on an isolated network, with my Home Assistant installation running two NICs: one on the privileged network, and one on the isolated network. I see “No route to host” errors in the HA log. I have connectivity to the device from the host, and I can see the device using pyHS100 directly.
The issue was one of my configured switches not being available (unplugged and unreachable). The rest are fine, and commenting out that device restored the rest.
RECOMMENDATION: To improve error handling, report an individual device as unavailable, rather than bombing out the entire component.
" RECOMMENDATION: To improve error handling, report an individual device as unavailable, rather than bombing out the entire component."
I second this recommendation. I have four TPLink plugs that I don’t have plugged in all the time. Now I have to edit the config file each time I use one or don’t use one. Can’t use discovery because they are on different network.
Same here. Same issue. I have my tplink sensors on another vlan. I booted up a fresh docker on the 10.0.1.x network and am seeing the following errors with this config.
error:
2019-03-10 21:55:27 ERROR (MainThread) [homeassistant.core] Error doing job:
Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 257, in _async_add_entity
if entity.unique_id is not None:
File “/usr/src/app/homeassistant/components/tplink/light.py”, line 82, in unique_id
return self._sysinfo[“mac”]
TypeError: ‘NoneType’ object is not subscriptable