# Trigger

> What starts an automation, like a state change, a time, or an event.

Source: https://contributors.home-assistant.io/glossary/trigger/

- In code: `triggers`, `async_attach_trigger`
- Also: triggers

Integrations can add their own triggers, like a button press on a remote. Those show up in the automation editor next to the built-in ones.

## Related terms

- [Automation](https://contributors.home-assistant.io/glossary/automation/): A rule that performs actions when a trigger happens and its conditions are met, like turning on the lights at sunset when someone is home.
- [Condition](https://contributors.home-assistant.io/glossary/condition/): A check an automation or script does before it continues, like whether someone is home.
- [Event](https://contributors.home-assistant.io/glossary/event/): A message on the event bus that something happened, like a state change or a button press. Any code can listen to events.
