From my experience of alarms, when setting an alarm to Armed Away, when you exit the building the system goes straight from arming to ‘armed away’. How can I get HA to do this?
That is, I put my code in, I press ‘ARM AWAY’. Then, as soon as I shut the front door, the system goes to armed_away?
I’m probably missing something obvious. Or, maybe this isn’t possible. It took me hours to get the thing working and this will just complete the set up for me.
The moment you arm your alarm_panel_control entity, it’s done. There’s no opportunity to make it pause and wait for something else to happen first (like closing the front door) before it actually arms.
The workaround is to use another entity, perhaps an input_boolean, to serve as a proxy. For example, the moment you turn on the input_boolean, it triggers an automation. The automation employs a wait_template that waits for the front door to be closed. The moment the door is closed, the automation continues and proceeds to arm the alarm_control_panel.
Alternately, create an automation that is always triggered when the front door closes. When triggered it checks a condition if the input_boolean is currently on. If it isn’t, it does nothing. If it is, it proceeds to arm the alarm_control_panel.
Create a virtual device that once when activated will check the condition of the Armed Away status and will execute Armed Away if it reports Disarmed after a predetermined time. ie your exit time.
I can’t speak for anyone else but the requirements in your first post were clear. As explained, you need to use a proxy for the alarm_control_panel because it communicates directly with whatever integration you are currently using for your alarm system. After step 2 is performed, the integration you are using has received the arm_away command and is acting on it.
The other option suggested by others is to replace your existing integration with Alarmo (a custom integration that emulates a physical alarm system).
OK, then you might be able to replace it with the Template Alarm Control Panel. It gives you fine-grained control of how each alarm function is performed.