-
Notifications
You must be signed in to change notification settings - Fork 95
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
Upgraded Firmware 1.3.9 on Tapo C200 and get Check tapo tag failed when trying to connect #456
Comments
I received the update today and my C200 v3.0 works flawlessly. I will need access to your camera in order to debug this issue further. Please port forward it and share details via [email protected]. |
I have version 2.0 if that make any difference. |
That is completely understandable. We will need to wait for someone else to come with the same issue then or maybe it starts happening to me as well. |
Hi, had the same issue after the firmware update of my C200 to 1.3.9 today. |
@grunkands does this work for you? |
I am also experiencing a similar issue to @grunkands. Attempting to add a C200 camera to my setup, but getting the error message Model: C2000 V2.0 `This error originated from a custom integration. Logger: custom_components.tapo_control Error: -1, Response: {"result": {"responses": [{"msg": "Check tapo tag failed", "error_code": -1}]}, "error_code": -1}` |
I do not use the cloud service for my cameras. I have even blocked all internet traffic for them. You can call me paranoid if you like. 😅 I can also try to do some more digging on my side to try to understand what is going on. |
Hello yesterday i have the same problem so, i remove the tapo component restart Home Assistant, add again the tapo integration and is ok now Tapo C200 |
Using cloud service has nothing to do with using the admin account on camera. As I described above, to move this issue further, try using https://github.com/JurajNyiri/pytapo and see if you can replicate the issue there as well. Use "admin" account together with your cloud password. You can also try using 3rd party account with your 3rd party acc and see if that works, each camera is a little bit different in what it accepts. Post results here. New "me too" comments providing no new information will be hidden, so please do not post unless you do the above or provide more information that contributes to resolution of the issue. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
|
This comment was marked as off-topic.
This comment was marked as off-topic.
@maroliar That means it is working. You did not post before, what behaviour are you seeing in HA? And which credentials did you use for the script above? Please document what happens both for "admin" account and 3rd party account as well as what happens in HA for you currently. |
Hi @JurajNyiri, it's exactly the same behavior of @jdndm said. I tried with my 3rd party account and after I tried with this admin. With my account:
|
It reports the same error as Marollar does, but switching to admin account with cloud password works. This one throws exception. from pytapo import Tapo
user = "cameraAccountUser" # user you set in Advanced Settings -> Camera Account
password = "cameraAccountPass" # password you set in Advanced Settings -> Camera Account
host = "192.168.xx.xx" # ip of the camera, example: 192.168.1.52
tapo = Tapo(host, user, password)
print(tapo.getBasicInfo())
## Exception: Error: -1, Response: {"result": {"responses": [{"msg": "Check tapo tag failed", "error_code": -1}]}, "error_code": -1} This one works: from pytapo import Tapo
user = "admin" # user you set in Advanced Settings -> Camera Account
password = "tplinkCloudAccountPass" # password you set in Advanced Settings -> Camera Account
host = "192.168.xx.xx" # ip of the camera, example: 192.168.1.52
tapo = Tapo(host, user, password)
print(tapo.getBasicInfo()) Additional Information:
|
FWIW: C200 Working, in 2 different Ha-installs , i could try to update 1 to Tapo Control version: 5.4.4 EDIT: Working Sorry can't be of much help here |
Thank you @yiskang @maroliar this is very helpful. I tried it with my 3.0 on the newest firmware but unfortunately that one does not accept 3rd party credentials at all. One more step needed; Please update to pytapo 3.3.8 Then initiate the script like so:
Output should have all the confidential data already redacted, please post it here and we will know where exactly the communication fails with 3rd party acc credentials. |
Hi @JurajNyiri, Here is the debug log following your instructions. I truncated some strings in the payloads of requests or responses that I'm unsure if they include confidential info. New request:
{'data': {'method': 'login', 'params': {'encrypt_type': '3', 'username': 'cameraAccountUser'}}, '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}
200
{'error_code': -40413, 'result': {'data': {'code': -40401, 'encrypt_type': ['3'], 'key': 'REDACTED', 'nonce': 'REDACTED', 'device_confirm': 'REDACTED'}}}
New request:
{'data': {'method': 'login', 'params': {'cnonce': 'REDACTED', 'encrypt_type': '3', 'username': 'cameraAccountUser'}}, '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}
200
{'error_code': -40413, 'result': {'data': {'code': -40401, 'encrypt_type': ['3'], 'key': 'REDACTED', 'nonce': 'REDACTED', 'device_confirm': 'REDACTED'}}}
New request:
{'data': {'method': 'login', 'params': {'cnonce': 'REDACTED', 'encrypt_type': '3', 'digest_passwd': 'REDACTED', 'username': 'cameraAccountUser'}}, '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}
200
{'error_code': 0, 'result': {'stok': 'REDACTED', 'user_group': 'third_account', 'start_seq': 739}}
New request:
{'data': {'method': 'securePassthrough', 'params': {'request': 'aqJP...fA'}}, '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', 'Seq': '739', 'Tapo_tag': 'REDACTED'}, 'verify': False}
500
{'error_code': 0, 'seq': 739, 'result': {'response': 'Es9...VM6p'}}
New request:
{'data': {'method': 'login', 'params': {'cnonce': 'REDACTED', 'encrypt_type': '3', 'username': 'cameraAccountUser'}}, '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', 'Seq': '739', 'Tapo_tag': 'REDACTED'}, 'verify': False}
200
{'error_code': -40413, 'result': {'data': {'code': -40401, 'encrypt_type': ['3'], 'key': 'REDACTED', 'nonce': 'REDACTED', 'device_confirm': 'REDACTED'}}}
New request:
{'data': {'method': 'login', 'params': {'cnonce': 'REDACTED', 'encrypt_type': '3', 'digest_passwd': 'REDACTED', 'username': 'cameraAccountUser'}}, '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', 'Seq': '739', 'Tapo_tag': 'REDACTED'}, 'verify': False}
200
{'error_code': 0, 'result': {'stok': 'REDACTED', 'user_group': 'third_account', 'start_seq': 559}}
New request:
{'data': {'method': 'securePassthrough', 'params': {'request': 'DE7Zf...b0Dv0'}}, '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', 'Seq': '559', 'Tapo_tag': 'REDACTED'}, 'verify': False}
500
{'error_code': 0, 'seq': 559, 'result': {'response': '1DsffKNKzy...TQgu4'}}
New request:
{'data': {'method': 'login', 'params': {'cnonce': 'REDACTED', 'encrypt_type': '3', 'username': 'cameraAccountUser'}}, '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', 'Seq': '559', 'Tapo_tag': 'REDACTED'}, 'verify': False}
200
{'error_code': -40413, 'result': {'data': {'code': -40401, 'encrypt_type': ['3'], 'key': 'REDACTED', 'nonce': 'REDACTED', 'device_confirm': 'REDACTED'}}}
New request:
{'data': {'method': 'login', 'params': {'cnonce': 'REDACTED', 'encrypt_type': '3', 'digest_passwd': 'REDACTED', 'username': 'cameraAccountUser'}}, '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', 'Seq': '559', 'Tapo_tag': 'REDACTED'}, 'verify': False}
200
{'error_code': 0, 'result': {'stok': 'REDACTED', 'user_group': 'third_account', 'start_seq': 506}}
New request:
{'data': {'method': 'securePassthrough', 'params': {'request': '32ocm...AsG'}}, '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', 'Seq': '506', 'Tapo_tag': 'REDACTED'}, 'verify': False}
500
{'error_code': 0, 'seq': 506, 'result': {'response': 'gS...Rz'}} Exception log when using 3.3.8 Traceback (most recent call last):
File "/Users/kang/Desktop/tapo/tapo.py", line 7, in <module>
tapo = Tapo(host, user, password, printDebugInformation=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pytapo/__init__.py", line 77, in __init__
self.basicInfo = self.getBasicInfo()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pytapo/__init__.py", line 906, in getBasicInfo
return self.executeFunction(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pytapo/__init__.py", line 413, in executeFunction
data = self.performRequest(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pytapo/__init__.py", line 517, in performRequest
return self.performRequest(requestData, loginRetryCount + 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pytapo/__init__.py", line 517, in performRequest
return self.performRequest(requestData, loginRetryCount + 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pytapo/__init__.py", line 519, in performRequest
raise Exception(
Exception: Error: -1, Response: {"result": {"responses": [{"msg": "Check tapo tag failed", "error_code": -1}]}, "error_code": -1} |
@yiskang @maroliar @iwebsource @Frazou1 @bysimba @grunkands @jdndm @ndrsfr In case of problem still persisting: Add following to configuration.yaml:
Post full log in case of an error. If you see |
I can confirm that the fix you implemented (Version 5.4.6) is working for me. No issues adding it now. Thank you very much JurajNyiri for all your hard work! My Info: |
This comment was marked as off-topic.
This comment was marked as off-topic.
@Frazou1 It is linked in the post you are posting reply to. If you are using HACS it should show up soon or you can force the install by going to |
@JurajNyiri Thanks a ton for your prompt help! I confirmed that 5.4.6 works and fixes the issue on my side. My devices:
|
@JurajNyiri Thank you so much for the quick solution to this problem! ⭐️ |
Work great !! Wonderful and quick fix that why i choose tapo and Ha ! Thansk you very much
Alexandre Fraser
418-208-6556
***@***.***
Le 15 nov. 2023 à 08:17, Juraj Nyíri ***@***.***> a écrit :
It is linked in the post you are posting reply to. If you are using HACS it should show up soon or you can force the install by going to /hacs/repository/300358676 in your HA instance clicking 3 dots and selecting Redownload.
If you are not using hacs, just install manually as you did before. (You should be using HACS though.).
—
Reply to this email directly, view it on GitHub<#456 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVLXJHNRPAGI75W27HKYGCTYES6IHAVCNFSM6AAAAAA7JPNLS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJSGUZDGMZVGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
This is my general feeling about IoT devices, and in particular cameras. But then how do you do firmware updates? We all know that out-of-date firmwares are one of the bigger vectors to cracking these kinds of devices. |
Description
Home Assistant version: 2023.10.2
Tapo Cameras Control: 5.4.4
Camera: Topa C200
Camera Firmware that breaks the config 1.3.9
(I have another camera with FW 1.3.6 that works)
After upgrading fw to 1.3.9 on Tapo C200 it will no longer work. Get errors in the logs.
I even tried to remove one camera from the configuration and add it again with now luck. Get an error message
Unknown error
Reproduction Steps
Expected behavior
That camera works and send stream to HA after firmware upgrade.
If applicable, add error logs.
No response
Device Firmware
1.3.9 Build 231019 Rel.38052n(4555)
Integration Version
5.4.4
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
Home Assistant Core
Search for similar issues
Yes
Additional information
No response
The text was updated successfully, but these errors were encountered: