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

BUG: API key not switching #1317

Open
jpetersheim opened this issue Aug 10, 2024 · 5 comments
Open

BUG: API key not switching #1317

jpetersheim opened this issue Aug 10, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@jpetersheim
Copy link

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...

  • Serving Flask app 'frontend'
    [WyzeBridge] [AUTH] WB_AUTH=True
  • 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.11:5000
    [WyzeBridge] Press CTRL+C to quit
    [WyzeBridge] [AUTH] WB_USERNAME=wbadmin
    [WyzeBridge] [AUTH] WB_PASSWORD=k*******
    [WyzeBridge] [AUTH] WB_API=PX******************
    [WyzeBridge] 📚 Using 'user' from local cache...
    [WyzeBridge] 📚 Using 'cameras' from local cache...
    [WyzeBridge] [+] Adding Backyard Cam [WYZE_CAKP2JFUS]
    [WyzeBridge] [+] Adding Garage Cam [WYZE_CAKP2JFUS]
    [WyzeBridge] [+] Adding Home Cam [WYZEC1-JZ]
    [WyzeBridge] [MTX] starting MediaMTX 1.8.4
    [WyzeBridge] 🎬 3 streams enabled
    [WyzeBridge] API Motion Events Enabled [interval=1.5]
    [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Backyard Cam on 192.168.XX.XX
    [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Garage Cam on 192.168.XX.XX
    [WyzeBridge] 🎉 Connecting to WyzeCam V2 - Home Cam on 192.168.1.248`

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 jpetersheim added the bug Something isn't working label Aug 10, 2024
@jpetersheim
Copy link
Author

jpetersheim commented Aug 10, 2024

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
Copy link
Owner

mrlt8 commented Aug 10, 2024

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

@jpetersheim
Copy link
Author

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
Copy link
Owner

mrlt8 commented Aug 11, 2024

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

http://<bridge ip>:5000/thumb/<cam-name>.jpg)

@jpetersheim
Copy link
Author

jpetersheim commented Aug 11, 2024

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

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

2 participants