home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.23k stars 30.58k forks source link

TP Link switches unavailable #35137

Closed mattyteds closed 4 years ago

mattyteds commented 4 years ago

The problem

Updated to 0.109.3 and all (2) my TP - Link switches became unavailable. Removed the integration and tried to re-add, "Aborted. No TP-Link devices found on the network". Restarted and tried to re-add, integration added but none of my switches appear even after multiple restarts. Switches appear in TP Link app (Kasa) and are functional. Switches have latest firmware and I have power cycled them. I'm going to reset one soon to test.

UPDATE: I removed the integration again and now no matter what I cannot re-add because it cannot find any switches on the network.

I tried to manually setup one via the switches.yaml:

- platform: tplink
  switch:
    - host: 192.168.1.83

But I get the error: "The tplink platform for the switch integration does not support platform setup. Please remove it from your config."

Environment

Problem-relevant configuration.yaml

Traceback/Error logs

Additional information

parautenbach commented 3 years ago

I have an odd issue, after a restart all of my switches are picked up except one, always the same one, the most recent hs110 I added. It appears in Kada fine so it's not an IP/connection issue. If I reload the tp link integration within HA it gets picked up ok and appears as it should. Seems strange.

I have the same issue and I'm pretty sure it started happening after I changed the entity ID a few days ago. After an HA restart, only this device will show unavailable until I reload the integration. Until then, the logs show:

2021-04-05 10:52:53 WARNING (SyncWorker_1) [homeassistant.components.tplink.common] Unable to communicate with device 192.168.0.xxx: Communication error
2021-04-05 10:52:53 WARNING (MainThread) [homeassistant.components.light] Platform tplink not ready yet. Retrying in 30 seconds.

The device is otherwise reachable and can be controlled from the Kasa app.

HA core 2021.3.2 (so a release a lot newer than when the bug report was closed).