Cloud AI

While Local AI offers privacy and offline capabilities, Cloud AI provides unmatched reasoning power and general knowledge. HomeGenie Server 2.0 integrates seamlessly with Google Gemini, allowing you to offload complex tasks—like natural language interpretation or code generation—to one of the world's most advanced AI models.

Why Cloud?

Powered by Gemini

Integrating Google's multimodal AI into your automation.


Open media

1. Gemini Intent Handler

The Intent Handler is a program that transforms natural language into HomeGenie commands. Unlike old-school voice assistants that require rigid phrases ("Turn on light 1"), Gemini understands Intent and Context.

How it works

  1. You speak or type a command (via HomeGenie Panel or a chat widget).
  2. The program captures the State of your Home (list of devices, names, and current status).
  3. It sends this context + your command to the Gemini API.
  4. Gemini replies with a precise JSON command structure.
  5. HomeGenie executes the action.

Example Scenario:

Code Example (C#)

This snippet demonstrates how to construct a "Context-Aware" prompt for Gemini.

// 1. Gather Context: Get a list of all controllable devices
var devices = Modules.InDomain("HomeAutomation.HomeGenie").List;
string deviceContext = JsonConvert.SerializeObject(devices.Select(d => new { d.Name, d.Address, d.Type }));

// 2. Build the System Prompt
string systemPrompt = $@"
You are a smart home assistant. 
Here is the list of available devices (JSON): {deviceContext}.
Interpret the user request and output a JSON array of actions.
Format: [ { ""Address"": ""..."", ""Command"": ""Control.On"" } ]
Do not output markdown or explanations. Just JSON.";

// 3. Call Gemini API (Conceptual)
var response = await GeminiClient.GenerateContentAsync(systemPrompt, userRequest);

// 4. Execute Actions
dynamic actions = JsonConvert.DeserializeObject(response);
foreach(var action in actions) {
    Modules.WithAddress((string)action.Address).Command((string)action.Command).Submit();
}

2. Widget Genie (Coding Assistant)

Widget Genie is your personal pair programmer inside HomeGenie. It leverages the coding capabilities of Cloud AI to help you build custom Widgets, write Automation Scripts, or debug errors.

The "Platform Architect" Persona

Widget Genie isn't just a generic chatbot. It is initialized with a specialized System Prompt that acts as a "HomeGenie Platform Architect". This means it comes pre-loaded with deep knowledge of the system's internal mechanics:

Capabilities

Widget Genie

Asking the AI to generate a custom thermostat widget code.


Open media

Local vs. Cloud: What to choose?

FeatureLocal AI (Lailama)Cloud AI (Gemini)
Privacy🔒 100% Private (Data stays home)☁️ Data sent to Google API
HardwareRequires RAM (4GB+) & CPU/NPURuns on anything (Zero load)
IntelligenceGood for chat, specific tasksExcellent for reasoning & coding
CostFreeFree tier (usually sufficient) or Pay-per-token
ConnectivityWorks OfflineRequires Internet
Hybrid Approach: The best system often uses both. Use Local AI for always-on, private voice commands and object detection. Use Cloud AI for complex tasks like generating code or interpreting ambiguous requests when privacy is less critical.
📖

🕵🏻 Explore HomeGenie DeepWiki

Technical Docs & Interactive Wiki

Ask the AI 🧠
menu_open Content index
forum Q & A discussion forum
HomeGenie
SERVER 2.0 — Documentation