Tuya setup
Tuya-based plugs and switches are popular budget smart-home devices. M2C2 typically integrates via Tuya Cloud APIs or a local gateway depending on your build.
Cloud setup (typical)
- Create / use your Tuya Developer account and cloud project (vendor docs change — follow the version pinned in your M2C2 release notes).
- Link your Smart Life app account to the cloud project.
- In M2C2 open Settings → Smart Home → Tuya.
- Enter Access ID, Access Secret, Region endpoint, and device IDs as required.
- Run Test connection — devices should list.
⚠️ Warning: Cloud credentials are powerful. Store them only on the Pi’s protected config, not in public git repos. Rotate keys if leaked.
Local control (advanced)
Some communities use tinytuya / local keys for LAN control. This can reduce latency but breaks when vendors rotate keys — maintain backups.
ℹ️ Note: Tuya’s policies and app flows change frequently. Treat this page as conceptual; follow the exact wizard shipped with your M2C2 version.
Troubleshooting
Devices missing
Resync cloud inventory; confirm devices are online in Smart Life app.
Switches flip back
Two controllers fighting (cloud automation + local script) — disable duplicate automations.
Was this helpful?