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

BUG: API key not switching #1317

Open jpetersheim opened 1 month ago

jpetersheim commented 1 month ago

Describe the bug

Updated from a version before April to latest version. When I access the WebUI through HAOS, I am still seeing the snapshots from April. Nothing new will load.

If I scroll to the bottom I am seeing "API key: PX***" which was the old API key I had to remove, and created a new one to reset this. I tried uninstalling the add-on and reinstalling and it didn't fix the issue.

Log on start up:

`[WyzeBridge] πŸ“š Using 'auth' from local cache...

Affected Bridge Version

v.2.10.1

Bridge type

Home Assistant

Affected Camera(s)

V2, V3

Affected Camera Firmware

No response

docker-compose or config (if applicable)

wyze_email = k********
wyze_password = l******
Key_ID = d**************
API_Key = N***************
Net modes = any
Snapshot mode = RTSP
img_type = jpg
enable audio = true
on_demand = true
motion_api = true
audio codec = aac
mqtt_host = homeassistant
webUI Auth = true
jpetersheim commented 1 month ago

Sorry the code formatting didn't work ^

I deleted what I thought was the local folder, but its still persisting the auth information. Not sure if its in another location. /addon_config/docker_wyze_bridge

mrlt8 commented 1 month ago

can you try setting the FRESH_DATA toggle to true or from the WebUI: Restart > clear cache and reconnect?

jpetersheim commented 1 month ago

Clear cache and reconnect doesn't appear to be changing anything.

I enabled 'Pull Fresh Data From Wyze API' and it forced a restart of the add-on, but I'm still seeing snapshots from April and the old API key.

mrlt8 commented 1 month ago

Is the bridge able to connect to any of the cameras? Can you try visiting

http://<bridge ip>:5000/thumb/<cam-name>.jpg)
jpetersheim commented 1 month ago

EDIT: I disabled WebUI Auth and the one camera is still showing me the thumbnail from 02Apr. The other camera has updated the thumbnail to today 11Aug2024. They are both V3 cams, the one that updated is a floodlight.

Now instead of the API displayed at the bottom it just shows 'WebUI auth is disabled'.

If I try to stream or anything from the updated camera, it errors out and tells me "Lost connection to the bridge..."

I don't think the WebUI auth had anything to do with the one cam updating, since it updated the snapshot like 3 hours before I made the change