core: New TPLink component does not work with declarative config. Discovery not working on different subnets.
Home Assistant release with the issue:
0.89.1
Last working Home Assistant release (if known): 0.88
Operating environment (Hass.io/Docker/Windows/etc.):
Docker, Hassio Tested Component/platform:
https://www.home-assistant.io/components/tplink/
Description of problem: TPLink declarative configuration not working. Discovery is limited to the same subnet. I have created a new docker instance with a baremetal config and still see the error. No devices show up as entities.
Note: The hass instance is running on the 10.0.1.x subnet and my IOT/TP-Link devices are on 10.0.8.x
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
tplink:
discovery: true
light:
- host: 10.0.8.252
Traceback (if applicable):
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
Additional information: I have also tested this with switches and neither are working as expected and throw the same error.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (9 by maintainers)
Commits related to this issue
- add missing async for tplink's async_setup_platform methods thanks to @MartinHjelmare for spotting this, related to #21916 — committed to rytilahti/home-assistant by rytilahti 5 years ago
- Add missing async for tplink's async_setup_platform methods (#23066) * add missing async for tplink's async_setup_platform methods thanks to @MartinHjelmare for spotting this, related to #21916 ... — committed to home-assistant/core by rytilahti 5 years ago
I also have my TP-Link plugs on a different subnet and neither autodiscover or manual configuration are able to see my devices.
Here’s my 0.89 configuration.yaml (not working)
and here’s my 0.88 configuration.yaml (working)
Logs:
I’ve reverted back to 0.88 and my plugs are working again so they are definitely reachable from Home Assistant
tplink not working with different error.