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
Hub does not work on the newest firmware and 5.4.8 #455
Comments
I will need a the hub with port 443 port forwarded along with all credentials so that I can debug this as I do not currently own camera with this firmware. Contact me via juraj.nyiri@gmail.com. |
Could you try with older version? 5.3.9. |
Closing due to inactivity. |
Hello, I have the same problem. With version 5.3.9 it does not accept the password. |
Please download and install https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/tree/pytapo_3.3.12 manually. Add following to configuration.yaml:
Post full log in case of an error, now we will know what exactly happened during auth. |
Sorry, it works with Tapo-Control-5.4.0. |
Hi, I have exactly the same issue. After hub update the integration stopped working with the following error:
I would be happy to help if you could guide me :) Using pytapo directly to connect works:
returning device info.
|
Here is a PR that fixes it: JurajNyiri/pytapo#83 |
Hi, I'll post the logs, since the integration does not seem to work even after installing the 5.4.8 release: |
It's failing because of this line. Now, we need to find out why the hub responds in the way it responds now, and in order to do that I will need access to it or someone to debug it for me. We need it to respond as expected to the getCamData request, now its response format is corrupted. @Pippo1989 It is very hard to debug this for me as the hub responds in very unexpected format as I described here: #455 (comment) . I will need the hub with port 443 port forwarded along with admin account password so that I can debug this as I do not own a hub. Contact me via juraj.nyiri@gmail.com. Also, please let me know if it works on 5.3.9 as I requested before. |
Ok, I think I found some traces. It looks like the issue is only happening when caling:
with other requests in pytapo. If I remove this call, the response is much bigger and does contain Now, it looks like it is not really an issue with the Hub but with
response:
and when calling it on child device I get:
The decrypted message from
They payload has incorrect structure. It is double wrapped with while for a chile it looks like this:
Seams like the decrypted responses need to be decoded with I made a fix, and now the requests works fine. However, the hub still response incorrectly when asked for |
Thank you @Exelord I will take a deeper look a bit later today. |
this is the encrypted version straight from the hub, then decrypted:
|
Is this the request? |
Yes |
This is even weirder. So it looks like the hub responds with Decoded and decrypted:
Parsed my JSON:
|
It's not a valid response. You can use https://jsonformatter.curiousconcept.com/# to validate json. |
Something is really broken with the last firmware update on this hub... What is the decoded & decrypted response if you remove getAudioConfig from the request? That is the outlayer in the response again. Request should look like this with it removed:
|
it is like this when the audio request is removed
|
That is a valid json, so we will need to remove the call or implement some special workaround. I will try to find some time later today or tomorrow. |
@Exelord please download latest https://github.com/JurajNyiri/pytapo manually, it should automatically detect wrong response and omit getAudioConfig from the request. Run Please let me know the results and whether JurajNyiri/pytapo#84 is still required. |
Deployed above code in pytapo in https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.4.9 . Please test there. Please let me know the results and whether JurajNyiri/pytapo#84 is still required. |
I think that works! The response contains device info now :)
|
Thank you! I think they just messed up "getAudioConfig" call in that firmware, do other calls work as expected? Let me know I have just released a new HA version, please check it there as well. In theory everything should work now unless something else is broken - (and maybe we need the decode for utf8?) |
So it is only needed if we decided to remove double {} |
For
Disable motion events, this error is expected and can be ignored, we could talk about hiding it or making it a warning etc but that is out of scope of this ticket for now. It has been there forever.
That is not really expected, when does that error happen?
How does adding the camera flow look like? |
This comment was marked as off-topic.
This comment was marked as off-topic.
Make sure ha can reach the hub. Marking as off topic since this issue is for something else. |
If the issue persists please open new one, should be fixed now. |
Description
Out of the blue, the setup of my four C420 cameras and their hub fails, so all devices and their entities are constantly unavailable.
I have not changed the configuration data and the hub IP address is correct.
Reconfiguring the integration does not change things.
The TAPO app works correctly and both the cameras and the hub have installed the latest firmware update available.
Reproduction Steps
\
Expected behavior
\
If applicable, add error logs.
2023-11-13 16:41:30.443 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:41:31.557 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:41:32.255 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:41:32.262 DEBUG (MainThread) [custom_components.tapo_control] async_get_media_source
2023-11-13 16:41:39.876 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:41:41.764 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:41:45.684 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:41:55.956 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:41:57.013 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:41:57.721 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:42:17.945 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:42:19.019 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:42:19.712 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:43:00.056 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:43:01.104 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:43:01.853 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:44:22.054 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:44:23.113 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:44:23.828 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:45:44.090 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:45:45.142 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:45:45.863 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:47:06.264 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:47:07.320 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:47:08.052 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:48:28.527 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:48:29.583 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:48:30.280 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:49:50.605 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:49:51.657 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:49:52.360 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:51:12.657 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:51:13.709 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:51:14.407 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:52:34.619 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:52:35.676 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:52:36.389 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:53:56.865 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:53:57.904 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:53:58.604 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:55:19.059 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:55:20.114 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:55:20.808 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:56:40.949 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:56:41.984 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:56:42.682 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:58:03.145 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:58:04.214 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:58:04.923 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 16:59:25.169 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 16:59:26.206 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 16:59:26.914 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:00:47.071 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:00:48.127 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:00:48.829 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:02:09.050 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:02:10.122 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:02:10.819 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:03:31.240 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:03:32.303 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:03:33.004 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:04:53.152 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:04:54.222 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:04:54.931 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:06:15.263 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:06:16.321 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:06:17.051 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:07:37.411 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:07:41.076 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:07:41.785 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:09:01.856 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:09:02.938 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:09:03.646 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:10:24.010 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:10:25.073 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:10:25.769 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:11:46.154 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:11:47.227 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:11:47.963 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:13:08.371 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:13:09.421 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:13:10.113 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:14:30.426 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:14:31.475 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:14:32.163 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:15:52.472 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:15:53.532 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:15:54.222 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:17:14.720 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:17:15.772 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:17:16.465 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:18:36.775 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:18:37.858 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:18:38.562 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:19:58.722 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:19:59.832 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:20:00.960 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:21:21.101 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:21:22.144 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:21:22.836 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:22:42.993 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:22:44.024 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:22:44.719 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
2023-11-13 17:24:05.116 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-11-13 17:24:06.132 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-11-13 17:24:06.793 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'getPresetConfig'
Device Firmware
1.2.23 Build 20231012 rel.49638
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
HASSIO on Raspberry Pi 4
Search for similar issues
Yes
Additional information
No response
The text was updated successfully, but these errors were encountered: