Automated Arming - How it Works¶
Arming has several complementary modes of operation, that can be selected and mixed as you need.
Mobile Actions, Buttons and Alarm Panel changes are classed as Manual Interventions, and won't be overridden back by Auto Arm unless there's an occupancy change or other manual intervention.
Context¶
Here is a quick reminder of how Home Assistant intends armed states to be used, taken from the Alarm Control Panel Documentation:
| State | Use |
|---|---|
armed_home | Perimeter protection while you are inside. Doors and windows are monitored, but interior motion sensors are ignored so you move freely around the house. |
armed_away | Full protection for when nobody is home. All sensors (perimeter and interior) are active. |
armed_night | Similar to home mode, but tuned for sleeping. Typically covers perimeter sensors and selected interior zones while leaving bedroom areas free. |
armed_vacation | Extended away protection for longer trips. Some systems enable additional monitoring or alerts in this mode. |
armed_custom_bypass | rmed with one or more zones deliberately skipped. Useful when you want to leave a specific door or window open while arming the rest of the system. |
disarmed | The alarm is off. Sensors are not being monitored. |
(There are also some other ephemeral or problem states needed for dealing with real alarm systems).
How Alarm Panel State Gets Changed¶
The full list of how alarm panel state can be set:
| Source | Description |
|---|---|
| calendar | Calendar events (with optional override for selected events by occupancy) |
| tod | A Times of the Day sensor or Schedule turning on or off, such as bedtime |
| mobile | Mobile action |
| occupancy | Occupancy calculation, e.g. automatically switching off ARMED_AWAY |
| alarm_panel | Changes made to Alarm Control Panel outside of Auto Arm |
| button | A physical button push |
| action | A Home Assistant Action call (previously known as 'Service') |
| sunrise | HomeAssistant sun integration event |
| sunset | HomeAssistant sun integration event |
| startup | Alarm changes made as part of Auto Arm startup |
| zombification | Home Assistant alarm panel got itself into a 'zombie' state and was reset |
All the state changes are tracked back to Auto Arm as the reason, and where possible back to the original cause.

Putting into Practice¶
So a typical day, when the house is occupied, using the recommended recipe could be:
- Wake up (
armed_night->disarmed) - Sunrise is ignored in this example, either its before you wake up and its still bedtime, or its after you wake up and the alarm already disarmed
- Sunset (
disarmed->armed_home) - Go to sleep (
armed_home->armed_night)
Of course, in some latitudes, the sun might set after bedtime, or not rise until after woken up. Auto arm will cope with any combination of how you want it to be, with the help of the sun entity in Home Assistant driving sunrise and sunset times, calendar entries and a Times of the Day sensor or Schedule. You can also integrate physical buttons, for example to arm before leaving the house.
Alarm Panel Control¶
Auto Arm listens for changes to the Alarm Control Panel from other sources, like the Home Assistant mobile companion app or other automations, with Auto Arm respecting the selected new state, and applying the same Manual Intervention controls for further state changes.
Other Controls¶
- Voice and Chat Assist
- Mobile Actions
- Calendars
- Physical Buttons
- Diurnal
- Actions (previously 'Services')
Recurring State¶
Armed or disarmed state can be configured with an entry for that purpose, for example a recurring entry on a Local Calendar dedicated to Auto Arm, or looking up an existing calendar to find vacations by pattern.
If there's no calendar event live, then arming state can be worked out automatically, fixed at a default state, or left to manual control.
Triggers¶
Triggers decide what can start a re-evaluation of the alarm state. They change when the state is worked out, not how, and only cover these triggers - a reset button, the autoarm.reset_state action or a calendar event ending still work out the state as usual.
| Trigger | Options section | Choices | Default |
|---|---|---|---|
| Sunrise | Advanced - Diurnal | On, Off, Auto | Auto |
| Sunset | Advanced - Diurnal | On, Off, Auto | Auto |
| Someone arrives home | Advanced - Occupancy | On, Off | On |
| Someone leaves home | Advanced - Occupancy | On, Off | On |
Auto switches the trigger off on any day with a disarmed, armed_home or armed_night Calendar Control event starting, ending or running that day, since those events replace day and night arming. Events for other states, such as armed_away or armed_vacation, leave the trigger on. This suits a calendar that handles particular days, such as a night out or working from home, while sunrise and sunset take over on ordinary days.
Every arrival or departure re-evaluates, not just the house becoming occupied or empty, since Transition Conditions can depend on who in particular is home. When that doesn't change the alarm state, nothing happens.
Occupancy Control¶
The people who live at the property can be defined as Person Integration entities Person Entities in the occupancy configuration, and used to derive an occupied value for [Automated Transitions]. This works best with the Companion App on a mobile phone, although other Device Tracker Integrations can work, such as a home network device_tracker.
Tip
Since the occupied check looks for entities that have a state home, it doesn't have to be person entities, and you can add a list of device tracker entities. The advantage of Person is that you can define multiple trackers for a single individual, and they are home if any of the trackers are home, even if some of them haven't kept up.
See the Presence Detection guidance from Home Assistant on how to set this up, and the options for using it.
If the house is occupied, and its daytime, some people like that to be disarmed and others prefer armed_home. You can control this via Calendar Control or use the state_default settings for day and/or night in the occupancy configuration.
One problem with device trackers is that they can be noisy, for example if someone tracked by phone walks out of wifi range, or reboots their device. This tends to be a problem when building occupied, since its much less likely for a device tracker to intermittently think the device is at home. A delay timer can be set, separately for home and not_home, to smooth this out, so alarm won't reset unless someone still out a few minutes later.
In this Advanced Settings configuration, there will be a three minute wait to make sure the device tracker stable for home->not_home, and zero delay when arriving home.

Occupancy checks can override recurring calendar driven alarm states if desired. In the configuration screen, select the alarm states for which the calendar state should be overridden. This means you can have a simple repeating disarmed / armed_night calendar setup but still have the alarm automatically go to armed_away if everyone leaves home.
Separately, the Coming home ends away and vacation events on their last day switch, in the same Advanced - Occupancy section, lets an arrival finish an armed_away or armed_vacation event early. It's on by default. When someone comes home on the day the event is due to end, the event ends there and then, and the alarm goes to whatever is set for when an event ends, so getting back from a trip a few hours ahead of the calendar doesn't mean walking into an armed house. It applies to one-off as well as recurring events. It takes someone actually arriving that day, a change from away to home, so a person who is always shown as home, for example without location sharing switched on, doesn't end the event. An arrival on any earlier day of the event leaves the alarm armed, and an all day event's last day is the last full day it covers.