> ## Documentation Index
> Fetch the complete documentation index at: https://docs.min-ai.ar/llms.txt
> Use this file to discover all available pages before exploring further.

# Home Assistant

> Your agent sees and runs your home through your Home Assistant: lights, climate, cameras, scenes and notices of what happens, with your OK.

![](https://mintcdn.com/min-ai/TugatpE_7aiXCXG-/images/plugins/homeassistant.svg?fit=max\&auto=format\&n=TugatpE_7aiXCXG-\&q=85\&s=6930145102d56a7e57b3bb51e729cde4)

With Home Assistant, your agent runs your home through your own Home Assistant: it finds and sees your devices, turns things on and off, runs scenes and scripts, tells you what happened, looks at the cameras and the weather, and lets you know as it happens about what you care about. Locks, alarms and garage doors stay off until you allow them, and it always asks for your OK.

| | |
| - | - |
| **Category** | Home |
| **For** | Personal and group agents (your family's, for example) |
| **What it asks for** | Your Home Assistant's address that works from outside your home, and an access token |
| **How it connects** | With one-time links your agent sends you; about 5 minutes |

## What it can do

> [card] Look
>
> Find your devices and see their state, the history and what happened, the cameras and the weather. It also reviews the automations you already have.

> [card] Run the home
>
> Turn things on and off, scenes, scripts and other actions. It needs **Allow controlling the home**.

> [card] Locks, alarms and doors
>
> Unlock locks, disarm the alarm and open gates, garage doors and doors, each time with your OK. It needs **Allow locks, alarms and doors**.

> [card] Notices
>
> Let you know when something happens (the garage was left open, someone rang the bell, a heater has been on for hours), with automations it makes with your OK. It needs **Allow creating automations**.

## How it connects

You need two things: your Home Assistant's **address** that works from outside your home, and a **token**, a separate key just for your agent that you delete whenever you want.

**1. Add it to an agent**

From **Plugins → Home Assistant → Add to an agent**, or ask your agent in the chat. See [Add a plugin](https://docs.min-ai.ar/en/tools/add-a-plugin.md).

**2. Get an address that works from outside**

Your agent isn't in your home: it reaches your Home Assistant over the internet.

* **If you already open it from outside** (with your domain, a Cloudflare tunnel, DuckDNS or a proxy), that's the address.
* **If not**, the simplest is **Home Assistant Cloud** (Nabu Casa, paid, with a free trial): in Home Assistant open **Settings → Home Assistant Cloud** ([open](https://my.home-assistant.io/redirect/cloud/)), turn on **Remote access** and copy the address ending in **ui.nabu.casa**.

> [!WARNING]
>
> homeassistant.local, or an address starting with 192.168 or 10., won't work: those only work inside your home. To try it, open it on your phone with WiFi off.

**3. Create the token**

1. Open your profile in Home Assistant, on the **Security** tab ([open](https://my.home-assistant.io/redirect/profile_security/)), or tap your name, bottom left.
2. Scroll to **Long-lived access tokens** and tap **Create token**.
3. Name it **minai** and tap **OK**.
4. Copy the token: **it's shown only once**.

With an **administrator** user, your agent can also create automations and notices for you.

**4. Paste them in your agent's links**

Your agent sends you two one-time links: one for the address and one for the token. Open each and paste what goes there. Don't paste them in the chat. See [Keys and values](https://docs.min-ai.ar/en/tools/keys-and-values.md).

**5. Your agent confirms**

It tests the connection, reviews your devices and the automations you already have, and helps you choose what to solve first.

## Notices from your home (optional)

For your agent to know when something happens, Home Assistant tells it through a webhook. For it to set up the notices as automations in your Home Assistant, turn on **Allow creating automations**.

**1. Ask for the configuration block**

Your agent gives you a configuration block with its address.

**2. Add it to your configuration**

Add `notify_minai` inside your existing `rest_command` block, or its included file. If you don't have one, add the block to your **configuration.yaml** (with the File editor or Studio Code Server add-on).

**3. Tell your agent**

It checks the configuration and, with your OK, reloads the commands when it can; otherwise it restarts Home Assistant.

**4. Test it and set up your notices**

It sends a test notice and checks that it arrived. Then you set up the notices you want with it, telling it in the chat.

> [!WARNING]
>
> The block's address is like a password: whoever has it can send your agent notices. Don't share it or show it in screenshots.

## The permissions

On Home Assistant's card, in the agent's **Tools** tab:

| Switch | What it unlocks |
| - | - |
| **Allow controlling the home** | "Turn things on and off, scenes, scripts and other actions. Off, it only looks: states, history, cameras and what happened." |
| **Allow locks, alarms and doors** | "Unlock locks, disarm the alarm and open gates, garage doors and doors, each time with your OK. Off, never." |
| **Allow creating automations** | "Create, change and delete its own automations in your Home Assistant (notices, for instance), each with your OK. It never touches yours." |
| **Only what's exposed to Assist** | "It sees and runs only the devices you exposed to Home Assistant's voice assistant (Settings → Voice assistants → Expose)." |

**Allow controlling the home** starts on and the other three start off. Only you change them. See [Permissions](https://docs.min-ai.ar/en/tools/permissions.md).

## How it keeps you safe

* Locks, alarms and doors only if you allow them, and each time with your OK.
* It creates its automations with your OK, and never touches yours.
* With **Only what's exposed to Assist**, it sees only what you chose to expose.
* The token and the address are kept encrypted: your agent never sees them in the chat.

## Things to ask it

* "Did I leave any lights on?"
* "Turn off the whole living room."
* "What's the temperature in the bedroom?"
* "Show me the front door camera."
* "Who rang the doorbell today?"
* "Let me know if the garage stays open more than 10 minutes."

## Limits

* Your Home Assistant has to open from outside your home.
* To create automations and notices, the token has to belong to an administrator user.

## If you remove it

Your agent loses access, and the address and token are deleted with the plugin. To cut off access completely, also delete the token in your Home Assistant profile. See [Remove a plugin](https://docs.min-ai.ar/en/tools/remove-a-plugin.md).

> [card] [Plugin catalog](https://docs.min-ai.ar/en/plugins/index.md)
>
> Every plugin, one by one.

> [card] [Keys and values](https://docs.min-ai.ar/en/tools/keys-and-values.md)
>
> How the address and token are entered.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.