{% extends "base.html" %} {% block title %}{{ board.name }} – Tuya Settings{% endblock %} {% block content %}
Back to Gateway
Tuya / Smart Life Account
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for cat, msg in messages %} {% endfor %} {% endif %} {% endwith %}

Link your Tuya / Smart Life account by scanning a QR code with the mobile app. No tokens or passwords are stored in plain text – only the access/refresh token pair returned by SSO is persisted.

{# Current status #} {% if board.config.get('tuya_token_info') %}
Account linked. (User code: {{ board.config.get('tuya_user_code', '?') }})
{% else %}
No account linked yet.
{% endif %} {# QR section #}
Choose any short identifier for this installation (letters and numbers, no spaces). You will need to remember it if you ever re-link the account.

Open the Smart Life (or Tuya Smart) app → tap the scan icon → scan this QR code.

Waiting…
Waiting for scan…
{% endblock %} {% block scripts %} {% endblock %}