# Siri and Shortcuts

> The Siri phrases Fregata Mobile understands, every Shortcuts action it offers, automations that run when an alert arrives or when you leave home, and searching alerts in Spotlight.

**Settings › Shortcuts & Automation** in the app is a short tour of everything on this page, with
a button that opens the Shortcuts app.

## Siri

Two things work reliably by voice. End each with the app's name:

- **"Show me the Driveway in Fregata Mobile"** opens that camera's live view.
- **"What's the latest alert from the Front Porch in Fregata Mobile"** answers with the camera's
  newest alert, its picture and when it was. **Open** on the answer opens it in the app.

Use your own camera's name. Siri can mishear the app's name when spoken, so if it doesn't
understand, type to Siri instead. Everything else is a Shortcuts action: build a shortcut with it
and give the shortcut a name you can say.

## Shortcuts actions

Search for **Fregata** in the Shortcuts app's action list.

| Action | What it does |
|---|---|
| **Get Latest Alert** | The most recent alert or detection from a camera. |
| **Get Cameras With Activity** | Every camera that has had an alert or detection since a time you give. |
| **Get Camera Snapshot** | The current picture from a camera, to save or send. |
| **Get Review Clip** | The video of a review. |
| **Get Server Status** | Whether your server can be reached, its version and how long it's been running. |
| **Open Camera Live View** | Opens the app straight to a camera, live. |
| **Open Alert** | Opens an alert or detection in the app. |
| **Mark Review As Seen** | Clears a review's unread dot. |
| **Set Notification Filter** | Makes a [notification filter](https://mobile.fregata.app/docs/alerts/filters/) the one in force, or none. |
| **Snooze Camera Alerts** | [Snoozes](https://mobile.fregata.app/docs/alerts/snooze/) one camera on this iPhone, for a time you choose. |
| **Snooze Cameras** | Snoozes the cameras you choose, on any of your servers. |
| **Snooze All Alerts** | Snoozes every alert on this iPhone. |

The snooze and filter actions change this iPhone only, never the server, and work in the
background without opening the app.

## Automations

### Switch filters when you come and go

In the Shortcuts app, open **Automation**, tap **+**, and choose a trigger, then add **Set
Notification Filter**:

- **Leave** your home, then **Set Notification Filter** to **Away**.
- **Arrive** home, then **Set Notification Filter** to **Home**.
- A **Focus** turning on or off. See [Focus and Time Sensitive alerts](https://mobile.fregata.app/docs/alerts/focus/#switch-filters-with-a-focus).
- A **time of day**, for a filter you want at the same hours every day. Quiet hours inside a
  filter may be simpler: see [Quiet hours](https://mobile.fregata.app/docs/alerts/filters/#quiet-hours).

### When an alert arrives

On iOS 27, a shortcut can run when an alert arrives:

1. In the Shortcuts app, open **Automation** and tap **+**.
2. Choose **Notification**, then choose **Fregata Mobile**.
3. To run it only for some alerts, add a camera, object or zone name, such as _Front Porch_ or _Person_: it's matched against the alert's words.
4. Add what should happen, such as turning on the porch lights, and save.

The match is against what the alert says, so it depends on your [wording](https://mobile.fregata.app/docs/alerts/wording/):
the default wording names the camera, what was seen and the zone.

## Control Center and the Action button

The **Notification Filter** and **Snooze Alerts** controls do the same as the actions, with no
shortcut to build. See [Widgets and Control Center](https://mobile.fregata.app/docs/beyond-the-app/widgets/#controls).

## Spotlight

Alerts and events are added to Spotlight as the app loads them, so you can search your iPhone
for _delivery_ or a camera's name and open the alert straight from the results. Only what the app
has already loaded is there.
