Automations

Trigger IDs in Home Assistant: One Automation Instead of Five

Every smart home accumulates twin automations: one to turn the lights on, one to turn them off; one for arriving, one for leaving. Trigger IDs are how you merge the twins — and since October 2026, Home Assistant manages the bookkeeping for you.

Published Nov 25, 2026

The short answer

Trigger IDs let one automation do the work of two, three, or five: give each trigger an identity, then use a "Triggered by" condition to branch on which one fired. The feature has existed for years, but the October 2026 release (2026.10) rebuilt the experience — the condition now shows your triggers as a checklist, and Home Assistant creates and manages the IDs for you. The release notes call trigger IDs "one of the most powerful features you never thought you'd need." After your third pair of duplicate automations, that stops sounding like marketing.

The problem they solve

Consider the most common automation pair in any house: motion in the hallway turns the lights on; motion clearing turns them off. Written naively, that is two automations — same devices, same room, opposite logic — and every tweak (a new sensor, a brightness change, a time condition) has to be made twice. Multiply by every room and the automation list becomes a maintenance surface of near-duplicates. Trigger IDs collapse the pair: one automation, two triggers (motion detected, motion cleared), and a condition that asks which trigger fired before choosing the action. The 2026.10 notes put it plainly: give your triggers an ID, and one automation can do the job of two, three, or five.

How it works now (2026.10 and later)

In the automation editor, add a Triggered by condition. Instead of a blank field demanding a string you invented, the editor lists your triggers as a checklist, numbered by their position in the trigger list. Tick the triggers the condition should match. Behind the scenes Home Assistant assigns and manages the IDs — and cleans them up when a trigger is deleted. The ID field that used to hide in a tucked-away menu is gone from the visual editor entirely.

The classic shape, in words: triggers are "Hallway motion detected" and "Hallway motion cleared." The first action block sits under a Triggered by condition matching only the first trigger and turns the lights on; the second sits under a condition matching only the second and turns them off. One automation, one place to edit, one trace to read when something misbehaves.

YAML users: nothing changed

Hand-written trigger IDs work exactly as before. An id: on a trigger in YAML is still yours, still exposed to templates as trigger.id, and Home Assistant will not add IDs to YAML you wrote. Two details worth knowing: IDs do not have to be unique — sharing one ID across several triggers is legitimate when you want them treated as one branch — and if a trigger has no ID at all, its position in the list is used. The editor may suggest giving shared-ID triggers their own IDs; the notes describe that as a suggestion, not a repair.

Patterns worth stealing

The discipline trigger IDs reward: if two automations share most of their conditions and devices, they are probably one automation wearing a costume.

Official documentation and references

Frequently asked questions

Are trigger IDs new in Home Assistant 2026.10?

The feature is years old; the experience is new. Before 2026.10 you invented ID strings in a hidden menu and remembered them yourself. Now the Triggered by condition shows a checklist of your triggers and Home Assistant manages the IDs.

Do trigger IDs work in YAML?

Yes, unchanged. A hand-written id on a trigger works as it always has, templates can read it as trigger.id, and Home Assistant will not modify your YAML. IDs do not have to be unique — shared IDs are a legitimate way to group triggers into one branch.

What happens when a trigger has no ID?

Its position in the trigger list is used. That is also how the visual editor's checklist refers to triggers — by number — so conditions stay readable.

When should I NOT consolidate automations?

When the branches share almost nothing — different devices, different conditions, different schedules. Consolidation pays when the pair is truly two sides of one behavior (on/off, arrive/leave). Forcing unrelated logic into one automation makes traces harder to read, not easier.

Related guides