Powered by Gemini
Integrating Google's multimodal AI into your automation.

Open media
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.
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.
Example Scenario:
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();
}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.
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:
@if directives instead of Angular/Vue style interpolation).Modules, Program, Api) and doesn't invent non-existent methods.| Feature | Local AI (Lailama) | Cloud AI (Gemini) |
|---|---|---|
| Privacy | 🔒 100% Private (Data stays home) | ☁️ Data sent to Google API |
| Hardware | Requires RAM (4GB+) & CPU/NPU | Runs on anything (Zero load) |
| Intelligence | Good for chat, specific tasks | Excellent for reasoning & coding |
| Cost | Free | Free tier (usually sufficient) or Pay-per-token |
| Connectivity | Works Offline | Requires Internet |