# Assist and AI Agents

Source: https://supernotify.rhizomatics.org.uk/latest/usage/assist/

Early Access

This is an initial implementation. The built-in agent sentences are in English and Italian. Feedback and help with other languages is very welcome on [GitHub issues](https://github.com/rhizomatics/supernotify/issues), especially on how well your conversation agent picks the right tool and fills it in.

Supernotify can give tools to [Assist](https://www.home-assistant.io/voice_control/), so a conversation agent can send notifications, snooze them, and explain what happened to them. It works by voice or from the chat icon in the app.

The same tools are offered to AI agents connected through Home Assistant's [Model Context Protocol Server](https://www.home-assistant.io/integrations/mcp_server/), as long as the server exposes the Assist API.

A more limited set of interactions, without the flexibility of AI understanding, is available for the basic non-AI Assist agent, using a set of fixed sentence structures, see [Built-in Agent Sentences](#built-in-agent-sentences) for more info.

Not Just Voice

Even if you only ever type to the agent in a chat window, the place in Home Assistant where you manage them is called **Voice Assistants**.

## Switching On

Nothing is offered until you switch it on. In **Settings** > **Devices & services** > **Supernotify** > **Configure**, choose **Assist and AI agents**. There are three switches:

| Switch                   | What it gives                                                                             |
| ------------------------ | ----------------------------------------------------------------------------------------- |
| Action tools             | Send notifications, and snooze or silence them                                            |
| Diagnostic tools         | Recent notifications, dry runs, current snoozes, and documentation lookup                 |
| Built-in agent sentences | A few English and Italian [sentences](#built-in-agent-sentences) for the agent without AI |

Needs an AI conversation agent

The tools are only used by a conversation agent that runs an AI model, such as OpenAI, Anthropic, Google Gemini or Ollama. Home Assistant's own built-in agent matches fixed sentences and can't use them. If Assist answers "Sorry, I couldn't understand that", or "I am not aware of any device called…", the built-in agent is answering.

1. Add an AI conversation integration, and in its options set **Control Home Assistant** to **Assist**.
1. In **Settings** > **Voice assistants**, choose that conversation agent for the assistant you talk or chat to.

The tools also need a recent Home Assistant. They don't appear on 2026.2 or earlier.

Without an AI model, switch on **Built-in agent sentences** instead, see below.

## What You Can Ask

| Tool                                | Ask things like                                       |
| ----------------------------------- | ----------------------------------------------------- |
| `supernotify__notify`               | "Tell everyone dinner is ready"                       |
| `supernotify__snooze`               | "Mute the doorbell camera alerts for an hour"         |
| `supernotify__recent_notifications` | "Why didn't I get the washing machine alert?"         |
| `supernotify__dry_run`              | "If the smoke alarm goes off, who gets told and how?" |
| `supernotify__snoozes`              | "What notifications have I snoozed?"                  |
| `supernotify__help`                 | "How do I e-mail a camera snapshot with Supernotify?" |

Ask in your own words - there's no need to name the tools.

The agent is told the names of your deliveries, scenarios and recipients, including any `alias`, so it can match "the family chat" to a delivery. Good aliases help it choose well.

### Sending

The agent can give a message, title and priority, pick recipients by name, and choose deliveries and scenarios. If it doesn't choose deliveries, Supernotify picks them as it would for an automation, from the priority, scenarios and who is home. Any priority can be used, including `critical`.

Some fields of `supernotify.notify` are not offered, so an agent can only reach people and devices you have already configured:

- `custom_target`, since it takes any e-mail address, phone number or chat id. Send to those through [Recipients](https://supernotify.rhizomatics.org.uk/latest/configuration/people/index.md) or notify entities instead.
- `actions`, custom mobile push actions.
- Media URLs and camera snapshots.

### Snoozing

The agent can `snooze` for a number of minutes, `silence` until undone, `unsnooze` one snooze, or `clear_all` snoozes. A snooze can cover everything, non-critical notifications only, or one delivery, transport, priority, camera or [tag](https://supernotify.rhizomatics.org.uk/latest/usage/snoozing/#snoozing-by-tag). Unless asked to snooze everything, the agent leaves `critical` notifications coming through, and turning notifications back on undoes either kind.

If the agent doesn't name who the snooze is for, it applies to the person asking, if Supernotify can match their Home Assistant user to a recipient. Otherwise it applies to everyone. See [Snoozing](https://supernotify.rhizomatics.org.uk/latest/usage/snoozing/index.md) for how snoozes work.

### Explaining

`supernotify__recent_notifications` lists recent notifications with, for each delivery, whether it sent, was skipped or failed, and why. It also shows what selected each delivery, and who was home at the time, since that decides some deliveries.

Turn on the file [archive](https://supernotify.rhizomatics.org.uk/latest/configuration/archiving/index.md) to get a history. Without it, only the most recent notification since Home Assistant started is known.

### Simulation (Dry Run)

`supernotify__dry_run` works out which deliveries a notification would use right now, and who it would reach, without sending anything. It goes through exactly the same checks as a real notification - snoozes, priorities, conditions, who is home, and the duplicate check - so running it twice with the same message reports a duplicate on the second, just as sending it twice would.

### Help from the Documentation

`supernotify__help` looks up this documentation site, including the recipes and configuration examples, and gives the agent the best matching pages to answer from, with links. It fetches the documentation from `supernotify.rhizomatics.org.uk` the first time it's used, then at most once a day. The documentation is for the latest release, and in English, though the agent can answer in your language.

### Tuning the Agent Character

Additional prompts to use before conversations can be set in the *Voice Assistants* configuration, see [Creating a Voice Assistant Personality](https://www.home-assistant.io/voice_control/assist_create_open_ai_personality/#creating-a-voice-assistant-personalitywith-an-llm-based-conversation-agent).

## Built-in Agent Sentences

Home Assistant's built-in [Conversation](https://www.home-assistant.io/integrations/conversation) agent doesn't use an AI model, so it can't use the tools above, but it can understand fixed sentences. Switch on **Built-in agent sentences** and it understands these, by voice or in the chat:

| Say                                                 | Does                                                                                                                          |
| --------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| "Tell *Alice* that *dinner is ready*"               | Notifies a recipient, by name or alias                                                                                        |
| "Send a message to *everyone* saying *leaving now*" | Notifies everyone, as an automation would                                                                                     |
| "Snooze my notifications for *30* minutes"          | Snoozes all but critical                                                                                                      |
| "Mute all notifications for an hour"                | Snoozes all but critical for an hour                                                                                          |
| "Snooze notifications until *15:30*"                | Snoozes all but critical until then, today or tomorrow                                                                        |
| "Snooze notifications for *driveway* until *6am*"   | Snoozes only notifications [tagged](https://supernotify.rhizomatics.org.uk/latest/usage/snoozing/#snoozing-by-tag) *driveway* |
| "Silence notifications"                             | Silences all but critical until turned back on                                                                                |
| "Silence notifications even critical ones"          | Silences everything, critical included, until turned back on                                                                  |
| "Turn my notifications back on"                     | Undoes the snooze or silence                                                                                                  |
| "Resume notifications for *driveway*"               | Undoes the snooze or silence for *driveway*                                                                                   |
| "What was the last notification"                    | Says what it was, and what it was sent via, or why it wasn't sent                                                             |
| "How do I get help on Supernotify"                  | Gives a link to the [help page](https://supernotify.rhizomatics.org.uk/latest/help/index.md)                                  |

"Tell", "notify" and "message" all work for notifying, as do "that" and "saying" before the message. A recipient can be named by their full name, alias, or just their first name when no one else shares it - if two do, the agent asks which one you mean. Snoozes and silences are for the person asking, when Supernotify can match their Home Assistant user to a recipient, otherwise for everyone. They hold back everything but `critical` notifications, so saying "silence notifications" at bedtime never silences a smoke alarm. When an alert that's meant to be critical keeps going off, say "silence notifications even critical ones" (or "including critical", "and critical ones too") to hold back critical ones as well; from an automation or button, use the `supernotify.silence` action with `scope: everything`. Turning notifications back on undoes both.

"For *driveway*" works with any of the snooze sentences, for minutes, an hour, until a time, or until I say. The reply lists the scenarios and entities *driveway* matches now. If it matches nothing, the agent says so and nothing is snoozed. See [Snoozing by Tag](https://supernotify.rhizomatics.org.uk/latest/usage/snoozing/#snoozing-by-tag) for what it matches.

"For *driveway camera*" snoozes that one camera instead, when *driveway* or *driveway camera* names a `camera` entity. If it names several, the agent asks which. In Italian, say *telecamera vialetto*.

### Times

A snooze lasts until the next time the clock shows the time asked for, today or tomorrow. Only these forms of time are understood:

| Form                     | Examples                          | Means                                               |
| ------------------------ | --------------------------------- | --------------------------------------------------- |
| am or pm                 | *3pm*, *3:30 pm*, *12 a.m.*       | Exactly that                                        |
| 24 hour                  | *15:30*, *15.30*, *1530*, *03:30* | Exactly that - a leading zero is always the morning |
| 12 hour without am or pm | *3*, *3:30*, *330*                | Morning or afternoon, whichever comes next          |
| Half past                | *half past three*, *half past 3*  | Morning or afternoon, whichever comes next          |
| Named                    | *noon*, *midnight*                | 12:00 or 00:00                                      |

The reply says am or pm, so if the guess at morning or afternoon was wrong, ask again with am or pm. Anything else, like *quarter to four*, *half three* (which means 2:30 in some places) or *teatime*, isn't understood, and the agent asks for a time like *15:30* or *3:30pm* instead.

### Italian

The same commands can be given in Italian, whatever the language of the assistant, and the answer comes back in Italian:

| Say                                                   | Does                                                                                                                          |
| ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| "Avvisa *Alice* che *la cena è pronta*"               | Notifies a recipient, by name or alias                                                                                        |
| "Manda un messaggio a *tutti* che dice *esco adesso*" | Notifies everyone, as an automation would                                                                                     |
| "Posticipa le mie notifiche per *30* minuti"          | Snoozes all but critical                                                                                                      |
| "Metti in pausa tutte le notifiche per un'ora"        | Snoozes all but critical for an hour                                                                                          |
| "Posticipa le notifiche fino alle *15:30*"            | Snoozes all but critical until then, today or tomorrow                                                                        |
| "Posticipa le notifiche del *vialetto* fino alle *6*" | Snoozes only notifications [tagged](https://supernotify.rhizomatics.org.uk/latest/usage/snoozing/#snoozing-by-tag) *vialetto* |
| "Silenzia le notifiche"                               | Silences all but critical until turned back on                                                                                |
| "Silenzia le notifiche anche quelle critiche"         | Silences everything, critical included, until turned back on                                                                  |
| "Riattiva le mie notifiche"                           | Undoes the snooze or silence                                                                                                  |
| "Riattiva le notifiche del *vialetto*"                | Undoes the snooze or silence for *vialetto*                                                                                   |
| "Qual è stata l'ultima notifica"                      | Says what it was, and what it was sent via, or why it wasn't sent                                                             |
| "Come trovo aiuto per Supernotify"                    | Gives a link to the [help page](https://supernotify.rhizomatics.org.uk/latest/help/index.md)                                  |

Times use the 24 hour clock, as *15*, *15:30* or *15.30*. "Avvisa", "avverti", "informa", "dì a" and "scrivi a" all work for notifying, and "posticipa", "sospendi", "silenzia" or "metti in pausa" for snoozing.

### Other Languages

The sentences are in English and Italian for now - if you'd like them in your language, please suggest wording on [GitHub issues](https://github.com/rhizomatics/supernotify/issues). The sentences live in `SENTENCES` in `sentences.py`, one entry per language, and what's said back in the translations, as `common.voice_*` in `translations/<language>.json`.

This functionality is also available to scripts and automations from the `conversation.process` action.

## FAQ

### Can I ask Alexa about notifications?

Not directly. Home Assistant's Alexa integrations let Alexa control devices, or let Home Assistant speak through an Echo, but neither passes what you say to Assist. There are two ways round it:

- **A custom Alexa skill that hands speech to Assist**, such as [HomeAssistantAssist](https://github.com/fabianosan/HomeAssistantAssist). Everything said after the skill's name goes to Home Assistant's conversation API, so all the sentences above work, and Alexa reads back the answer - "Alexa, ask smart home to snooze my notifications until 3". It needs an Alexa developer account, and Home Assistant reachable from outside, for example with Nabu Casa. The skill calls Home Assistant with one long-lived token, so "my notifications" means that token's user - snoozes are for everyone unless that user is also a recipient.
- **An Alexa Routine that runs a script**. Make a script for each fixed command, which passes one of the sentences above to the `conversation.process` action, and expose it to Alexa, where it shows up as a scene a Routine can run. There's no skill to build, but only fixed phrases work - no times, names or messages - and Alexa just says "OK" rather than Supernotify's answer. The snooze is for everyone, since the script isn't run as anyone who is a recipient.

Script for an Alexa Routine

```yaml
alias: Snooze notifications for an hour
sequence:
  - action: conversation.process
    data:
      agent_id: conversation.home_assistant
      text: Snooze notifications for an hour
```

## Further Reading

- [AI Agents for the Smart Home](https://www.home-assistant.io/blog/2024/06/07/ai-agents-for-the-smart-home/) - 2024 vision paper from Home Assistant team
- [Home Assistant MCP](https://www.home-assistant.io/integrations/mcp/) - Official integrations
