Skip to content

Two Factor Authentication

mrlt8 edited this page Sep 4, 2022 · 7 revisions

Two-factor authentication is supported and will automatically be detected, however additional steps are required to enter your verification code.

WebUI

Starting with v1.8.7, visiting the WebUI should give you a form where you can submit your 2FA code.

Auto generate a TOTP

You can have the bridge auto generate and enter a Time-based One-Time Password (TOTP) by setting the TOTP_KEY in your docker-compose.yml with the code from the Wyze App:

environment:
    - TOTP_KEY=MYSECRETKEY12345

This can also be done by adding the secret key to the file /tokens/totp on standard installs or /config/wyze-bridge/totp for Home Assistant installs. You will need to create the file if it doesn't exist and mount it if necessary.

Docker

  • Echo the verification code directly to /tokens/mfa_token.txt by opening a second terminal window and using:

    docker exec -it wyze-bridge sh -c 'echo "123456" > /tokens/mfa_token.txt'
  • Mount /tokens/ locally and add your verification code to a file named mfa_token.txt:

    volumes:
        - ./tokens:/tokens/

Home Assistant

Add your code to the text file: /config/wyze-bridge/mfa_token.txt.

Portainer

Use the console to echo your code to the container:

echo "123456" > /tokens/mfa_token.txt
Clone this wiki locally