-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
TP-Link LTE component broken #95626
Comments
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. |
This issue persists. |
I have the same issue, fresh install HA container 2023.10.3 Logger: homeassistant.setup Error during setup of component tplink_lte |
Same here, it still has not been fixed. If anyone knows another add-on to send SMS over the TP-Link LTE Router I'm listening. Logger: homeassistant.setup Error during setup of component tplink_lte |
Eperiencing same issue on 2023.11.3 Logger: homeassistant.setup Traceback (most recent call last): |
Same here |
Same here, please any support? |
Surprising that for a built-in integration, no one even responds to the problem! |
Considering that it should be quite easy. Every integration had to have that boilerplate code fixed and I guess there's even an article on how to do it. I don't have a development environment for home assistant set up though and don't have time to fix it myself. Also, the patch submission process seems to be a bit involved. But yeah, that's a 5 minute fix for a core developer. |
Please don't tag contributors just because they change a related file at some point. E.g. I my case it was just a mypy update. However, I did take a look and it should be a fairly simple fix. Opened #107642. I can't validate it, so if you're able feel free to test it out. |
I'm really sorry for tagging you. |
cd /config
curl -o- -L https://gist.githubusercontent.com/bdraco/43f8043cb04b9838383fd71353e99b18/raw/core_integration_pr | bash /dev/stdin -d tplink_lte -p 107642 It will install it as custom component. Please remove when 2024.1.3 is released |
After updating it was more promising. but now it comes up with it can't find modem Logger: custom_components.tplink_lte.notify No modem available TP-Link Archer MR200 |
@paarak I don't have the hardware so it's a bit more difficult for me to debug. Would you mind checking if the |
Hello @cdce8p . tp-link responds to ping and config is correct. But maybe my tp-link is not compatible. I sent an sms from the gui on tp-link and it works. Is there a setting I have to turn on in tp-link so HA has access rights to send sms? |
@maweki or any others, have you tried this fix like @paarak has - with any success? |
@paarak Sorry but as I said, I don't have access to a TP-Link device so can test it myself. The only info I have is from looking at the source code. Maybe someone else here knows more?
The readme of the underlying library only mentions that it's tested with |
Thank you @cdce8p for trying to take this fix on.
From my memory when I did the setup: No. I think I would have added it into the docs (https://www.home-assistant.io/integrations/tplink_lte) in that case. (Even if I'm not a code I still try to contribute by improving the HA docs whenever I can). |
So I do have a TP-Link TL-MR6400 with a current firmware. My router is also in a garden plot, but it's not too high stakes if something breaks. It also never worked for me, as I only set this stuff up this summer. Anyway, I do also get the "no modem" found message with the custom component. Then I tried the original library and it seems to no longer work with the current firmware. The lib is unable to login to the router webinterface. I don't know where we would go from there. |
I am encountering the same issue with a MR500 This error originated from a custom integration. Logger: tp_connected.tp_connected Invalid encryption key request When sending an SMS the following error appears This error originated from a custom integration. Logger: custom_components.tplink_lte.notify No modem available |
I started all over with a new config and I am now getting the following error home-assistant | 2024-01-11 21:36:52.702 ERROR (MainThread) [homeassistant.setup] Error during setup of component tplink_lte tplink_lte:
This my config: |
Same issue... Core Here is the log details: Logger: homeassistant.setup Setup failed for 'tplink_lte': Unable to import component: Exception importing homeassistant.components.tplink_lte The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Alright sounds like a js2py issue (with Python 3.12)... |
I rolled back to 2024.1.6 and still have an error... The installation works well but the "No modem" error occurs. 2024-02-10 12:09:11.843 INFO (MainThread) [tp_connected.tp_connected] http://192.168.xxxx/cgi/getParm |
Same issue now for me. |
Alright, I've now been visiting my two houses that each have a MR6400 (v 4.x.x. and v5.x.x) and updated both Home Assistant instances in each house to 2024.3.3. I now get a new error:
Considering that no maintainer has showed up during the 10 months since the bug was opened, I do not expect this to ever be fixed. In other words, I will consider this integration to be effectively dead. |
What a shame. I'm pretty sure its fixable - with not a lot of work. |
I have 4 of the TP-Link LTE MR6400 routers and need to get this working GPT reken this when asked what the issue could be. The error message indicates a problem with importing the tp_connected module, specifically within the js2py package. Here's a breakdown of what's happening: Initial Error: The error occurs when trying to set up the tplink_lte component in Home Assistant. This happens because the key 3 is not present in the name_translations dictionary in the js2py package. The error is due to the js2py package, specifically in the fix_js_args function within the injector.py file. It tries to append arguments to a function, but encounters an unexpected key. This KeyError is caught and results in an ImportError for the tplink_lte component in Home Assistant. Ensure that both homeassistant and js2py packages are up-to-date. Sometimes, these issues are resolved in newer versions. If the issue persists, inspect the js2py source code, particularly the fix_js_args function in the injector.py file. This might help identify why the key 3 is missing. If this is a persistent bug, consider reporting it to the maintainers of the js2py library. Provide the traceback and context so they can address it in future updates. As a temporary workaround, you might modify the injector.py file manually to handle or avoid the KeyError. However, this is not recommended for a production environment as it can lead to other issues. python In js2py/utils/injector.pydef append_arguments(code, args): Alternative Libraries: |
the answer looks exactly like ChatGPT. Subtly wrong and completely devoid of insight. The login-form and possibly the whole webinterface changed between router firmware versions. js2py is used to simulate some cryptographic functions that the browser would have done (https://github.com/F5OEO/tp-connected/blob/master/utility/tp_link_encryption.js) during login. Looks like key exchange to me. But as the login form and the associated crypto (and, again, the whole webinterface) changed, this can not be fixed by just updating something. The new login form needs to be investigated and analysed, so that the human login behaviour can be simulated by the python lib. |
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. |
The problem
After upgrading from 2023.5.X to 2023.6.0, the component tplink_lte can no longer be setup.
The following error is thrown when starting HA:
`
Logger: homeassistant.setup
Source: components/tplink_lte/init.py:97
First occurred: 16:43:07 (1 occurrences)
Last logged: 16:43:07
Error during setup of component tplink_lte
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 286, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/tplink_lte/init.py", line 97, in async_setup
await asyncio.wait(tasks)
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 415, in wait
raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
TypeError: Passing coroutines is forbidden, use tasks explicitly.
I maintain two instances of HA, both connected to the a TP-Link Router each, and the stopped working after I upgraded them to 2023.6.0.
Tried googeling, and found that my error is similar to claytonjn/hass-circadian_lighting#227 - both started appearing in 2023.6.0 and states Passing coroutines is forbidden, use tasks explicitly. Judging by the comments, this seems to be a widespread issue among components as of 2023.6.0.
I've tried upgrading to latest HA, 2023.6.3, with no difference.
What version of Home Assistant Core has the issue?
2023.6.0
What was the last working version of Home Assistant Core?
2023.5.X
What type of installation are you running?
Home Assistant OS
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
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: