What it can do
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.
Run the home
Turn things on and off, scenes, scripts and other actions. It needs Allow controlling the home.
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.
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.
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), turn on Remote access and copy the address ending in ui.nabu.casa.
3
Create the token
- Open your profile in Home Assistant, on the Security tab (open), or tap your name, bottom left.
- Scroll to Long-lived access tokens and tap Create token.
- Name it minai and tap OK.
- Copy the token: it’s shown only once.
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.
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.
The permissions
On Home Assistant’s card, in the agent’s Tools tab:
Allow controlling the home starts on and the other three start off. Only you change them. See Permissions.
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.Plugin catalog
Every plugin, one by one.
Keys and values
How the address and token are entered.