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.7k stars 176 forks source link

HA WDB 2.7.0 update issue, maybe? #1078

Open AngusNB opened 10 months ago

AngusNB commented 10 months ago

I resolved this but don't know why it happened. Resolved by adding the Wyze API ID/Key in my config.

I run Docker-Wyze-Bridge in HomeAssistant on a RPi 3. HA is up to date. I normally connect to 6 Wyze cams.

HA addons shows that I am running Docker Wyze Bridge v2.7.0. The WebUI shows v2.6.0 with 0 cameras detected.

I have uninstalled / reinstalled Docker Wyze Bridge with no change.

I was never prompted for MFA code. Adding Wyze API ID/Key fixed the no cameras showing but the WebUI still shows v2.6.0 with an update available.

eruisi commented 10 months ago

I have the same issue. I think it is a 2.7.0 bug.

AngusNB commented 10 months ago

You can do what I did.

Create your Wyze API Key/ID here.

Add the ID and Key to your Wyze Docker Bridge config by enabling Show unused optional configuration options. Scroll back to the top and you'll see Key ID and API Key under your Wyze login credentials.

eruisi commented 10 months ago

I use AngusNB's way for credential and it works smoothly., it works better than mfa_token.txt (everytime Wyze needs to authorize your login, you need to update it). API key lasts for 1 year.

AngusNB commented 10 months ago

I could never get mfa_token.txt to work at all.

mrlt8 commented 10 months ago

This is probably related to the recent changes to the config directory: https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/

As for 2fa, the current recommended way is to use the webui to enter the code. You may need to move the totp file to the new path, if using that to generate the code.

AngusNB commented 10 months ago

As for 2fa, the current recommended way is to use the webui to enter the code.

I assumed that but I was never prompted for the code.

The WebUI is still showing v2.6.0, is that correct?

mgrimace commented 10 months ago

Same issue, updated to v2.7.0 but WebUI shows v2.6.0 and the camera disappeared. Deleted and re-added the addon, added in credentials to the config, but still no prompt for totp code. The fix @AngusNB wrote above to generate an API key worked as followed. I manually had to add ROTATE_DOOR=true back to the config for my Wyze doorbell as well (didn't see the option, so I entered it manually).

curtisbarnard commented 10 months ago

Thanks @AngusNB using the API Key ID and Token fixed my issues. Using 2FA with mfa_token.txt was working on earlier versions, but 2.7.0 seems to have broken it.

AngusNB commented 10 months ago

2.7.0 seems to have broken it.

HA moved the config folder. @mrlt8 posted the link about the change earlier. https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/