brAIn
brAIn runs Claude Code inside Home Assistant. It sees and can change your whole house, watches for what goes wrong, explains what happened, and remembers how your home works.
It is one sidebar entry with one Claude login. Your Claude Pro or Max subscription pays for it, or an API key.

The tabs are Morph UI (the dashboard), Insights, Ask and Memory. ⚙ holds Settings and a built-in Guide that works offline. On a phone the tabs sit under the header.
What you can do
Ask it anything, and have it fix things
Open Ask and type.
| You say | What happens |
|---|---|
| “Why did the hallway light come on at 3 am? Fix it.” | It reads the automation’s trace, explains the cause, edits the automation, validates and reloads. brain undo puts the old file back. |
| “Which of my devices have stopped reporting?” | A list, from live state and history. |
| “Rename the Sonoff switches to what they control, and put the basement lights in a Basement area.” | It does the whole sweep through Home Assistant’s registries. |
| “Add a soil moisture sensor to the greenhouse ESP and flash it.” | It edits the ESPHome YAML, validates it and installs over the air. |

Ask is a chat or a real terminal, with several conversations open at once. Ask → · Power Tools → · ESPHome → · Music Assistant →
See what needs you, in one list
brAIn checks the house on its own and looks into each problem before you see it. Insights → Needs you holds every decision as one kind of card.
- A dead battery. Press Add to To Do, Snooze or Ignore.
- A broken automation. Press Go ahead to see the exact change, then Apply. The card keeps Undo.
- From your phone. The notification has the same buttons and a Reply box. Type “I already replaced it” and it is marked fixed. The card is in Home Assistant’s Repairs too.

Needs you & To Do → · Notifications & Repairs → · House checks → · The Resident →
Hear about a leak, whatever else is going on
A tripped leak, smoke, CO or gas sensor reaches your phone at once, through quiet hours, and repeats until you answer. It needs no Claude run, sign-in or usage budget.

Notifications → · Emergency playbooks →
Get answers as cards
Ask a question and get an insight card: the answer first, the numbers, and a chart drawn for your data. Refresh it on a schedule, share it as a picture, or put it on a dashboard.

Insights → · Timeline: what caused each change → · Upkeep & the house book →
Know what is unusual for this house
Every night brAIn measures what normal is here, with no Claude run: what each sensor reads at this hour, which doors are usually open, how fast rooms lose heat.
- The garage freezer’s door is open at 23:30 and it never is. You get one row before bed.
- The heating starts too late for the room to be warm by seven. brAIn says so.
What brAIn measures → · Heating & climate →
Use a dashboard that says what matters
Switch on Morph and the first tab is a dashboard built from your areas. A sentence at the top says what is going on. Tap, slide or hold any card. To change it, hold anything and tell brAIn what should be different.

Morph’s cards, themes and room rail also work on Home Assistant’s own dashboards. Morph →
Automate in a sentence
| You say or press | What happens |
|---|---|
| “Whenever the front door opens after dark, turn the hall light on.” | brAIn drafts the automation and replays it over your last month. Accept it, or try it for a week. |
| “Turn the porch light off at midnight tonight.” | A one-off that runs once and switches itself off. |
| Nothing. You keep doing the same thing by hand. | brAIn offers the automation, with the evidence. |
| “Design scenes for the living room.” | Four moods (morning, day, evening, night), shown as swatches before you accept. |
| You open Emergency playbooks | The automation you want for smoke, a leak or a freeze, written from the devices you have. |
| You turn on overnight self-healing (off by default) | brAIn may restart a stopped app, ping a dead Z-Wave node or reload a failed integration. At most three a night. |
Nothing is written to your house until you accept it. Rules & one-offs → · Suggestions → · Scene designer → · Playbooks → · Self-healing → · Replay →
Talk to it
Pick brAIn as your Assist conversation agent. “Is anyone still in the garage?” “Turn the lounge down for a film.” “Remember that we call the office lamp the beacon.”
Each agent has its own name, model and reach. A new agent reaches only what you expose to Assist. Voice →
Call it from automations
brain.ask returns an answer as data your automation can branch on:
action: brain.askdata: question: Is anything in the house drawing more than usual right now? schema: type: object properties: unusual: {type: boolean} why: {type: string} required: [unusual, why]response_variable: answer# answer.data.unusual is a boolean you can put in a conditionbrain.ask is read-only unless you say otherwise. brain.run_task runs a job in the
background, events fire for every new case, and brAIn can
answer Home Assistant’s Suggest with AI buttons. Automations & insight jobs →
Teach it, and see what it learned
Memory → Knowledge lists every fact brAIn holds, each with a bin beside it. Type a fact to teach it. An Ignore with a reason becomes a correction, so the same non-problem is not raised again.

Memory & knowledge → · Learning →
Drive your other BRUH apps
Install another BRUH app and brAIn can use it, with nothing to set up: “print three freezer labels for bolognese”, “start the benchy on the X1”, “start the sous vide at 54”.
It works with BRUH Bambu Studio, BRUH Cooking, BRUH Browser, GardenRX, BRight, BRUH Print, BRUH Minecraft and BRUH Task Manager. brAIn and the BRUH apps →
It asks first, and it can be undone
- Changing something asks first, unless you choose otherwise. Reading never asks.
- Nothing on a schedule acts on your house.
- Protected entities are never acted on. Put locks, alarms and the garage door on the list.
- Every change can be put back: files with
brain undo, a fix with Undo on its card. - Cameras are off until you tick one.
Where your data goes
- Everything runs in your Home Assistant.
- Claude runs go to Anthropic under your own account. House checks, measurements, safety alerts and self-healing use no Claude run.
- Only the development loop sends anything elsewhere: redacted reports to a private GitHub repository you own. It is off by default. Development loop →
- Your Claude credential stays out of Home Assistant backups.
What you need
| Home Assistant | OS or Supervised, 2023.6 or later. The To-do list needs 2023.11 and AI Task needs 2025.7. |
| Host | 64-bit, amd64 or aarch64. A Raspberry Pi 4 or 5 is fine. |
| Memory | About 1 GB free beyond Home Assistant’s own. |
| Account | An Anthropic account. Claude Pro or Max is the most economical. An API key works too. |