[BETA] HAI β a full rule engine you can talk to
HAI is a new rule engine for Hubitat, with AI built in.
Why HAI?
- A video tells a thousand words: [Quick Walkthrough]
- Write rules yourself in a plain-word editor, or describe what you want and let the AI assistant draft it, using your own Claude API key (optional)
- Simulate any rule step by step against your real devices before it runs.
- Every rule is checked as you build it, so mistakes are caught before it can run.
- Standard JSON format with MCP built in.
- It covers all current Rule Machine capabilities, introduces a few more, and each one has been run on a real hub.
- It works alongside Rule Machine and Automation Map: HAI and Rule Machine rules can call each other, and Automation Map shows both.
Migrating from Rule Machine?
HAI copies your rules and runs each one in shadow mode, changing nothing, until it proves it matches. Then promote it in one click. Switching back is one click too.
Install (preview, not on the HPM list yet)
HPM β Install β From a URL:
https://raw.githubusercontent.com/GordonThelander/HAI-Engine/preview/packageManifest.json
The install takes about 10 minutes.
HAI installs as four apps, Engine (427 KB), Checker (449 KB), Rule Container (314 KB) and Migration (259 KB), because together theyβre far too big for one Hubitat app, each rule needs to run as its own small app, and the Rule Machine migration is optional.
