Contact →

Open source · Tools · 2024

Purify Tuya

Cloud-free home automation control

Self-hosted dashboard to control all Tuya devices locally, without going through Tuya's servers. Multi-device, local API, zero data sent externally.

Context

Tuya is everywhere in home automation — but their devices communicate by default with Chinese servers. Purify Tuya intercepts commands locally, with no external connection.

My contribution

  • Local Tuya device control via LAN API
  • Zero communication with Tuya servers
  • Multi-device React dashboard
  • Lightweight FastAPI backend, deployable in Docker
  • Automatic device discovery on the network
  • Real-time control without cloud latency

// technical challenge

Reverse-engineering the local Tuya protocol (AES encryption, proprietary handshake) to control devices without their servers — while staying compatible with a wide range of devices.