# I built a smart home app where your phone is the hub (and an old phone can be one too)

> Source: <https://dev.to/giulianiregspec/i-built-a-smart-home-app-where-your-phone-is-the-hub-and-an-old-phone-can-be-one-too-5g2e>
> Published: 2026-12-01 02:30:41+00:00

**Recommendation:** Keep deterministic parsing and hard confirmation gates for safety-critical actions, and treat AI as an optional layer rather than the control path.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

Most smart home apps want an account, a cloud and a hub before you can turn off a light.

I wanted the opposite: an Android app that talks to devices on your Wi-Fi directly, in plain

words, in your language, with no account.

That became DoSync. A few things I learned building it:

Understanding commands without AI. "Turn off the living room lights", "Licht aus",

"luci spente": a small parser on the phone handles most commands in 6 languages, offline.

AI is optional (on-device Gemini Nano, your own key, or Ollama on your computer).

Talking to 80+ brands locally. WiZ and LIFX over UDP, Hue and Shelly over HTTP, Tapo with its

KLAP handshake, Tuya with its local protocol (3.3 to 3.5), TVs over their own protocols,

infrared through the phone's emitter. Most devices have a public or documented local API;

the hard part is the hundred small differences.

The phone as the hub, and an optional hub that runs the same engine. When you leave home,

your phone can't reach a light on your Wi-Fi. So an old Android phone or a Raspberry Pi can run

the exact same engine (same code, bundled for Node) and keep routines going. Away from home

the app reaches it through an end-to-end encrypted relay: the relay only sees bytes.

Safety rules that don't depend on the AI. Unlocking a door or opening a gate always asks for

confirmation, whatever the AI or a routine says, and members need the owner's permission.

Routines at sunrise and sunset without asking for location: the home's time zone already

names a city, and the NOAA sunrise equation is good to a couple of minutes.

[It's free on Google Play](https://play.google.com/store/apps/details?id=dev.dosync.app&referrer=utm_source%3Ddevto%26utm_medium%3Darticulo%26utm_campaign%3Dv050)

[What works with which brand](https://github.com/giulianireg-spec/dosync-adapters/blob/main/COBERTURA.md) (honestly, including what's only tested against simulators):

I'd love feedback, especially from people with brands I haven't tested on real hardware.
