Smart Home Controller is a desktop application that translates natural human language into structured system commands. Built to overcome the limitations of rigid, rule-based parsers, this project integrates Azure Conversational Language Understanding (CLU) to process unstructured input and accurately extract user intents and entities.
Instead of relying on hard-coded keywords, the application uses machine learning and probabilistic inference to understand semantic context, manage positional invariance (free word order), and handle lexical variations (e.g., "Turn on the lights" vs. "Kill the lights"). The result is a robust, asynchronous dashboard that acts as the "brain" of a simulated smart home environment.
- AI-Driven Inference (Azure CLU): Maps natural language queries to structural JSON objects, extracting the Top Intent (e.g.,
LightOn) and Entities (e.g.,Location: kitchen). - Semantic Post-Processing: Uses Regular Expressions (Regex) to automatically format raw CamelCase labels into human-readable text (e.g., converting
TurnOnSmartLighttoTURN ON SMART LIGHT). - Confidence Scoring Validation: Exposes the AI's confidence percentage for every inference, providing transparency into the model's decision-making process.
- Contextual Command History: Maintains an active, chronological log of user inputs and system outputs during the session.
| Component | Technology |
|---|---|
| Language | Python |
| Cloud & AI Engine | Azure Cognitive Services (Conversational Language Understanding) |
| GUI Framework | CustomTkinter |
SmartHomeController/
βββ pictures/
β βββ logo.ico # Application window icon
β βββ background.jpg # Dashboard decorative background
βββ src/
β βββ main.py # UI initialization and main application loop
β βββ clu_logic.py # Azure API communication and regex formatting logic
βββ .gitignore
βββ README.md











