- Tuya Cloud Gateway driver (tuya-device-sharing-sdk):
- QR-code auth flow: user-provided user_code, terminal_id/endpoint
returned by Tuya login_result (mirrors HA implementation)
- Device sync, toggle DP, rename, per-device detail page
- category → kind mapping; detect_switch_dps helper
- format_dp_value: temperature (÷10 + °C/°F), humidity (+ %)
registered as 'tuya_dp' Jinja2 filter
- TuyaDevice model (tuya_devices table)
- Templates:
- tuya/gateway.html: device grid with live-reading sensor cards
(config/threshold keys hidden from card, shown on detail page)
- tuya/device.html: full status table with formatted DP values
- tuya/auth_settings.html: user_code input + QR scan flow
- Add-board wizard refactored to 2-step flow:
- Step 1: choose board type (Cloud Gateways vs Hardware)
- Step 2: type-specific fields; gateways skip IP/relay fields
- Layout builder: Tuya chip support (makeTuyaChip, tuya_update socket)
- requirements.txt: tuya-device-sharing-sdk, cryptography
17 lines
317 B
Plaintext
17 lines
317 B
Plaintext
Flask==3.0.3
|
|
Flask-SQLAlchemy==3.1.1
|
|
Flask-Login==0.6.3
|
|
Flask-WTF==1.2.1
|
|
Flask-Migrate==4.0.7
|
|
Flask-SocketIO==5.3.6
|
|
Werkzeug==3.0.3
|
|
requests==2.32.3
|
|
simple-websocket==1.1.0
|
|
python-dotenv==1.0.1
|
|
WTForms==3.1.2
|
|
SQLAlchemy==2.0.31
|
|
greenlet>=3.1.1
|
|
pycryptodome==3.23.0
|
|
cryptography>=42.0.0
|
|
tuya-device-sharing-sdk>=0.2.9
|