Welcome to FreeSoftwareServers Confluence Wiki

I kept thinking of this like a integration into "Home Assistant" but realized, Wyze-Bridge is it's own thing, that just enables RTSP. I'd like to look into enable/disable Motion via the API next, but for now, I can view stream in HA and I know ZoneMinder is an option if I want.

I digress.. Here is my docker-compose stuff!

https://github.com/mrlt8/docker-wyze-bridge/blob/main/docker-compose.sample.yml

https://github.com/mrlt8/docker-wyze-bridge

To setup Multi-Factor authentication:

 View the logs, or just wait for text notification and then use this:

echo "123456" > /opt/wyze-bridge/tokens/mfa_token

To View RTSP: 

camera-nickname is the name of the camera set in the Wyze app and are converted to lower case with hyphens in place of spaces.

rtsp://localhost:8554/camera-nickname
WD=/opt/wyze-bridge
mkdir -p $WD/{setup,tokens}
cd $WD/setup
cat << 'EOF' >docker-compose.yaml
version: '3.7'

services:
  wyze-bridge:
    container_name: wyze-bridge
    image: mrlt8/wyze-bridge:latest

    ports:
      - 1935:1935
      - 8554:8554
      - 8842:8888

    volumes:
      - type: bind
        source: /opt/wyze-bridge/tokens/
        target: /tokens/

    environment:
      - WYZE_EMAIL=${WYZE_EMAIL} 
      - WYZE_PASSWORD=${WYZE_PASSWORD}
      - LAN_ONLY=${LAN_ONLY}
      - QUALITY=${QUALITY}
      - IGNORE_OFFLINE=${IGNORE_OFFLINE}
      - FRESH_DATA=${FRESH_DATA}

EOF
chmod +x docker-compose.yaml
cd $WD/setup
cat << 'EOF'>.env
#Wyze
WYZE_EMAIL=
WYZE_PASSWORD=2

#Bridge Settings
LAN_ONLY=true
QUALITY=HD120
IGNORE_OFFLINE=true
FRESH_DATA=true
EOF
chmod +x .env
WD=/opt/wyze-bridge/setup
cat << EOF >$WD/wyze-bridge.service.setup.sh
cat << EOL >/lib/systemd/system/wyze-bridge.service
[Unit]
Description=wyze-bridge_Docker
Requires=docker.service network-online.target

[Service]

Restart=on-abnormal
ExecStart=/usr/bin/docker-compose --project-name wyze-bridge --project-directory $WD -f $WD/docker-compose.yaml up
ExecStop=/usr/bin/docker-compose --project-name wyze-bridge --project-directory $WD -f $WD/docker-compose.yaml stop

[Install]
WantedBy=multi-user.target
EOL
systemctl enable wyze-bridge
systemctl restart wyze-bridge
systemctl status wyze-bridge
EOF
chmod +x $WD/wyze-bridge.service.setup.sh
$WD/wyze-bridge.service.setup.sh
  • No labels