HomeGenie
SERVER 2.0 — Documentation

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

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

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 Options

Available in the Program Data tab:

More topics

Setup

Features

Automation

Programming

📖

🕵🏻 Explore HomeGenie DeepWiki

Technical Docs & Interactive Wiki

Ask the AI 🧠
menu_open Browse Content