Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to Archer MR600 v2 #62

Open
ElGatitaux opened this issue Jun 15, 2024 · 0 comments
Open

Add support to Archer MR600 v2 #62

ElGatitaux opened this issue Jun 15, 2024 · 0 comments

Comments

@ElGatitaux
Copy link

ElGatitaux commented Jun 15, 2024

Hi @AlexandrErohin

I tried by opportunity your great integration with Archer MR600 v2.

Logs

Enregistreur: homeassistant.config_entries
Source: config_entries.py:594
S'est produit pour la première fois: 21:44:37 (5 occurrences)
Dernier enregistrement: 21:51:11

Error setting up entry http://192.168.1.1 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 846, in get_status
_, values = self.req_act(acts)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tplinkrouterc6u/client.py", line 1023, in req_act
(code, response) = self._request(url, data_str=data, encrypt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tplinkrouterc6u/client.py", line 1228, in _request
return r.status_code, self._encryption.aes_decrypt(r.text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tplinkrouterc6u/encryption.py", line 105, in aes_decrypt
return unpad(response, 16, 'pkcs7').decode('utf8')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x94 in position 1569: invalid start byte

I'm a beginner, I tried to launch the "TP-Link-Archer-C6U" github but I couldn't get it to work.

Thanks a lot
ElGatitaux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant