How can I get this docker-compose to work with my wyze cameras

Here is what I have so far. I can manually add a generic camera via the UI, but when I enter the configuration details and click submit, it brings up a preview window showing the snapshot and the rtsp stream. They both look good, but when I click submit from there, it takes me back to the config screen, so it just loops between config and preview.

# from https://www.home-assistant.io/installation/linux#docker-compose

version: "3.8"

# networks:
#   mynetwork:

services:
    # https://github.com/mrlt8/docker-wyze-bridge
  wyze-bridge:
    container_name: wyze-bridge
    image: mrlt8/wyze-bridge:latest
    restart: unless-stopped
    # networks: # Add this if you're not using host network for HA
    #   - mynetwork
    volumes:
      - ${ROOT}/wyze-bridge/config:/config
    ports:
      - 1935:1935 # RTMP
      - 8554:8554 # RTSP
      - 8888:8888 # HLS
      - 8889:8889 #WebRTC
      - 8189:8189/udp # WebRTC/ICE
      - 5000:5000 # WEB-UI
    environment:
      - TZ=${TZ} # timezone, defined in .env
      - /etc/localtime:/etc/localtime:ro
      # API Key and ID can be obtained from the wyze dev portal: 
      # https://developer-api-console.wyze.com/#/apikey/view
      - WYZE_EMAIL=${WYZE_EMAIL}
      - WYZE_PASSWORD=${WYZE_PASSWORD}
      - API_ID=${WYZE_API_KEY_ID}
      - API_KEY=${WYZE_API_KEY}
      # [OPTIONAL] IP Address of the host to enable WebRTC e.g.,:
      - WB_IP=192.168.76.10
      # WebUI and Stream authentication:
      - WB_AUTH=True # Set to false to disable web and stream auth.
      - WB_USERNAME=${WB_USERNAME}
      - WB_PASSWORD=${WB_PASSWORD}
    deploy:
      resources:
        reservations:
          devices:
          - driver: nvidia
            count: all
            capabilities: [gpu]

  mqtt:
    container_name: mqtt
    image: eclipse-mosquitto:latest
    restart: unless-stopped
    # networks: # Add this if you're not using host network for HA
    #   - mynetwork
    environment:
      - TZ=${TZ} # timezone, defined in .env
      - /etc/localtime:/etc/localtime:ro
    ports:
      - 1883:1883
      - 9001:9001
    # If you are not using network_mode: host for homeassistant

  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    restart: unless-stopped
    ## network_mode: host
    # networks: # Add this if you're not using host network for HA
    #   - mynetwork
    privileged: true
    depends_on:
      - wyze-bridge
      - mqtt
    environment:
      - PUID=${PUID} # default user id, defined in .env
      - PGID=${PGID} # default group id, defined in .env
      - TZ=${TZ} # timezone, defined in .env
      - /etc/localtime:/etc/localtime:ro
    volumes:
      - ${ROOT}/home-assistant/config:/config # config files
      - /run/dbus:/run/dbus:ro
    ports:
      - 8123:8123
    deploy:
      resources:
        reservations:
          devices:
          - driver: nvidia
            count: all
            capabilities: [gpu]

What does your generic camera config look like - I struggled with it for a while until this one worked:

I’m using the out-of-the-box add-on and integrations, but that shouldn’t matter, me thinks.

I missed the notification that there was a reply here, so just now finally getting back…

I’ve noticed in the wyze-bridge logs that the came is sometimes recognized on my LAN, 192.168.76.158, and sometimes on another network, 192.168.200.104. No idea where that is coming from or how it is happening.

I tried that config, but I get a timeout for the rtsp stream source

Sometimes it will replace the rtsp url with what looks like a sort of key/hash?

rtsp://wb:[email protected]:8554/outdoorcam-1

Today is not a good day to try to tackle Wyze Bridge related issues :frowning:
Discussion: Wyze may have locked down real-time previews with a new update · Issue #1432 · mrlt8/docker-wyze-bridge

Oof. With luck like mine, I probably need to go play the lotto. thanks for saving me a bunch of time.

1 Like