mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.49k stars 152 forks source link

Timed out connecting to Wyze Doorbell (Not Pro) #471

Closed naitoshedo closed 2 years ago

naitoshedo commented 2 years ago

Latest version: wyze-bridge | 2022/07/12 03:20:15 [Front Doorbell] IOTC_ER_TIMEOUT wyze-bridge | 2022/07/12 03:20:17 [WyzeBridge] ⏰ Timed out connecting to Front Doorbell (20s). wyze-bridge | 2022/07/12 03:20:27 [WyzeBridge] 🎉 Connecting to WyzeCam Doorbell - Front Doorbell on 192.168.1.110 (1/3)

Every other cam (v2 / v3) work fine.

Mobile app can see the Doorbell without issue. Have forced a reconnect + reboot of all APs.

Only change was updating via: docker-compose pull docker-compose down docker-compose up --force-recreate --build -d docker image prune -f

mrlt8 commented 2 years ago

Hmm. Are the tokens cached? Does setting - FRESH_DATA=true help?

naitoshedo commented 2 years ago

docker-compose.yml:

version: "2.4" services: wyze-bridge: container_name: wyze-bridge restart: unless-stopped image: mrlt8/wyze-bridge:latest ports:

The above used to work for the Doorbell + 2 Wyze Cams (v3).. Now it's just the v3 Cams. Doorbell is a no go.

mrlt8 commented 2 years ago

Hmm, that is weird. Any chance you could power cycle the doorbell?

I've noticed a couple of IOTC_ER_TIMEOUT on some of my local builds recently as well with random cameras, so this is something that may need to be investigated further.

naitoshedo commented 2 years ago

Yeah restarting the camera from in the app got it to work.

mrlt8 commented 2 years ago

Awesome!

I wonder if this might be caused by the bridge not closing the tutk session cleanly on exit?

@dsheehan can flask pass the exit signal so we can do some cleanup before exit?

dsheehan commented 2 years ago

@dsheehan can flask pass the exit signal so we can do some cleanup before exit?

Try registering an @app.teardown_appcontext https://flask.palletsprojects.com/en/2.1.x/api/#flask.Flask.teardown_appcontext

cheme75 commented 2 years ago

FWIW, doorbell has been ok. Maybe off topic, I just added an old beta doorbell (I was a beta tester in 2020) that only live streams in the Wyze app. So far it’s looking ok in the bridge. It fails to get a snapshot at times and repeats, but overall it’s looking ok. Opencv in scrypted is now detecting motion on it which the Wyze app does not. Anyway no db connection issues.