The intelligence behind KSIRI
A deep dive into the architecture that makes KSIRI fast, private, and future-ready — built around an intelligent Gateway.
Your home shouldn't stop when the internet does
KSIRI inverts the typical smart-home model. Instead of routing everything through the cloud, the Gateway keeps intelligence, data, and control inside your walls.
Gateway as Source of Truth
All state, history, and logic live on the Gateway inside your home — never on someone else's server.
Local Automation
Triggers and actions execute locally in milliseconds, with no cloud round-trip.
Offline Operation
The internet is optional. Your lights, climate, and scenes keep working when it drops.
- Internet required
- Higher latency
- Data leaves home
- Vendor lock-in
- Works offline
- <50ms response
- Data stays home
- You stay in control
One device, a complete operating system
The KSIRI Gateway runs a purpose-built stack where every module is optimized for speed, privacy, and reliability — no cloud required.
SQLite
Local time-series & configuration store — the single source of truth.
Event Bus
High-speed internal messaging that wires every service together.
Automation Engine
Evaluates triggers, conditions & actions entirely on-device.
AI Engine
Architecture designed to support future edge intelligence.
Local MQTT
Real-time, low-latency device communication inside your network.
Cloud MQTT
Optional, encrypted sync for remote access and notifications.
Your voice stays local.
Control your KSIRI home using natural voice commands processed directly by the Gateway. Supported commands are understood and executed locally without depending on a third-party voice cloud.
Gateway Voice Capture
Voice input is captured directly by the Gateway or local client with zero cloud streaming.
Entity Resolution
Natural speech maps to exact device IDs, relays, and scenes using Gateway entity resolution.
Command & Scene Service
Commands route directly into KSIRI CommandService and SceneExecutionService — identical to app clicks.
Physical Dispatch
Instant physical relay toggle, curtain motor motion, or fan regulation without internet dependency.
CommandService, and SceneExecutionService as physical switches and mobile app interactions.Supported Local Commands
Physical testing has demonstrated resolved and dispatched local commands across relays, switches, curtain controllers, fan speed regulators, dimmers, and scene triggers.
Settings → Local Voice → All Commands in the KSIRI app to view full supported command syntax and examples.“Turn on Kitchen Relay 1”
Platform Architecture
The Gateway is the local source of truth. Explore the complete pipeline from mobile app and optional cloud services to device drivers and physical hardware.
Gateway REST & WebSocket API
High-speed API endpoints providing authenticated real-time telemetry and command routing to local clients.
One Gateway. Multiple Protocols. One Platform.
Stop buying separate hubs for multiple protocols. The KSIRI Gateway is designed to bridge the protocols that power modern connected spaces — through a single device with an extensible driver architecture.
MQTT
Lightweight pub/sub messaging for real-time local and cloud device control. Implemented in the Gateway core.
Matter
Matter protocol integration is under active development for universal local interoperability.
Zigbee
Low-power mesh networking driver for sensors, switches, and lighting nodes under active engineering.
BLE
Bluetooth Low Energy driver for nearby provisioning and low-latency local communication.
Z-Wave
Sub-GHz mesh protocol planned for high-reliability long-range sensor and switch connectivity.
DALI
Digital Addressable Lighting Interface planned for commercial dimming and lighting control.
KNX
Building automation standard planned for integration with professional wired installations.
Modbus
Industrial & HVAC protocol driver planned for energy meters and heavy building infrastructure.
Extensible driver SDK for future protocols and ecosystem integrations
Next-generation local automation engine.
The Gateway runs a local event subscription bus and automation scheduler, evaluating complex logic directly on-device with zero cloud latency.
Scenes
Pre-configured multi-device actions triggered on demand from the app, smart switches, or local voice.
Rules
Evaluates continuous system states, environmental conditions, and sensor thresholds to maintain target environments.
Routines
Fires instantly on state-transition events, button gestures, or scheduled time triggers via the Gateway scheduler.
Gateway Automation Engine Capabilities
Built upon event subscriptions and Gateway-side local scheduling, supported capabilities include:
Reacts immediately when device properties change state (e.g. Motion OFF → ON).
Evaluates lux, temperature, or humidity bounds without rapid flip-flopping.
Single tap, double tap, and long press actions registered from physical wall switches.
Precision cron and time-of-day timers managed by the Gateway local scheduler.
Guards execution based on time windows, presence, or current operational modes.
Dispatches commands directly to switches, dimmers, curtains, or nested scenes.
Prevents duplicate trigger spamming and manages multi-task execution safety.
Logs trigger events, evaluated conditions, and action outcomes locally in SQLite.
Managed Gateway OTA Infrastructure
Versioned firmware repository, validation/checksum controls, Gateway-controlled OTA deployment and device OTA status tracking.
Versioned Repository
Centralized firmware store
Validation & Checksums
Integrity verification before deployment
Gateway-Controlled OTA
Local deployment to target devices
Device Status Tracking
Real-time update progress & verification
Local pattern detection that recommends automations.
KSIRI can observe recurring automation-relevant behavior locally, identify useful patterns and prepare automation suggestions for the user to review and approve.
Human-in-the-Loop Automation
Unlike opaque cloud ML, KSIRI Suggestions run locally on the Gateway. All suggestions require explicit user approval before becoming active routines.
Goodnight Living Room Routine
“When Living Room Motion turns Off after 10:30 PM, turn Off main switches and close Bedroom Curtains.”
Contextual Pattern Detection
Monitors local device interactions to detect recurring manual routines without cloud tracking.
Candidate Consolidation & Routing
Groups related actions into clean routine candidates ready for evaluation.
Suggestion Lifecycle Management
Tracks suggestion states (New, Pending Review, Approved, Ignored, Expired) under owner control.
Learned-Context Mapping
Maps time-of-day, room state, and environmental cues to routine conditions.
Routine Builder Service
Automatically drafts trigger-condition-action Routines with customizable thresholds.
Suggestion Acceptance Workflow
Empowers the user to review, edit, and approve suggestions with one tap before activation.
Intelligence that will live inside your home.
The KSIRI AI Engine vision is designed for future edge machine learning directly on the Gateway. Local pattern recognition is available today as an Engineering Preview under Automation Suggestions.
Smart Recommendations
KSIRI will learn your routines and suggest scenes and automations — turning raw sensor data into effortless comfort.
Predictive Optimization
Anticipate energy usage, pre-condition rooms, and optimize schedules before you even ask.
Private by Design
Inference will run on the Gateway. Your behavioral data will never leave your home or train a third-party cloud.
Security engineered in every layer
From provisioning to the cloud, KSIRI protects your home with defense-in-depth security. Capabilities continue to be hardened as the platform moves toward production.
Authentication
JWT-based sessions verify every request to the Gateway.
Authorization
Fine-grained roles control what each user and app can do.
Trusted Devices
Only provisioned, verified devices can join the network.
TLS Everywhere
All cloud communication is encrypted in transit with TLS.
Encrypted Comms
End-to-end encryption protects commands and telemetry.
Network Isolation
Local traffic stays local; cloud access is opt-in and minimal.
Build the future of the connected home
From individual homes to larger residential and commercial projects, KSIRI is designed with scalability in mind. Talk to our team or become a dealer today.
Built for homeowners, builders, integrators & enterprises · Made in India 🇮🇳
