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

2.3.17 - 2.5.0 no connection with V3 #1036

Open
madjetey opened this issue Nov 5, 2023 · 28 comments
Open

2.3.17 - 2.5.0 no connection with V3 #1036

madjetey opened this issue Nov 5, 2023 · 28 comments
Labels
bug Something isn't working

Comments

@madjetey
Copy link

madjetey commented Nov 5, 2023

Home Assistant 2023.10.5
Supervisor 2023.10.1
Operating System 11.1
Frontend 20231005.0 - latest

Initially was working fine. Stopped using the camera for 91 days waiting for a replacement USB cable. Updated multiple times to 2.3.17 over the period. Cable comes in & camera works fine with Wyze app but getting no results in Wyze Bridge. Updated to 2.5.0 but same result.

Here's my log:

[WyzeBridge] 🏠 Home Assistant Mode

🚀 DOCKER-WYZE-BRIDGE v2.5.0 

 * Serving Flask app 'frontend'
 * Debug mode: off
[WyzeBridge] 📚 Using 'auth' from local cache...
[WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.30.33.7:5000
[WyzeBridge] Press CTRL+C to quit
[WyzeBridge] 📚 Using 'user' from local cache...
[WyzeBridge] 📚 Using 'cameras' from local cache...
[WyzeBridge] [+] Adding HouseCam1 [WYZE_CAKP2JFUS]
[WyzeBridge] HouseCam1 may not support multiple streams!!
[WyzeBridge] starting MediaMTX 1.1.1
[WyzeBridge] 🎬 2 streams enabled
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET / HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET /static/site.css HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET /static/site.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET /static/webrtc.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:05] "GET /api/sse_status HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:07] "GET /api/housecam1-sub HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 01:03:09] "GET /api/housecam1 HTTP/1.1" 200 -
@mrlt8
Copy link
Owner

mrlt8 commented Nov 5, 2023

Can you try going to the WebUI and selecting "restart" -> "clear cache and reconnect"?

@madjetey
Copy link
Author

madjetey commented Nov 5, 2023

Did that multiple times before & after the update to 2.5.0

@mrlt8
Copy link
Owner

mrlt8 commented Nov 5, 2023

The bridge seems to be detecting the camera:

[+] Adding HouseCam1 [WYZE_CAKP2JFUS]

Do you get any error messages when trying to open the stream? Can you also try rebooting the camera from the webUI: controls -> restart.

@madjetey
Copy link
Author

madjetey commented Nov 5, 2023

No error messages when opening the stream. No stream either.

Reboot command from the webUI worked but after boot completes nothing changes

[WyzeBridge] 🏠 Home Assistant Mode

🚀 DOCKER-WYZE-BRIDGE v2.5.0 

[WyzeBridge] 📚 Using 'auth' from local cache...
[WyzeBridge] 📚 Using 'user' from local cache...
[WyzeBridge] 📚 Using 'cameras' from local cache...
[WyzeBridge] [+] Adding HouseCam1 [WYZE_CAKP2JFUS]
 * Serving Flask app 'frontend'
 * Debug mode: off
[WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.30.33.7:5000
[WyzeBridge] Press CTRL+C to quit
[WyzeBridge] HouseCam1 may not support multiple streams!!
[WyzeBridge] starting MediaMTX 1.1.1
[WyzeBridge] 🎬 2 streams enabled
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:25:58] "GET / HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:25:58] "GET /static/site.css HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:25:58] "GET /static/webrtc.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:25:58] "GET /static/site.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:25:58] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:25:58] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:25:58] "GET /api/sse_status HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:25:58] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:25:58] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:26:00] "GET /signaling/housecam1-sub?webrtc= HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:29:09] "GET / HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:29:09] "GET /static/site.css HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:29:09] "GET /static/site.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:29:09] "GET /static/webrtc.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:29:09] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:29:09] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:29:09] "GET /api/sse_status HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:29:09] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:29:09] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:29:13] "GET /signaling/housecam1-sub?webrtc= HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:22] "GET / HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:22] "GET /static/site.css HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:22] "GET /static/webrtc.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:22] "GET /static/site.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:22] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:22] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:22] "GET /api/sse_status HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:22] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:22] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] Stopping 2 streams
[WyzeBridge] Stopping MediaMTX...
ice ERROR: 2023/11/05 15:31:28 Failed to read UDP packet: read udp [::]:8189: use of closed network connection
[WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...
[WyzeBridge] ♻️ Clearing local cache...
[WyzeBridge] starting MediaMTX 1.1.1
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:28] "GET /restart/rtsp_server HTTP/1.1" 200 -
[WyzeBridge] Stream monitoring stopped
[WyzeBridge] Stopping 2 streams
[WyzeBridge] 🎬 2 streams enabled
[WyzeBridge] 💾 Saving 'auth' to local cache...
[WyzeBridge] 🔍 Could not find local cache for 'user'
[WyzeBridge] ☁️ Fetching 'user' from the Wyze API...
[WyzeBridge] 💾 Saving 'user' to local cache...
[WyzeBridge] 🔍 Could not find local cache for 'cameras'
[WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
[WyzeBridge] [API] Fetched [1] cameras
[WyzeBridge] 💾 Saving 'cameras' to local cache...
[WyzeBridge] [+] Adding HouseCam1 [WYZE_CAKP2JFUS]
[WyzeBridge] HouseCam1 may not support multiple streams!!
[WyzeBridge] 🎬 2 streams enabled
[WyzeBridge] 172.30.32.2 - - [05/Nov/2023 15:31:34] "GET /signaling/housecam1-sub?webrtc= HTTP/1.1" 200 -

@mrlt8
Copy link
Owner

mrlt8 commented Nov 5, 2023

Looks like you're trying to open the webrtc stream? Can you see if you get any error with the RTSP stream in something like VLC?

@madjetey
Copy link
Author

madjetey commented Nov 5, 2023

Tried various combinations of:
With & without login info in address
With port 8554 specified
With no port specified
Full address including & excluding /unicast

live555 error: Failed to connect with rtsp://192.168.1.119:8554
main error: connection failed: Connection refused by peer
satip error: Failed to connect to RTSP server 192.168.1.119:8554
main error: connection failed: Connection refused by peer
access_realrtsp error: cannot connect to 192.168.1.119:8554
live555 error: Failed to connect with rtsp://192.168.1.119:554
main error: connection failed: Connection refused by peer
satip error: Failed to connect to RTSP server 192.168.1.119:554
main error: connection failed: Connection refused by peer
access_realrtsp error: cannot connect to 192.168.1.119:554
live555 error: Failed to connect with rtsp://192.168.1.119:554
main error: connection failed: Connection refused by peer
satip error: Failed to connect to RTSP server 192.168.1.119:554
main error: connection failed: Connection refused by peer
access_realrtsp error: cannot connect to 192.168.1.119:554
live555 error: Failed to connect with rtsp://192.168.1.119:8554
main error: connection failed: Connection refused by peer
satip error: Failed to connect to RTSP server 192.168.1.119:8554
access_realrtsp error: cannot connect to 192.168.1.119:8554
live555 error: Failed to connect with rtsp://192.168.1.119:8554/unicast
main error: connection failed: Connection refused by peer
satip error: Failed to connect to RTSP server 192.168.1.119:8554
main error: connection failed: Connection refused by peer
access_realrtsp error: cannot connect to 192.168.1.119:8554
live555 error: Failed to connect with rtsp://192.168.1.119:8554/unicast
main error: connection failed: Connection refused by peer
satip error: Failed to connect to RTSP server 192.168.1.119:8554
main error: connection failed: Connection refused by peer
access_realrtsp error: cannot connect to 192.168.1.119:8554

@mrlt8
Copy link
Owner

mrlt8 commented Nov 5, 2023

That doesn't seem right. Try clicking the RTSP link from the webUI or use this format in VLC:

rtsp://<home assistant ip>:8554/housecam1

@xiw8dijzjw
Copy link

Same situation like you after 2.5 update.

[WyzeBridge] 🏠 Home Assistant Mode

🚀 DOCKER-WYZE-BRIDGE v2.5.0

  • Serving Flask app 'frontend'
  • Debug mode: off
    [WyzeBridge] 📚 Using 'auth' from local cache...
    [WyzeBridge] 📚 Using 'user' from local cache...
    [WyzeBridge] 📚 Using 'cameras' from local cache...
    [WyzeBridge] [+] Adding door [WYZE_CAKP2JFUS]
    [WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:5000
  • Running on http://172.30.33.2:5000
    [WyzeBridge] Press CTRL+C to quit
    [WyzeBridge] starting MediaMTX 1.1.1
    [WyzeBridge] 🎬 1 stream enabled

@thehijacker
Copy link

thehijacker commented Nov 6, 2023

Same problem on my side. Can no longer access the cams (v2). I have them connected to Frigate using RTSP stream but they all fail to read. Ffplay test says:

rtsp://192.168.28.53:8554/vhod: Server returned 404 Not Found

Edit: I have downgraded docker image to mrlt8/wyze-bridge:2.3.17 and they are now both working. So something is wrong with version 2.5.0. Let me know how can I help debug this.

@louispires
Copy link

Same issue here, cameras lost all connection after auto upgrade to 2.5.0 this morning.

Reverting to 2.3.17 restored all functionality.

@madjetey
Copy link
Author

madjetey commented Nov 6, 2023

That doesn't seem right. Try clicking the RTSP link from the webUI or use this format in VLC:

rtsp://<home assistant ip>:8554/housecam1

No change

live555 error: Failed to connect with rtsp://192.168.1.108:8554/housecam1
satip error: Failed to setup RTSP session
satip error: read error: No error
satip error: Failed to teardown RTSP session

@delzear
Copy link

delzear commented Nov 6, 2023

Try Sync the time on the cameras. It worked for my 2xV3, 1xV3 and my Doorbell v1

@madjetey
Copy link
Author

madjetey commented Nov 6, 2023

Try Sync the time on the cameras. It worked for my 2xV3, 1xV3 and my Doorbell v1

Tried. Restarted the add on & camera as well to be sure. Issue persists

@mrlt8
Copy link
Owner

mrlt8 commented Nov 7, 2023

I'm not seeing this issue with v2.5.0, but will try to look into this.

Is everyone having issues using the Home Assistant add-on?

Can someone post the logs from the bridge when trying to access the streams to see if there are any errors with the connection to the camera?

@mrlt8 mrlt8 added the bug Something isn't working label Nov 7, 2023
@maxfield-allison
Copy link

having similar issues on the standalone docker version. all latest tags and dev.

mrlt8 added a commit that referenced this issue Nov 7, 2023
@mrlt8
Copy link
Owner

mrlt8 commented Nov 7, 2023

hmm, I reverted MTX from v1.1.1 back down to v1.1.0 in the dev branch to match what we were using in v2.4.0 of the bridge.

@maxfield-allison
Copy link

better on dev image HLS works but loading is taking forever and webrtc is still giving issues

@maxfield-allison
Copy link

seems the cams lose connection now and clearing cache+reconnect doesn't bring them back.

@mrlt8
Copy link
Owner

mrlt8 commented Nov 10, 2023

Any errors in the logs? Does rolling back to a previous build of the bridge improve things?

@UnexDev
Copy link

UnexDev commented Nov 12, 2023

Same issue. I'll try to fork the repo and apply changes and see if that helps.

[WyzeBridge]` 172.17.0.1 - - [12/Nov/2023 03:40:04] "GET /snapshot/cam-v3.jpg?1699760387126 HTTP/1.1" 307 -
[WyzeBridge] 172.17.0.1 - - [12/Nov/2023 03:40:04] "GET /static/notavailable.svg HTTP/1.1" 200 -
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Cam v3 on 192.168.68.51
[WyzeBridge] 📖 New client reading from media-room
[WyzeBridge] 📖 New client reading from family-room
[WyzeBridge] 172.17.0.1 - - [12/Nov/2023 03:40:19] "GET /snapshot/family-room.jpg?1699760417297 HTTP/1.1" 200 -
[WyzeBridge] 📖 New client reading from family-room
[WyzeBridge] 172.17.0.1 - - [12/Nov/2023 03:40:19] "GET /snapshot/media-room.jpg?1699760417297 HTTP/1.1" 200 -
[WyzeBridge] 📖 New client reading from media-room
[WyzeBridge] 📕 Client stopped reading from media-room
[WyzeBridge] 📕 Client stopped reading from family-room
[WyzeBridge] ☁️ Pulling "cam-v3" thumbnail to /img/cam-v3.jpg
[cam-v3] 📡 Getting 180kb/s HD stream (H264/20fps) via LAN mode (WiFi: 98%) FW: 4.36.0.150 (2/3)
[cam-v3] WARNING: Skipping smaller frame at start of stream (frame_size=1)
[WyzeBridge] ERROR pulling thumbnail:404 Client Error: Not Found for url: https://camera-usw2.s3.us-west-2.amazonaws.com/7C78B2231DCC/2023-11-12/7C78B2231DCC011699760075_1699760075000_1_1_0/ed4c13376a344c7aa48d0f8df144e14f.jpg?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIARI6ZGMJQQTF3O3GP/20231112/us-west-2/s3/aws4_request&X-Amz-Date=20231112T033934Z&X-Amz-SignedHeaders=host&X-Amz-Signature=f6838f7d49701302cfa91339a50e4b79cf374bab2e93ea004b41ab2270e6c400
[WyzeBridge] 172.17.0.1 - - [12/Nov/2023 03:40:19] "GET /snapshot/cam-v3.jpg?1699760417296 HTTP/1.1" 307 -
[WyzeBridge] 172.17.0.1 - - [12/Nov/2023 03:40:19] "GET /static/notavailable.svg HTTP/1.1" 200 -
[cam-v3] FFMPEG stopped

I'm assuming TUTK patched their protocol, because Wyze put out a statement saying that they had to force an update because of "security vulnerabilities".

@mrlt8
Copy link
Owner

mrlt8 commented Nov 13, 2023

@UnexDev it looks like the bridge is able to connect to your cam, but something goes wrong while getting the video. Was it connecting in the previous release (v2.4.0) of the bridge? Can you set FFMPEG_LOGLEVEL=info to see if that shows any additional errors?

Wyze did make some changes to their v4.x.11.x firmware that messed up the bitrate info, but it seems like you're still on a really early version 4.36.0.150.

@gtxaspec
Copy link

Same issue. @mrlt8, so far the fix for me is going into the UI, and on each camera, select "enable" for the stream to start. The stream's won't enable automatically for some reason...

# docker logs addon_7094bb28_docker_wyze_bridge -f
[WyzeBridge] 🏠 Home Assistant Mode
19:15:04 [WARNING][WyzeBridge] WARNING: invalid escape sequence '\:'

🚀 DOCKER-WYZE-BRIDGE v2.5.0 

19:15:04 [INFO][WyzeBridge] ♻️ Clearing local cache...
19:15:04 [INFO][WyzeBridge] 🔍 Could not find local cache for 'auth'
19:15:04 [INFO][WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...
19:15:04 [DEBUG][WyzeBridge] Starting new HTTPS connection (1): auth-prod.api.wyze.com:443
 * Serving Flask app 'frontend'
 * Debug mode: off
19:15:04 [INFO][WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.30.33.6:5000
19:15:04 [INFO][WyzeBridge] Press CTRL+C to quit
19:15:04 [DEBUG][WyzeBridge] https://auth-prod.api.wyze.com:443 "POST /api/user/login HTTP/1.1" 200 None
19:15:04 [INFO][WyzeBridge] 💾 Saving 'auth' to local cache...
19:15:04 [INFO][WyzeBridge] 🔍 Could not find local cache for 'user'
19:15:04 [INFO][WyzeBridge] ☁️ Fetching 'user' from the Wyze API...
19:15:04 [DEBUG][WyzeBridge] Starting new HTTPS connection (1): api.wyzecam.com:443
19:15:04 [DEBUG][WyzeBridge] https://api.wyzecam.com:443 "POST /app/user/get_user_info HTTP/1.1" 200 240
19:15:04 [INFO][WyzeBridge] 💾 Saving 'user' to local cache...
19:15:04 [INFO][WyzeBridge] 🔍 Could not find local cache for 'cameras'
19:15:04 [INFO][WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
19:15:05 [DEBUG][WyzeBridge] Starting new HTTPS connection (1): api.wyzecam.com:443
19:15:05 [DEBUG][WyzeBridge] https://api.wyzecam.com:443 "POST /app/v2/home_page/get_object_list HTTP/1.1" 200 36081
19:15:05 [INFO][WyzeBridge] [API] Fetched [21] cameras
19:15:05 [INFO][WyzeBridge] 💾 Saving 'cameras' to local cache...
19:15:05 [INFO][WyzeBridge] 🪄 FILTER ALLOWING: 5 of 21 cams
19:15:05 [INFO][WyzeBridge] [+] Adding Exterior [HL_PAN3]
19:15:05 [INFO][WyzeBridge] [+] Adding three [HL_PAN3]
19:15:05 [ERROR][WyzeBridge] three may not support multiple streams!!
19:15:05 [INFO][WyzeBridge] [+] Adding two luz [WYZE_CAKP2JFUS]
19:15:05 [INFO][WyzeBridge] [+] Adding two [WYZE_CAKP2JFUS]
19:15:05 [INFO][WyzeBridge] [+] Adding one [WYZE_CAKP2JFUS]
19:15:05 [INFO][WyzeBridge] starting MediaMTX 1.1.1
19:15:05 [INFO][WyzeBridge] 🎬 7 streams enabled

mrlt8 added a commit that referenced this issue Nov 13, 2023
mrlt8 added a commit that referenced this issue Nov 13, 2023
mrlt8 added a commit that referenced this issue Nov 13, 2023
* downgrade MTX to v1.1.0 #1036

* parse accessories response #921

* set the flood light switch #921

* run health check on streams #1036 #1037

* Revert "downgrade MTX to v1.1.0 #1036"

This reverts commit d43437c.

* bump ios version

* changelog
@gtxaspec
Copy link

Working now 👍

@madjetey
Copy link
Author

madjetey commented Nov 13, 2023

Updated to 2.5.1. No change for me

[WyzeBridge] 🏠 Home Assistant Mode

🚀 DOCKER-WYZE-BRIDGE v2.5.1 

 * Serving Flask app 'frontend'
 * Debug mode: off
[WyzeBridge] 📚 Using 'auth' from local cache...
[WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.30.33.7:5000
[WyzeBridge] Press CTRL+C to quit
[WyzeBridge] 📚 Using 'user' from local cache...
[WyzeBridge] 📚 Using 'cameras' from local cache...
[WyzeBridge] [+] Adding HouseCam1 [WYZE_CAKP2JFUS]
[WyzeBridge] HouseCam1 may not support multiple streams!!
[WyzeBridge] starting MediaMTX 1.1.1
[WyzeBridge] 🎬 2 streams enabled
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:40:59] "GET /api/sse_status HTTP/1.1" 200 -
[WyzeBridge] ⏰ Timed out connecting to HouseCam1.
[WyzeBridge] ⏰ Timed out connecting to HouseCam1.
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:27] "GET / HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:27] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:27] "GET /static/site.css HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:27] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:27] "GET /static/site.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:27] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:27] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:27] "GET /api/sse_status HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:27] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:27] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] [CONTROL] SET housecam1-sub state=enable
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:29] "GET /api/housecam1-sub/state/enable HTTP/1.1" 200 -
[WyzeBridge] [CONTROL] SET housecam1-sub state=start
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:30] "GET /api/housecam1-sub/state/start HTTP/1.1" 200 -
[WyzeBridge] [CONTROL] SET housecam1 state=enable
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:34] "GET /api/housecam1/state/enable HTTP/1.1" 200 -
[WyzeBridge] [CONTROL] SET housecam1 state=start
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:34] "GET /api/housecam1/state/start HTTP/1.1" 200 -
[housecam1-sub] [-13] IOTC_ER_TIMEOUT
[housecam1] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
[WyzeBridge] [API] Fetched [1] cameras
[WyzeBridge] 💾 Saving 'cameras' to local cache...
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:41] "GET /snapshot/housecam1-sub.jpg?1699897301286= HTTP/1.1" 307 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:41] "GET /snapshot/housecam1-sub.jpg?1699897301286= HTTP/1.1" 307 -
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:43] "GET /snapshot/housecam1.jpg?1699897303798= HTTP/1.1" 307 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:43] "GET /snapshot/housecam1.jpg?1699897303798= HTTP/1.1" 307 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET / HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET /static/site.css HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET /static/webrtc.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET /static/site.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET /api/sse_status HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:56] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:57] "GET /signaling/housecam1-sub?webrtc= HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:41:59] "GET /signaling/housecam1?webrtc= HTTP/1.1" 200 -
[housecam1-sub] [-13] IOTC_ER_TIMEOUT
[housecam1-sub] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] ⏰ Timed out connecting to HouseCam1.
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:42:07] "GET / HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:42:07] "GET /static/site.css HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:42:08] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:42:08] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:42:08] "GET /static/site.js HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:42:08] "GET /img/housecam1.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:42:08] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:42:08] "GET /api/sse_status HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:42:08] "GET /img/housecam1-sub.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [13/Nov/2023 17:42:08] "GET /img/housecam1.jpg HTTP/1.1" 304 -

Adding in camera info

<html><body>
<!--StartFragment-->

audio | true
-- | --
camera_info | null
connected | false
dtls | 1
enabled | true
firmware_ver | 4.36.9.139
hls_url | http://192.168.1.108:8888/housecam1-sub/...
img_time | 1691198601892
img_url | img/housecam1-sub.jpg
ip | 192.168.1.119
is_2k | false
is_battery | false
mac | XXXXXXXXXXXX
model_name | V3
motion | false
motion_ts | 0
name_uri | housecam1-sub
nickname | HouseCam1
on_demand | false
p2p_type | 3
parent_dtls | 0
parent_mac |  
product_model | WYZE_CAKP2JFUS
record | false
req_bitrate | 50
req_frame_size | 1
rtmp_url | rtmp://192.168.1.108:1935/housecam1-sub
rtsp_fw | false
rtsp_fw_enabled | false
rtsp_url | rtsp://192.168.1.108:8554/housecam1-sub
snapshot_url | snapshot/housecam1-sub.jpg
start_time | 1699897429.8222227
status | 2
stream_auth | false
substream | true
thumbnail | null
thumbnail_url | thumb/housecam1-sub.jpg
timezone_name | Africa/Accra
webrtc | true
webrtc_url | http://192.168.1.108:8889/housecam1-sub

<!--EndFragment-->
</body>
</html>audio	true
camera_info	null
connected	false
dtls	1
enabled	true
firmware_ver	4.36.9.139
hls_url	[http://192.168.1.108:8888/housecam1-sub/...](http://192.168.1.108:8888/housecam1-sub/)
img_time	1691198601892
img_url	[img/housecam1-sub.jpg](http://192.168.1.108:8123/api/hassio_ingress/img/housecam1-sub.jpg)
ip	192.168.1.119
is_2k	false
is_battery	false
mac	XXXXXXXXXXXX
model_name	V3
motion	false
motion_ts	0
name_uri	housecam1-sub
nickname	HouseCam1
on_demand	false
p2p_type	3
parent_dtls	0
parent_mac	
product_model	WYZE_CAKP2JFUS
record	false
req_bitrate	50
req_frame_size	1
rtmp_url	rtmp://192.168.1.108:1935/housecam1-sub
rtsp_fw	false
rtsp_fw_enabled	false
rtsp_url	rtsp://192.168.1.108:8554/housecam1-sub
snapshot_url	[snapshot/housecam1-sub.jpg](http://192.168.1.108:8123/api/hassio_ingress/snapshot/housecam1-sub.jpg)
start_time	1699897429.8222227
status	2
stream_auth	false
substream	true
thumbnail	null
thumbnail_url	[thumb/housecam1-sub.jpg](http://192.168.1.108:8123/api/hassio_ingress/thumb/housecam1-sub.jpg)
timezone_name	Africa/Accra
webrtc	true
webrtc_url	http://192.168.1.108:8889/housecam1-sub

@mrlt8
Copy link
Owner

mrlt8 commented Nov 14, 2023

@madjetey Any chance you can run the bridge in docker or on another machine to rule out any local connection issues with HA?

@madjetey
Copy link
Author

madjetey commented Nov 14, 2023

Well will you look at that. Connected the camera to next door WiFi then installed & ran Docker Wyze Bridge on the bare metal HA setup there.

There was a power cut immediately I finished the setup & the jumper cables for the generator were missing BUT

After defeating that nonsense, and running the add on IT WORKED.

[WyzeBridge] 🏠 Home Assistant Mode

🚀 DOCKER-WYZE-BRIDGE v2.5.1 

[WyzeBridge] 🔍 Could not find local cache for 'auth'
[WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...
 * Serving Flask app 'frontend'
 * Debug mode: off
[WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.30.33.7:5000
[WyzeBridge] Press CTRL+C to quit
[WyzeBridge] 💾 Saving 'auth' to local cache...
[WyzeBridge] 🔍 Could not find local cache for 'user'
[WyzeBridge] ☁️ Fetching 'user' from the Wyze API...
[WyzeBridge] 💾 Saving 'user' to local cache...
[WyzeBridge] 🔍 Could not find local cache for 'cameras'
[WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
[WyzeBridge] [API] Fetched [1] cameras
[WyzeBridge] 💾 Saving 'cameras' to local cache...
[WyzeBridge] [+] Adding Wyze Cam V3 [WYZE_CAKP2JFUS]
[WyzeBridge] starting MediaMTX 1.1.1
[WyzeBridge] 🎬 1 stream enabled
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Wyze Cam V3 on 192.168.132.150
[wyze-cam-v3] 📡 Getting 180kb/s HD stream (H264/20fps) via LAN mode (WiFi: 63%) FW: 4.36.9.139 🔒 (DTLS) (2/3)
[WyzeBridge] ✅ '/wyze-cam-v3 stream is UP! (3/3)
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:15:03] "GET / HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:15:03] "GET /static/site.js HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:15:03] "GET /static/site.css HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:15:03] "GET /static/loading.svg HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:15:03] "GET /api/sse_status HTTP/1.1" 200 -
[WyzeBridge] 📖 New client reading from wyze-cam-v3
[WyzeBridge] 📕 Client stopped reading from wyze-cam-v3
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:15:06] "GET /img/wyze-cam-v3.jpg HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:15:06] "GET /img/wyze-cam-v3.jpg HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:15:15] "GET /api/wyze-cam-v3 HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:15:37] "GET /img/wyze-cam-v3.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:15:37] "GET /img/wyze-cam-v3.jpg HTTP/1.1" 304 -
[wyze-cam-v3] [CONTROL] ERROR - error=TutkError(-20018), cmd=('param_info', '1,2,3,4,5,6,7,21,22,27,50')
[wyze-cam-v3] Stream did not receive a frame for over 15s
[WyzeBridge] ❌ '/wyze-cam-v3' stream is down
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Wyze Cam V3 on 192.168.132.150
[wyze-cam-v3] 📡 Getting 180kb/s HD stream (H264/20fps) via LAN mode (WiFi: 60%) FW: 4.36.9.139 🔒 (DTLS) (2/3)
[wyze-cam-v3] WARNING: Skipping smaller frame at start of stream (frame_size=1)
[WyzeBridge] ✅ '/wyze-cam-v3 stream is UP! (3/3)
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:19:51] "GET /img/wyze-cam-v3.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.30.32.2 - - [14/Nov/2023 22:19:51] "GET /img/wyze-cam-v3.jpg HTTP/1.1" 304 -

Camera info from add on


audio	false
apartalarmParm	{ "heightY": "55", "longX": "50", "startX": "25", "startY": "22", "type": "0" }
audioParm	{ "sampleRate": "16000" }
basicInfo	{ "firmware": "4.36.9.139", "hardware": "0.0.0.0", "mac": "XXXXXXXXXXXX", "model": "WYZE_CAKP2JFUS", "type": "camera", "wifidb": "63" }
channelResquestResult	{ "audio": "0", "video": "1" }
recordType	{ "type": "2" }
sdParm	{ "capacity": "29801", "detail": "0", "free": "29084", "status": "1" }
settingParm	{ "logSd": "1", "logUdisk": "1", "nightVision": "3", "osd": "1", "stateVision": "1", "telnet": "2", "tz": "0" }
uDiskParm	{ "capacity": "0", "free": "0", "status": "2" }
videoParm	{ "bitRate": "60", "fps": "20", "horizontalFlip": "2", "logo": "2", "resolution": "2", "time": "1", "type": "H264", "verticalFlip": "2" }
connected	true
dtls	1
enabled	true
firmware_ver	4.36.9.139

@madjetey
Copy link
Author

madjetey commented Nov 15, 2023

UPDATE:
Never mind. It's back. Relocated the camera back to its original position and DWB isn't seeing it. It's not a WiFi range problem because it was working fine there way back when everything was ok & it's just as fine on the wyze app right now.

ORIGINAL:
You guys would not believe this. So after the failure earlier (successfully running docker wyze bridge on another HA setup on another network then trying again on my own system), I tried one last gasp and copied the addon yaml configuration from the alternative HA setup to mine. Removed DWB, restarted HA, reinstalled DWB & removed and re-added the camera. Still had no luck. Gave up, posted my update then went to bed.

Woke up to a power cut that lasted 13hrs. Now that things stabilized I rebooted my HA & wifi to discover that it's all working fine. I don't get it.

[WyzeBridge] 🏠 Home Assistant Mode

🚀 DOCKER-WYZE-BRIDGE v2.5.1 

[WyzeBridge] 📚 Using 'auth' from local cache...
[WyzeBridge] 📚 Using 'user' from local cache...
[WyzeBridge] 📚 Using 'cameras' from local cache...
[WyzeBridge] [+] Adding HouseCam1 [WYZE_CAKP2JFUS]
 * Serving Flask app 'frontend'
 * Debug mode: off
[WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.30.33.7:5000
[WyzeBridge] Press CTRL+C to quit
[WyzeBridge] HouseCam1 may not support multiple streams!!
[WyzeBridge] starting MediaMTX 1.1.1
[WyzeBridge] 🎬 2 streams enabled
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[housecam1-sub] [-13] IOTC_ER_TIMEOUT
[housecam1] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
[WyzeBridge] [API] HTTPSConnectionPool(host='api.wyzecam.com', port=443): Max retries exceeded with url: /app/v2/home_page/get_object_list (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fea31f55a10>: Failed to resolve 'api.wyzecam.com' ([Errno -2] Name or service not known)"))
[WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
[WyzeBridge] [API] Fetched [1] cameras
[WyzeBridge] 💾 Saving 'cameras' to local cache...
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - HouseCam1 on 192.168.1.119
[housecam1-sub] 📡 Getting 50kb/s SD stream (H264/20fps) via LAN mode (WiFi: 69%) FW: 4.36.9.139 🔒 (DTLS) (2/3)
[housecam1-sub] 🔊 Audio Enabled - ALAW > AAC/16,000Hz
[housecam1] 📡 Getting 60kb/s HD stream (H264/20fps) via LAN mode (WiFi: 69%) FW: 4.36.9.139 🔒 (DTLS) (2/3)
[housecam1] 🔊 Audio Enabled - ALAW > AAC/16,000Hz
[WyzeBridge] ✅ '/housecam1-sub stream is UP! (3/3)
[WyzeBridge] ✅ '/housecam1 stream is UP! (3/3)
[WyzeBridge] 📖 New client reading from housecam1-sub
[WyzeBridge] 📖 New client reading from housecam1

@cybersholt
Copy link

Can you try going to the WebUI and selecting "restart" -> "clear cache and reconnect"?

Just got some new v3 cameras and after the obligatory update your firmware several times, simply doing the aforementioned steps made them appear immediately.

And to @mrlt8 awesome project, keep up the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants