Programs

The Programs section is the nerve center of your HomeGenie system. Here, you manage the automation logic that defines your home's intelligence.

HomeGenie offers three ways to create programs:

  1. AI-Assisted: Describe your logic to the AI Genie and let it write and deploy the code for you.
  2. Visual Programming: Use the Blockly-based editor to build logic flows without writing code.
  3. Direct Coding: Write C#, JavaScript, or Python directly in the professional built-in editor.

Regardless of the method, all programs use the common HomeGenie API to interact with devices and system data.

Developing with the AI Automation Wizard

With the integrated AI Widget Genie, HomeGenie is now an AI-powered IDE. You can create complex automation programs simply by talking to the system.

The Automation Wizard & Auto-Fix

When you ask the Genie for an automation (e.g., "Turn on the porch light for 5 mins when the door opens"), a dedicated Actions card appears:

The Magic Loop (IDE Integration)

If you have the Program Editor open, the Genie acts as a live pair-programmer.

Managing Programs

From the Programs page, you can:

Programs List Actions

Tapping the more_vert icon offers the following:

The Program Editor

The editor is a full-featured development environment powered by Monaco (the engine behind VS Code).

Code Structure

HomeGenie programs are organized into logical blocks to separate configuration from execution:

bolt Setup

The Setup code runs once when the program is enabled or the system starts. It is used to "link" the program to the rest of the system.

code Main

The Main block contains the core logic. This is where you define how the program reacts to events or how it loops in the background.

code Context (C# Only)

This tab is reserved for helper classes, static methods, or external library references that need to be accessible globally within the program.

Program Flags

Available in the Program Data tab:

Pro Tip: Hybrid Development

The most efficient way to build is to use the AI Genie to generate the initial architecture and then use the Program Editor to fine-tune the parameters. This combination of AI speed and manual precision gives you total control over your smart system.

More topics

Setup

Features

Automation

Programming

📖

🕵🏻 Explore HomeGenie DeepWiki

Technical Docs & Interactive Wiki

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