> For the complete documentation index, see [llms.txt](https://docs.chirpwireless.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chirpwireless.io/rules-engine/triggers/multiple-devices.md). Agents can also search and read this documentation through its [MCP server](https://docs.chirpwireless.io/~gitbook/mcp).

# Use a Trigger with Multiple Devices

Watch several home devices with one Chirp trigger, keep their waits separate, and use a shared reading when the condition needs it.

A trigger checks readings for a condition you choose. If you want the same alert for several windows, you can select them in one trigger and connect it to one automation. You do not need a separate copy for every window.

Each window is still checked on its own. The kitchen window can reach its ten-minute wait before the bedroom window, and the automation receives the identity of the window that needs attention. Start with [Triggers](https://docs.chirpwireless.io/rules-engine/triggers.md) if you have not created one yet.

## Does each device get its own wait?

Every watched device has its own condition state and start or recovery wait. Closing one window does not cancel another window's wait. The automation can respond to different windows at different times.

AND/OR joins readings within each evaluation, not all the selected windows into one condition. The selection is saved inside this trigger; it does not create a household group that other triggers automatically reuse.

## How do I choose the devices?

1. Add the reading keys used by the trigger and any separate recovery condition.
2. Open **Devices** and use **Search devices** to find your devices. A listed compatible device supplies at least one of those keys.
3. Select the windows to watch. **Select all shown** selects eligible results already loaded; use **Load more devices** for further results. The button becomes **Select all** when all results for that search are loaded.
4. You can search for another device without losing earlier selections. **Clear selection** removes the whole selection.
5. Look at **How this trigger will run**, resolve any problems, and then save the trigger.

The picker also talks back to you. Before any reading key is chosen it says "Pick a normalized key first — devices depend on it." Above the list it counts "1 compatible device" or "N compatible devices" (hover the count: a compatible device provides at least one of the telemetry fields the trigger needs) and notes that each device is evaluated separately, so the condition does not combine them. An empty search reads "No device matches" followed by your search text, and "Missing a device? Nothing on it answers these keys — add the sensor on its Mapping tab." points you to the fix. Under each reading key a card shows "Available on N devices", and the coverage note names keys that no device carries: "No device carries a sensor with this key. Add it on the device Mapping tab." Devices with a mapping problem are listed with the cause, such as "No sensor for ... on this device", "Nothing is mapped into the ... sensor", or "Two sensors answer ... — leave one on its Mapping tab". A trigger whose saved condition this form can't display opens with saving disabled so the original stays intact.

At least one device must be watched. You can select up to **500 devices**, including those that supply a shared reading. The starting and recovery conditions together can use up to **10 distinct reading keys**.

If a device is missing or unavailable, check its **Mapping** tab. It needs an incoming sensor value mapped to a required key. If two mapped sensors answer the same key, use the form's Mapping link to resolve that ambiguity. The trigger form does not let you choose between duplicate sensors. Check other uses of the mapping before changing it.

## How do I use two readings from every device?

Suppose each room sensor provides temperature and humidity. You could require temperature above an illustrative **26°C AND humidity above 70%**, with your chosen duration. Chirp checks the pair of readings within each selected room device.

Every watched device must supply both readings in that arrangement. The form will report a missing input rather than guess which other device should supply it.

## How do I add a reading shared by all watched devices?

A **shared reading** comes from one selected device and supplies information for every watched device. For example, each window could provide its open state, while one home controller supplies whether the heating is on.

To set up that example:

1. Add the window-state and heating-state keys with the comparisons you need.
2. Select the window devices and the controller that supplies the heating reading.
3. Check that **Devices answering this key are the watched ones** appears for the window-state key.
4. Check the preview: the windows should appear under **Evaluated device**, and **Uses** should name the shared heating reading and its controller.

The controller supplies context; it does not get its own window-evaluation row. Its heating reading can affect all the windows, but each window still keeps its own state and wait.

For each additional key, Chirp accepts either a reading from every watched device or a reading from exactly one selected provider. That provider can also be one of the watched devices. Different shared keys can use different providers. If several possible providers make the setup ambiguous, change the selection or mappings as described by the preview.

## How do I read the preview?

**How this trigger will run** describes the result of your selection:

| Column               | What to look for                                                               |
| -------------------- | ------------------------------------------------------------------------------ |
| **Check**            | A number for each independent evaluation.                                      |
| **Evaluated device** | The window or other device whose condition will be watched.                    |
| **Uses**             | Its own input readings and any shared reading, with the shared provider named. |

Every window you intend to watch should have a row. A device chosen only to supply a shared reading need not have one. Fix unanswered or ambiguous readings before saving.

## How do I say which device needs attention?

In your automation's **Set Alarm** node, use this expression in **Motivation Message**:

```cel
"Window left open: " + vars.device_name
```

Chirp does not automatically add the name. The trigger also supplies the watched device and sensor IDs, but it does **not** supply `vars.value`: the automation receives a trigger signal rather than one sensor reading. See [CEL for Home Automations](https://docs.chirpwireless.io/rules-engine/reference/cel-for-home-automations.md) if you need more detail or another reading through enrichment.

## How do I add or remove devices later?

Open the trigger's **Edit** form, update **Devices**, and review the preview before selecting **Save changes**. Read any warning about restarting countdowns. The change applies to all automations using that trigger.

Removing a watched device stops this trigger from watching it and requests clearing of its associated active trigger alert through connected, running automations. If an automation was stopped first, check **Alarm → Inbox** for an alert needing manual resolution.

If a warning appears beside the trigger after you change a device's mapping, review that mapping and the trigger's selected inputs. Save only once the preview describes the intended setup.

## See also

* [Triggers](https://docs.chirpwireless.io/rules-engine/triggers.md) — create a trigger and connect an automation
* [Trigger Timing](https://docs.chirpwireless.io/rules-engine/triggers/trigger-timing.md) — immediate responses, waits, and recovery
* [Data Templates](https://docs.chirpwireless.io/devices/data-templates.md) — understand reading keys and mappings
