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

C200: Video streams become unavailable after successful configuration #778

Closed
aIexus opened this issue Dec 17, 2024 · 5 comments
Closed

Comments

@aIexus
Copy link

aIexus commented Dec 17, 2024

Description

After successful configuration video streams become unavailable, logs contains errors.

But on first try after configuration all was OK.

Reproduction Steps

  1. Have tapo camera with freshest firmware, tapo app updated to the new version.
  2. Configure camera account.
  3. Enable third party configuration in tapo app.
  4. Add tapo camera integration to HA.
  5. Disable privacy mode.
  6. Both video streams are unavailable. Logs have errors.

Expected behavior

Video streams should work

If applicable, add error logs.

2024-12-17 22:42:16.443 DEBUG (SyncWorker_1) [custom_components.tapo_control] [pytapo] New request:
2024-12-17 22:42:16.444 DEBUG (SyncWorker_1) [custom_components.tapo_control] [pytapo] {'data': {'method': 'securePassthrough', 'params': {'request': 'ZhJ++ckzg5+DKwFtURWwzqeJC11VMPMhC2PuWwTEg2YG1xstlqUGBqUaDeHxdJA4EVw87GTSMfYau7boOdxTAlFD9N9gPBL9XwUXXZjJt6c/cm9S7SQTKDhiD86ELpi6uojgGmDa0GqMXungNqv5a0p9ocwFSWms1K1YTW2GIPChoBs751VZHddHD1kRwOzbuLZcqQIoODJiU1IUVNp5fA=='}}, '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': '877', 'Tapo_tag': 'REDACTED'}, 'verify': False}
2024-12-17 22:42:19.917 DEBUG (SyncWorker_1) [custom_components.tapo_control] [pytapo] 200
2024-12-17 22:42:19.917 DEBUG (SyncWorker_1) [custom_components.tapo_control] [pytapo] {'error_code': 0, 'seq': 877, 'result': {'response': 'lP4bcwKJ3YRhd0EEkJ4QJdN/HCbJbRv0i5wUUUAI35SaesW7TnZd1yttYJCPF+2etXo7TT/xexmpe8gFA0NpISP4hqYambr8EOVbdV/4vCfxYsutfdU7n7fjrfLhGTYIaSLxjtRycBoDQgS+z509o3y/4E+rlFUELcH26LVvHkk='}}
2024-12-17 22:42:20.423 DEBUG (MainThread) [custom_components.tapo_control] async_update_data - entry
2024-12-17 22:42:20.423 DEBUG (MainThread) [custom_components.tapo_control] Motion sensor or time sync is enabled.
2024-12-17 22:42:20.423 DEBUG (MainThread) [custom_components.tapo_control] Motion sensor: OK
2024-12-17 22:42:20.423 DEBUG (MainThread) [custom_components.tapo_control] async_update_data - before someEntityEnabled check
2024-12-17 22:42:20.424 DEBUG (MainThread) [custom_components.tapo_control] <entity camera.tapo_camera_c200_hd_stream=unavailable>
2024-12-17 22:42:20.424 DEBUG (MainThread) [custom_components.tapo_control] async_update_data - enabling someEntityEnabled check
2024-12-17 22:42:20.424 DEBUG (MainThread) [custom_components.tapo_control] Tapo_Camera running on battery: False
2024-12-17 22:42:20.424 DEBUG (MainThread) [custom_components.tapo_control] Skipping update for Tapo_Camera...
2024-12-17 22:42:20.424 DEBUG (MainThread) [custom_components.tapo_control] updateTapo in update entity
2024-12-17 22:42:20.425 DEBUG (MainThread) [custom_components.tapo_control] Latest version - no cloud update
2024-12-17 22:42:20.425 DEBUG (MainThread) [custom_components.tapo_control] 1.3.9 Build 231019 Rel.38052n(4555)
2024-12-17 22:42:20.425 DEBUG (MainThread) [custom_components.tapo_control] Release_summary - none
2024-12-17 22:42:20.425 DEBUG (MainThread) [custom_components.tapo_control] Latest version - no cloud update
2024-12-17 22:42:20.425 DEBUG (MainThread) [custom_components.tapo_control] 1.3.9 Build 231019 Rel.38052n(4555)
2024-12-17 22:42:20.426 DEBUG (MainThread) [custom_components.tapo_control] Finished fetching Tapo resource status data in 0.003 seconds (success: True)
2024-12-17 22:42:29.813 DEBUG (MainThread) [custom_components.tapo_control] async_camera_image - camera
2024-12-17 22:42:29.987 DEBUG (MainThread) [custom_components.tapo_control] async_camera_image - camera
2024-12-17 22:42:30.427 DEBUG (MainThread) [custom_components.tapo_control] async_update_data - entry
2024-12-17 22:42:30.428 DEBUG (MainThread) [custom_components.tapo_control] Motion sensor or time sync is enabled.
2024-12-17 22:42:30.428 DEBUG (MainThread) [custom_components.tapo_control] Motion sensor: OK
2024-12-17 22:42:30.428 DEBUG (MainThread) [custom_components.tapo_control] async_update_data - before someEntityEnabled check
2024-12-17 22:42:30.428 DEBUG (MainThread) [custom_components.tapo_control] <entity camera.tapo_camera_c200_hd_stream=unavailable>
2024-12-17 22:42:30.428 DEBUG (MainThread) [custom_components.tapo_control] async_update_data - enabling someEntityEnabled check
2024-12-17 22:42:30.428 DEBUG (MainThread) [custom_components.tapo_control] Tapo_Camera running on battery: False
2024-12-17 22:42:30.428 DEBUG (MainThread) [custom_components.tapo_control] Skipping update for Tapo_Camera...
2024-12-17 22:42:30.428 DEBUG (MainThread) [custom_components.tapo_control] updateTapo in update entity
2024-12-17 22:42:30.428 DEBUG (MainThread) [custom_components.tapo_control] Latest version - no cloud update
2024-12-17 22:42:30.428 DEBUG (MainThread) [custom_components.tapo_control] 1.3.9 Build 231019 Rel.38052n(4555)
2024-12-17 22:42:30.429 DEBUG (MainThread) [custom_components.tapo_control] Release_summary - none
2024-12-17 22:42:30.429 DEBUG (MainThread) [custom_components.tapo_control] Latest version - no cloud update
2024-12-17 22:42:30.429 DEBUG (MainThread) [custom_components.tapo_control] 1.3.9 Build 231019 Rel.38052n(4555)
2024-12-17 22:42:30.429 DEBUG (MainThread) [custom_components.tapo_control] Finished fetching Tapo resource status data in 0.002 seconds (success: True)
2024-12-17 22:42:35.816 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.tapo_camera_c200_hd_stream] Error from stream worker: Error opening stream (HTTP_BAD_REQUEST, Server returned 400 Bad Request, rtsp://****:****@192.168.0.110:554/stream1)
2024-12-17 22:42:36.159 DEBUG (MainThread) [custom_components.tapo_control] async_camera_image - camera
2024-12-17 22:42:36.311 DEBUG (MainThread) [custom_components.tapo_control] async_camera_image - camera
2024-12-17 22:42:39.911 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.tapo_camera_c200_sd_stream] Error from stream worker: Error opening stream (HTTP_BAD_REQUEST, Server returned 400 Bad Request, rtsp://****:****@192.168.0.110:554/stream2)

Device Firmware

1.3.9 Build 231019 Rel.38052n(4555)

Integration Version

6.0.1

Using stream component

No

Does camera work via official integrations?

No

Camera has all attributes filled out in developer tools

Yes

HASS Environment

Hassio on Raspberry Pi

Search for similar issues

Yes

Additional information

No response

@aIexus
Copy link
Author

aIexus commented Dec 17, 2024

After series of rebooting of Camera and HA streams become available. Strange things...

@JurajNyiri
Copy link
Owner

In the logs camera is returning bad request for rtsp stream. Nothing to fix on integration side, it simply forwards the link to rtsp to HA.

Make sure it is not being overloaded and hit too hard and if problems persists reach out to tplink.

@Lud00
Copy link

Lud00 commented Dec 18, 2024

I'm experiencing the same issue.
Only 3 entity:
image

@JurajNyiri
Copy link
Owner

That is not the same issue.

You have added wrong integration, follow usage in readme to add this one.

@Lud00
Copy link

Lud00 commented Dec 19, 2024

That is not the same issue.

You have added wrong integration, follow usage in readme to add this one.

Thank you very much for the help.
It was indeed my mistake.

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

3 participants