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

Connection to TP-Link LTE router fails with MR-6400 v5 #73563

Closed
fvinas opened this issue Jun 15, 2022 · 15 comments
Closed

Connection to TP-Link LTE router fails with MR-6400 v5 #73563

fvinas opened this issue Jun 15, 2022 · 15 comments

Comments

@fvinas
Copy link

fvinas commented Jun 15, 2022

The problem

Hello,

Login to TP-Link LTE router with the tplink_lte core integration fails at login time, preventing the associated SMS service to be instantiated.

Declared issue here with HA core 2022.6.6 but actually never worked even with pre-2022.
My TP-Link LTE router is MR6400, running firmware v5.

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/tplink_lte/__init__.py", line 122, in _setup_lte
    await _login(hass, modem_data, password)
  File "/usr/src/homeassistant/homeassistant/components/tplink_lte/__init__.py", line 137, in _login
    await modem_data.modem.login(password=password)
  File "/usr/local/lib/python3.9/site-packages/tp_connected/tp_connected.py", line 130, in login
    await self.encryptCredentials(password, username)
  File "/usr/local/lib/python3.9/site-packages/tp_connected/tp_connected.py", line 114, in encryptCredentials
    _LOGGER.debug("ee: {0} nn: {1}".format(ee, nn))
UnboundLocalError: local variable 'nn' referenced before assignment

What version of Home Assistant Core has the issue?

core-2022-6-6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

TP-Link LTE

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tplink_lte/

Diagnostics information

No response

Example YAML snippet

tplink_lte:
  - host: local.ip.address.here
    password: !secret tplink_lte_password
    notify:
      - name: SMSGatewaySurname
        recipient: "+xxx"

Anything in the logs that might be useful for us?

No response

Additional information

No response

@probot-home-assistant
Copy link

tplink_lte documentation
tplink_lte source
(message by IssueLinks)

@Peterae2
Copy link

Peterae2 commented Jul 10, 2022

Hi
I have the MR6400 V5 and am having the same problem.

Logger: homeassistant
Source: components/tplink_lte/init.py:137
First occurred: 7:45:04 PM (1 occurrences)
Last logged: 7:45:04 PM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/tplink_lte/init.py", line 122, in _setup_lte
await _login(hass, modem_data, password)
File "/usr/src/homeassistant/homeassistant/components/tplink_lte/init.py", line 137, in _login
await modem_data.modem.login(password=password)
File "/usr/local/lib/python3.10/site-packages/tp_connected/tp_connected.py", line 130, in login
await self.encryptCredentials(password, username)
File "/usr/local/lib/python3.10/site-packages/tp_connected/tp_connected.py", line 114, in encryptCredentials
_LOGGER.debug("ee: {0} nn: {1}".format(ee, nn))
UnboundLocalError: local variable 'nn' referenced before assignment

What version of Home Assistant Core has the issue?
Home Assistant 2022.7.2
Supervisor 2022.07.0
Operating System 9.0.dev20220601
Frontend 20220707.0 - latest

Integration causing the issue
TP-Link LTE

I suspect this warning in router log is related
V2 igmp router occured! Not matching ours V3.

@Peterae2
Copy link

Please anyone know how to fix this addon.
Its the only way i can get sms notifications if my smoke alarms go off?

@Rathorian
Copy link

Rathorian commented Sep 1, 2022

Hello,

Same issue here with Home Assistant 2022.8.7 container and TP-Link Archer MR600 V1 router.

Info on the TP-link:

Firmware version: 1.3.0 0.9.1 v0001.0 Build 210608 RC.66100n
Hardware Version: Archer MR600 v1 00000001

The logs:

2022-09-01 05:39:32.430 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/tplink_lte/__init__.py", line 122, in _setup_lte
    await _login(hass, modem_data, password)
  File "/usr/src/homeassistant/homeassistant/components/tplink_lte/__init__.py", line 137, in _login
    await modem_data.modem.login(password=password)
  File "/usr/local/lib/python3.10/site-packages/tp_connected/tp_connected.py", line 130, in login
    await self.encryptCredentials(password, username)
  File "/usr/local/lib/python3.10/site-packages/tp_connected/tp_connected.py", line 114, in encryptCredentials
_LOGGER.debug("ee: {0} nn: {1}".format(ee, nn))
UnboundLocalError: local variable 'nn' referenced before assignment

Is it possible to correct this please?

@Rathorian
Copy link

Hello @Michsior14

Could you look for errors please?

@Michsior14
Copy link
Contributor

@Rathorian Unfortunately I am not a maintainer of tp_connected and don't have equipment to test it. Anyway I can see nn being not always initialized before the debug is done (https://github.com/andtos90/tp-connected/blob/master/tp_connected/tp_connected.py#L115). Adjusting this will probably not fix the core issue of not getting response, but at least will make sure the logs are a bit more helpful.

I will try to open the PR in the library during the weekend if no one will do it before.

@Rathorian
Copy link

@Michsior14

Sorry, I mistakenly thought you were keeping the embed.

I admit I don't know Python, if you already have the possibility of doing a PR to solve this problem, that would be super nice. Thanks to you

I will try to find the maintainer and see with him for the rest.

@Rathorian
Copy link

Hello @andtos90

Would you be able to look at the problem above please?
I would love to be able to use it....

Thanks

@alexandre-hostand
Copy link

I'm also looking forward on a solution since I got a brand new TP-Link LTE router. I have the same problem.

@Maco65
Copy link

Maco65 commented Nov 24, 2022

I have the same issue with tp-link TL-MR6400

Running on RPi4:
Home Assistant 2022.11.4
Supervisor 2022.10.2
Operating System 9.3
Frontend 20221108.0 - latest

Log:

Logger: tp_connected.tp_connected
Source: components/tplink_lte/__init__.py:137
First occurred: 20:06:35 (1 occurrences)
Last logged: 20:06:35

Invalid encryption key request

@ausfas
Copy link

ausfas commented Jan 18, 2023

Who is the author of this integration, have we not got a resolution to this issue as I have order to link LTE router MR6500 and hoping this to work

@Maco65
Copy link

Maco65 commented Jan 18, 2023

@ausfas - I support this question/request.
In the integration github page there is no owner (the field in manifest.json) is empty.
The oldest history of this integration shows that @balloob has "Embed all platforms into components..." on February 2, 2019. It also shows that @bdraco has added loggers to manifest.json on January 28, 2022.
Do not know what can I do more to get this resolved....

@Maco65
Copy link

Maco65 commented Apr 1, 2023

What can be done if there is no response to the issues registered ?
Should we make a request to remove this integration fro the list since it does not work?
On the Integration page of HA it says that it is used by 24 active installations - which probably means that it is installed in such number of installations but if it working ?

@albenex
Copy link

albenex commented Jun 5, 2023

same issue here with MR500.

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants