{"slug": "i-built-a-smart-home-app-where-your-phone-is-the-hub-and-an-old-phone-can-be-one", "title": "I built a smart home app where your phone is the hub (and an old phone can be one too)", "summary": "A developer built DoSync, a free Android smart home app that controls devices over local Wi-Fi without an account, cloud, or dedicated hub, using a small offline parser for commands in six languages and optional on-device Gemini Nano, a user-supplied API key, or Ollama for AI. The app supports 80+ brands via local protocols (WiZ and LIFX over UDP, Hue and Shelly over HTTP, Tapo's KLAP handshake, Tuya's local protocol), and an old Android phone or Raspberry Pi can run the same Node-bundled engine as a hub, reachable remotely through an end-to-end encrypted relay that only sees bytes. Safety rules independent of the AI require confirmation for unlocking doors or opening gates, and sunrise/sunset routines derive location from the home's time zone using the NOAA sunrise equation.", "body_md": "Most smart home apps want an account, a cloud and a hub before you can turn off a light.\n\nI wanted the opposite: an Android app that talks to devices on your Wi-Fi directly, in plain\n\nwords, in your language, with no account.\n\nThat became DoSync. A few things I learned building it:\n\nUnderstanding commands without AI. \"Turn off the living room lights\", \"Licht aus\",\n\n\"luci spente\": a small parser on the phone handles most commands in 6 languages, offline.\n\nAI is optional (on-device Gemini Nano, your own key, or Ollama on your computer).\n\nTalking to 80+ brands locally. WiZ and LIFX over UDP, Hue and Shelly over HTTP, Tapo with its\n\nKLAP handshake, Tuya with its local protocol (3.3 to 3.5), TVs over their own protocols,\n\ninfrared through the phone's emitter. Most devices have a public or documented local API;\n\nthe hard part is the hundred small differences.\n\nThe phone as the hub, and an optional hub that runs the same engine. When you leave home,\n\nyour phone can't reach a light on your Wi-Fi. So an old Android phone or a Raspberry Pi can run\n\nthe exact same engine (same code, bundled for Node) and keep routines going. Away from home\n\nthe app reaches it through an end-to-end encrypted relay: the relay only sees bytes.\n\nSafety rules that don't depend on the AI. Unlocking a door or opening a gate always asks for\n\nconfirmation, whatever the AI or a routine says, and members need the owner's permission.\n\nRoutines at sunrise and sunset without asking for location: the home's time zone already\n\nnames a city, and the NOAA sunrise equation is good to a couple of minutes.\n\n[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)\n\n[What works with which brand](https://github.com/giulianireg-spec/dosync-adapters/blob/main/COBERTURA.md) (honestly, including what's only tested against simulators):\n\nI'd love feedback, especially from people with brands I haven't tested on real hardware.", "url": "https://wpnews.pro/news/i-built-a-smart-home-app-where-your-phone-is-the-hub-and-an-old-phone-can-be-one", "canonical_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_at": "2026-12-01 02:30:41+00:00", "updated_at": "2026-12-01 02:44:30.646977+00:00", "lang": "en", "topics": ["ai-products", "ai-tools", "artificial-intelligence"], "entities": ["DoSync", "Google Play", "Gemini Nano", "Ollama", "Raspberry Pi", "WiZ", "LIFX", "Hue"], "also_reported_by": [], "takeaway": "A small offline parser handles most smart-home commands in six languages, with AI kept optional and safety-critical actions like unlocking doors gated behind confirmation regardless of what the AI or a routine says.", "recommendation": {"advice": "Keep deterministic parsing and hard confirmation gates for safety-critical actions, and treat AI as an optional layer rather than the control path.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/i-built-a-smart-home-app-where-your-phone-is-the-hub-and-an-old-phone-can-be-one", "markdown": "https://wpnews.pro/news/i-built-a-smart-home-app-where-your-phone-is-the-hub-and-an-old-phone-can-be-one.md", "text": "https://wpnews.pro/news/i-built-a-smart-home-app-where-your-phone-is-the-hub-and-an-old-phone-can-be-one.txt", "jsonld": "https://wpnews.pro/news/i-built-a-smart-home-app-where-your-phone-is-the-hub-and-an-old-phone-can-be-one.jsonld"}}