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

Tapo C320WS HW ver 2 not working in integration #803

Closed
flynnjonsson opened this issue Jan 2, 2025 · 3 comments
Closed

Tapo C320WS HW ver 2 not working in integration #803

flynnjonsson opened this issue Jan 2, 2025 · 3 comments

Comments

@flynnjonsson
Copy link

Description

I had this camera added to the integration before and it worked.
I updated TAPO control to latest version and enabled "compability with third pary" in the app.
Updated all my 6 cameras to latest firmware and they worked.
After restart of HA I gott errors on 1 of the cameras, the C320WS.
It can´t be re-joined complaints of wrong cloud password.
I removed the old entry from the integration.
In logs it says temporary suspension so I waited 2 days and tested again, still I get the same error.

Reproduction Steps

  1. Add Entry in Tapo integration
  2. adding IP address and port
  3. adding local camera account credentials
  4. adding cloud password - here it stops

Expected behavior

Camera to be joined to the HA

If applicable, add error logs.

This comes in dialog box: Temporary Suspension: Try again in 1784 seconds

From logs
2025-01-02 15:57:01.585 DEBUG (MainThread) [custom_components.tapo_control] [ADD DEVICE][192.168.0.194] Verifying cloud password.
2025-01-02 15:57:01.588 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] Refreshing stok...
2025-01-02 15:57:01.592 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] New request:
2025-01-02 15:57:01.592 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] {'data': {'method': 'login', 'params': {'encrypt_type': '3', 'username': 'admin'}}, 'headers': {'Host': 'REDACTED', 'Referer': 'REDACTED', 'Accept': 'application/json', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'Tapo CameraClient Android', 'Connection': 'close', 'requestByApp': 'true', 'Content-Type': 'application/json; charset=UTF-8'}, 'verify': False}
2025-01-02 15:57:01.692 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] 200
2025-01-02 15:57:01.693 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] {'data': {'code': -40404, 'sec_left': 1784}, 'error_code': -40401}
2025-01-02 15:57:01.693 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] Connection is insecure.
2025-01-02 15:57:01.698 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] New request:
2025-01-02 15:57:01.698 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] {'data': {'method': 'login', 'params': {'hashed': True, 'password': 'REDACTED', 'username': 'admin'}}, 'headers': {'Host': 'REDACTED', 'Referer': 'REDACTED', 'Accept': 'application/json', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'Tapo CameraClient Android', 'Connection': 'close', 'requestByApp': 'true', 'Content-Type': 'application/json; charset=UTF-8'}, 'verify': False}
2025-01-02 15:57:01.808 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] 200
2025-01-02 15:57:01.808 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] {'data': {'code': -40404, 'sec_left': 1784}, 'error_code': -40401}
2025-01-02 15:57:01.809 DEBUG (SyncWorker_50) [custom_components.tapo_control] [pytapo] Status code: 200
2025-01-02 15:57:01.812 DEBUG (MainThread) [custom_components.tapo_control] [ADD DEVICE][192.168.0.194] Temporary suspension.
2025-01-02 15:57:01.813 DEBUG (MainThread) [custom_components.tapo_control] [ADD DEVICE][192.168.0.194] Showing config flow for cloud password.

Device Firmware

1.2.1 Build 240912 Rel.66474n

Integration Version

6.0.1

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

No

HASS Environment

Pi4

Search for similar issues

Yes

Additional information

No response

@JurajNyiri
Copy link
Owner

JurajNyiri commented Jan 2, 2025

You need to wait the time camera is asking you to, or try restarting it to reset the timeout.

If something else is trying to authenticate to camera at the same time it might be triggering the suspension as well, for example go2rtc, scrypted etc.

If you are still getting it after it expires, or you get incorrect password, follow FAQ to resolve the invalid cloud password error issue.

@flynnjonsson
Copy link
Author

I have tried everything proposed here and in FAQ. It clearly dosen´t work on FW 1.2.1 Build 240912 Rel.66474n.
Next test is to downgrade FW...

@flynnjonsson
Copy link
Author

Forgot to mention - all the other 5 TAPO cameras works fine. Just this one (only have 1 of this model) that doesn´t work. It did work until I updated the FW and later restarted HA.

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

2 participants