Closed dkv closed 1 week ago
This error in logs is ok. https://github.com/AlexandrErohin/home-assistant-tplink-router/issues/56 Do you have any errors when adding your router via HomeAssistant UI?
I tried again by removing/adding the device:
2024-11-03 12:41:16.877 ERROR (SyncWorker_2) [custom_components.tplink_router] TplinkRouter - TplinkRouter - An unknown response - Extra data: line 1 column 2 (char 1); Request admin/status?form=all&operation=read - Response 3I3tAZaRTN//R8cBDCVxTapJbFmUPGpV7WmpjGTHXHf6pZri75CqsOhzVUPC8oIb6QXN7L/Us7m6gRb4lYS1dYz3zIPaiE2sNvtA9lMb2vRePvsL5beC/uarqED5LyWmLhlS12NrDMxI3pZ7gr2pMabFZTcyhk5qZ20zEDJWGZpdxrxxn0Gh5Hy4jKxyQuEQLH1WWuT1GGEAntmHYhuAhw==
2024-11-03 12:41:16.879 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry https://192.168.3.152 for tplink_router
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_router/__init__.py", line 47, in async_setup_entry
firmware, status = await hass.async_add_executor_job(TPLinkRouterCoordinator.request, client, callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_router/coordinator.py", line 56, in request
data = callback()
^^^^^^^^^^
File "/config/custom_components/tplink_router/__init__.py", line 43, in callback
stat = client.get_status()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tplinkrouterc6u/client.py", line 322, in get_status
data = self.request('admin/status?form=all&operation=read', 'operation=read')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tplinkrouterc6u/client.py", line 112, in request
raise ClientError(error)
tplinkrouterc6u.exception.ClientError: TplinkRouter - TplinkRouter - An unknown response - Extra data: line 1 column 2 (char 1); Request admin/status?form=all&operation=read - Response 3I3tAZaRTN//R8cBDCVxTapJbFmUPGpV7WmpjGTHXHf6pZri75CqsOhzVUPC8oIb6QXN7L/Us7m6gRb4lYS1dYz3zIPaiE2sNvtA9lMb2vRePvsL5beC/uarqED5LyWmLhlS12NrDMxI3pZ7gr2pMabFZTcyhk5qZ20zEDJWGZpdxrxxn0Gh5Hy4jKxyQuEQLH1WWuT1GGEAntmHYhuAhw==
Could you try to install version v1.19.0 ? Do you use your local router password? Or you use Tp-Link ID to login to the router?
@dkv Could you try to delete tplink entity from HA. Then install v2.0.0. Reboot HA and add tplink with local password without encryption? Restart HA helped here https://github.com/AlexandrErohin/home-assistant-tplink-router/issues/111
@AlexandrErohin I tried a lot of different ways. Deleting, restarting, downgrading etc. Nothing worked. Then I decided to install devcontainers and run a dev-version locally. In that environment everything worked perfectly fine.
That means that there's some kind of problem with my HA-installation (it's an old installation that has been upgraded many times, maybe there's some crud left somewhere).
I'll try to debug some more, and I'll keep you posted if I find anything.
@dkv So, You have installer v2.0.0 of this integration and it works for your router ?
Yes, in the devcontainer environment it works perfectly fine.
@dkv Please try v2.0.1
Describe the bug Trying to add my router fails. Using https, de-selected "verify ssl"
Logs Logger: custom_components.tplink_router.config_flow Source: /usr/local/lib/python3.12/site-packages/tplinkrouterc6u/client.py:206 integration: TP-Link Router (documentation, issues) First occurred: 11:31:02 (1 occurrences) Last logged: 11:31:02
TplinkRouter - TPLinkDecoClient - Unknown error for pwd! Error - 'result'; Response - {"success":true,"data":{"password":["<long string, censored, looks like a hash>","010001"],"mode":"ap","username":""}} Add also all relevant logs from Settings->System->Logs.
Additional Information (please complete the following information)