No apps. No buttons. Just talk or type.
A simple, natural language interface for controlling your smart home. Designed for everyone—especially those who aren't comfortable with complicated phone apps or remotes.
Instead of learning a phone app or remembering where all the smart devices are hidden, you simply type what you want in plain English. The system understands you, finds the right device, and does it.
✅ "Turn on the lights in the bedroom"
✅ "I'm going to sleep — set AC to 20 degrees and lock the front door"
✅ "Switch off the TV and fan in the living room"
✅ "Turn on the kitchen light"
✅ "Lock the back door"
YOU TYPE
↓
🤖 AI understands what you want
↓
🔍 AI finds the right smart device
↓
⚡ Device turns on/off
↓
✅ Confirmation message
No complicated steps. No confusing settings. Just type naturally like you're texting a friend.
- Bedroom light (on/off)
- Hall light (on/off)
- Kitchen light (on/off)
- Hall TV (on/off)
- Bedroom TV (on/off)
- Bedroom fan (on/off)
- Hall fan (on/off)
- Bedroom AC (set temperature)
- Whole house thermostat (set temperature)
- Front door (lock/unlock)
- Back door (lock/unlock)
Make sure you have Python installed on your computer. Ask your grandchild to help if you're unsure.
Open the command prompt (or terminal) and run:
pip install chromadb langchain-ollama langgraphGo to the Smart Home folder and run:
python smart_home.pyOnce it starts, you'll see a welcome screen. Simply type what you want to do:
💬 You: Turn on the bedroom light
Then just press Enter and the system will execute your command!
The system runs in interactive chat mode. It's like texting a friend:
╔═══════════════════════════════════════════════════════╗
║ ║
║ 🏠 Smart Home Voice & Text Assistant 🏠 ║
║ ║
║ Type what you want to do in plain English ║
║ Example: 'Turn on bedroom light' ║
║ Type 'exit' or 'quit' to stop ║
║ ║
╚═══════════════════════════════════════════════════════╝
💬 You: Turn on the bedroom light
[Processing...]
[Response] ✅ Your bedroom light is now on!
💬 You: Set the thermostat to 22 degrees
[Processing...]
[Response] ✅ Thermostat set to 22°C!
💬 You: exit
👋 Thank you for using Smart Home Assistant!
| What You Want | What You Type |
|---|---|
| Turn on bedroom light | "Turn on the lights in the bedroom" |
| Go to sleep mode | "I'm going to sleep — set AC to 20 degrees and lock the front door" |
| Turn off TV | "Switch off the TV" |
| Lock door before leaving | "Lock the front door" |
| Change temperature | "Set the thermostat to 22 degrees" |
Just type any of these:
exitquitbyegoodbye
Or press Ctrl + C on your keyboard to stop immediately.
When you type a command, you'll see something like this:
💬 You: Turn on the lights in the bedroom
───────────────────────────────────────────────────────
[Command #1] Processing: Turn on the lights in the bedroom
───────────────────────────────────────────────────────
═════════════════════════════════════════════════════════
[Orch] Query: Turn on the lights in the bedroom
[Orch] Refined: Turn on bedroom light
[EmbedAI] Searching → 'Turn on bedroom light'
[EmbedAI] Found nodes: ['light_on_bedroom']
[Orch→Embed] APPROVE: Found 1 candidate device(s)
[ToolAI] Planning for nodes: light_on_bedroom
[ToolAI] Plan: [{"function": "light_on_bedroom"}]
[Orch→Tool] APPROVE: Plan has 1 valid action(s)
[Executor] Running plan...
[IoT] 💡 Light ON → Bedroom
[Orch→Results] APPROVE: Actions executed successfully
[Response] ✅ Your bedroom light is now on!
Don't worry about all the text in brackets. Just look for the ✅ checkmark at the end—that means it worked!
| Line | Meaning |
|---|---|
[Orch] |
AI is thinking about what you want |
[EmbedAI] |
AI is searching for the right device |
Found nodes: |
AI found matching device(s) |
APPROVE |
Everything looks good, moving forward |
[Executor] |
Device is now being controlled |
[Response] ✅ |
Task complete! |
Solution: Try using simpler, more direct language. Instead of "Can you please make it a bit cooler in my room?", try "Set bedroom AC to 20 degrees"
Solution: Make sure you're asking for a device that actually exists. Check the list above. For example, there's no "backyard light" or "garage door" yet—only bedroom, hall, and kitchen lights.
Solution: This is normal for complex commands. Give it 10-15 seconds to think. If it still doesn't work:
- Stop the program (press
Ctrl + C) - Try a simpler command next time
- Check that all your devices are powered on
The system has several helpful features built-in:
Each command is numbered, so you know how many commands you've executed:
💬 You: Turn on bedroom light
───────────────────────────────────────────────────────
[Command #1] Processing: Turn on the lights in the bedroom
───────────────────────────────────────────────────────
You can stop the program by typing:
exitquitbyegoodbye- Or press Ctrl + C anytime
If something goes wrong:
- The system won't crash
- You'll get a helpful message
- You can try again with a different command
Keep the program running and issue multiple commands one after another:
💬 You: Turn on bedroom light
[Response] ✅ Your bedroom light is now on!
💬 You: Lock the front door
[Response] ✅ Front door is now locked!
💬 You: Set thermostat to 22
[Response] ✅ Thermostat set to 22°C!
Yes! You can add more rooms or devices by editing the Python file (ask a tech-savvy friend or family member to help).
Current devices are easy to expand:
- Add lights in different rooms
- Add TVs in other rooms
- Add fans in more areas
- Add new doors
This system uses an Agentic Supervisor Architecture:
- Orchestrator - Understands your request
- Embedding AI - Finds matching devices using semantic search
- Tool Caller - Creates an action plan
- Executor - Runs the actual device commands
- Responder - Gives you a friendly confirmation
It has built-in safeguards to prevent mistakes and retry if something goes wrong.
-
Be clear and direct:
- ✅ "Turn on bedroom light"
- ❌ "Can you make things brighter in my bedroom?"
-
Mention the room:
- ✅ "Hall TV on"
- ❌ "TV on" (ambiguous)
-
Include specific values for temperature:
- ✅ "Set thermostat to 22 degrees"
- ❌ "Make it cooler" (too vague)
-
One action at a time (usually):
- ✅ "Turn on bedroom light" then "Lock front door"
- ✅ "Set AC to 20 and lock front door" (complex but works)
If something isn't working:
- Check that all devices are powered on
- Make sure you have a stable internet/network connection
- Try rephrasing your request in simpler words
- Ask a tech-savvy friend or family member
This system is designed to make your smart home easier, not more complicated. Just type naturally, and let the AI do the rest.
Happy smart home living! 🏠✨