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

P100 Failed to connect #725

Closed
turokhan opened this issue Mar 11, 2024 · 9 comments
Closed

P100 Failed to connect #725

turokhan opened this issue Mar 11, 2024 · 9 comments

Comments

@turokhan
Copy link

Hi,

For some strange reason i cannot connect to my P100's. Just say the above.

Version 3 just came out and i had all hope, but alas, HA still refuses it. Might have to ditch the TAPOs and stick with my TUYA ones, as these connect without issue.

@dickmann
Copy link

same here. Were working fine before, now stopped working...

@stefanmairhofer
Copy link

stefanmairhofer commented Mar 21, 2024

Unfortunately i have same issue... with version 3 all P100 devices stopped working in HA

Update:
seems there is more likely an issue with the Plug itself. after unplugging, waiting for 30s and plug in again it work as usual.

@petretiandrea
Copy link
Owner

Fixed by 3.1.0

@turokhan
Copy link
Author

Fixed by 3.1.0

no it doesn't. Just tried with 3.1 and it just says failed to connect.

@rjblake
Copy link

rjblake commented Apr 26, 2024

My plug lost connection with HA this morning at 04:20 and tried to reload integration, create new, etc. All I get is a 'Failed to Connect' message now. I can connect and control plug with Tapo app, but not this integration.

@ml0renz0
Copy link

ml0renz0 commented May 1, 2024

Same as @rjblake, P100 version 2 here, latest HAOS from april 4th. Everything works fine in Tapo app but cannot add this one. It just says "Failed to connect"

Failed to setup cannot connect
Traceback (most recent call last):
  File "/config/custom_components/tapo/config_flow.py", line 314, in _async_get_device
    device = await connect(config=config, session=session)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/new/device_factory.py", line 43, in connect
    protocol = await _get_or_guess_protocol(config, session)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/new/device_factory.py", line 65, in _get_or_guess_protocol
    return await _guess_protocol(config, session)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/new/device_factory.py", line 102, in _guess_protocol
    raise InvalidAuthentication(config.host, config.device_type)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/new/errors/invalid_authentication.py", line 3, in __init__
    super(f"Invalid authentication error for ${host}, ${device_type}")
TypeError: super() argument 1 must be a type, not str

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/tapo/config_flow.py", line 143, in async_step_user
    device = await self._async_get_device(user_input)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tapo/config_flow.py", line 322, in _async_get_device
    raise CannotConnect from error
custom_components.tapo.errors.CannotConnect

@mattse-san
Copy link

mattse-san commented Oct 12, 2024

Using v3.1.2 and successfully paired two P100 HW v2.0 (FW 1.2.5 Build 240411).
I get the exact same error log as ml0renz0 for the remaining 2 P100 which are also HW v2.0 and same FW.

Any idea what the problem could be?
Did you solve the issue in the meanwhile @ml0renz0 ?

@ml0renz0
Copy link

Sorry I didn't try again, switched to zigbee plugs as I wanted to keep everything local as much as I could.

@mattse-san
Copy link

After reading through #122 I realized that not only user name email must not contain upper case letters but also the password. As my password included an upper case letter I just changed it and afterwards the connect of P100 worked like a charm.... RTFM!!

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

7 participants