NL: Laat je inbraakalarm automatisch meebewegen met je dagritme. Deze Home Assistant alarm automatisering (Alarmo) wapent en ontwapent zelf op basis van slapen, thuiskomst en beweging — inclusief pushmeldingen met directe acties. Volledige uitleg + downloadbare YAML.
EN: Let your intrusion alarm move automatically with your daily routine. This Home Assistant alarm automation (Alarmo) arms and disarms itself based on sleep, arrival and motion — including actionable push notifications. Full explanation + downloadable YAML.
Deze Home Assistant alarm automatisering wapent en ontwapent je inbraakalarm (via de Alarmo-integratie) volledig automatisch op basis van wie er slaapt, thuis is, of beweegt — en stuurt bij een echte trigger direct een pushmelding met welke sensor het veroorzaakte.
Concreet regelt deze automatisering-set:
- Alarm automatisch wapenen zodra iedereen gaat slapen of niemand thuis is
- Alarm automatisch ontwapenen bij thuiskomst
- Tijdelijk ontwapenen bij een toiletbezoek ’s nachts
- Alarm direct vanuit een pushmelding aan- of uitzetten
- Bij een echte trigger: pushmelding mét welke sensor het veroorzaakte, en knipperende lampen als extra signaal
In dit artikel krijg je een volledig werkend voorbeeld van alle 7 losse automatiseringen die samen deze flow vormen, inclusief uitleg zodat ook beginners dit zelf kunnen opzetten. Onderaan kun je de complete, kant-en-klare YAML ook downloaden.
De 7 automatiseringen zijn: notificatie-actie afhandelen, override-reset, wapenen bij slapen, tijdelijk ontwapenen bij beweging, trigger-melding en -signaal, ontwapenen bij thuiskomst, en wapenen bij niemand thuis.
⚙️ Wat heb je nodig voor deze Alarmo-automatisering?
In Home Assistant:
- De Alarmo-integratie, geconfigureerd met minimaal een “night”- en “away”-modus
- Een
alarm_control_panel-entiteit vanuit Alarmo (in dit voorbeeld:alarm_control_panel.alarm_woning) - De Home Assistant Mobile App op de telefoons die meldingen moeten ontvangen, met notificatie-acties ingeschakeld
- Een
binary_sensorvoor aanwezigheidsdetectie (bijv. een bewegingssensor op de overloop) - Twee
person-entiteiten voor aanwezigheidsdetectie van bewoners
Zelf aan te maken helpers:
input_boolean.override_alarm— geeft aan of de automatische logica tijdelijk overruled isinput_boolean.slapen— geeft de algemene slaapstatus in huis aan
🧩 De 7 automatiseringen
Automatisering: Reageren op notificatie-actie
Wat doet dit: verwerkt de “Aanzetten”/”Uitzetten”-knoppen die je vanuit een pushmelding kunt indrukken, en voorkomt dat de automatische aan/uit-logica dit meteen weer terugdraait.
Hoe maak je dit:
yaml
trigger: event
event_type: mobile_app_notification_action
Lees de gekozen actie uit trigger.event.data.action. Bij “Alarm_uitzetten”: zet input_boolean.override_alarmaan, roep alarmo.disarm aan, en zet de override na 60 minuten weer uit. Bij “Alarm_aanzetten”: zelfde patroon maar met alarmo.arm (mode night, skip_delay: true, force: true).
Automatisering: Override reset om middernacht
Wat doet dit: voorkomt dat een vergeten override blijft hangen, door hem elke nacht standaard terug te zetten.
Hoe maak je dit:
yaml
trigger: time
at: "00:00:00"
Actie: input_boolean.turn_off op input_boolean.override_alarm.
Automatisering: Aanzetten bij slapen
Wat doet dit: wapent het alarm automatisch in nachtmodus zodra de slaapstatus in huis op “aan” springt.
Hoe maak je dit:
yaml
trigger: state
entity_id: input_boolean.slapen
to: "on"
condition: state
entity_id: input_boolean.override_alarm
state: "off"
Actie: alarmo.arm met mode: night, skip_delay: true, force: true.
Automatisering: Tijdelijk uit bij beweging overloop
Wat doet dit: ontwapent het alarm kort als er ’s nachts beweging is (bijv. een toiletbezoek), en wapent het na 10 minuten automatisch weer.
Hoe maak je dit:
yaml
trigger: state
entity_id: binary_sensor.overloop_bewegingssensor
to: "on"
condition: state
entity_id: alarm_control_panel.alarm_woning
state: armed_night
Actie: alarmo.disarm, dan delay: 10 minuten, dan opnieuw alarmo.arm (mode night) — maar alleen als er nog steeds geslapen wordt én er geen override actief is.
Automatisering: Triggered meldingen en aankondiging
Wat doet dit: stuurt bij een echte trigger een pushmelding naar beide telefoons met welke sensor het alarm veroorzaakte, en laat de slaapkamerlampen knipperen zolang het alarm afgaat.
Hoe maak je dit:
yaml
trigger: state
entity_id: alarm_control_panel.alarm_woning
to: triggered
Lees state_attr('alarm_control_panel.alarm_woning', 'open_sensors') uit om de veroorzakende sensor te bepalen. Stuur een notify-actie naar beide telefoons met actieknoppen (“Uitzetten”/”Aanzetten”). Gebruik daarna een repeat: while (conditie: alarm nog steeds triggered) om de slaapkamerlampen elke 5 seconden aan/uit te laten knipperen.
Automatisering: Uitzetten bij thuiskomst
Wat doet dit: ontwapent het alarm automatisch zodra een bewoner weer thuis is.
Hoe maak je dit:
yaml
trigger: state
entity_id:
- person.gebruiker_1
- person.gebruiker_2
to: home
condition: state
entity_id: input_boolean.override_alarm
state: "off"
Actie: alarmo.disarm.
Automatisering: Aanzetten bij niemand thuis
Wat doet dit: wapent het alarm in “away”-modus zodra beide bewoners weg zijn en er niet geslapen wordt.
Hoe maak je dit:
yaml
trigger: state
entity_id:
- person.gebruiker_1
- person.gebruiker_2
to: not_home
condition: state
entity_id: input_boolean.slapen
state: "off"
Actie: alarmo.arm met mode: away.
🧠 Gebruikte templates
- Sensor-naam uit open_sensors — leest de attribute
open_sensorsvan de alarm-entiteit uit en zet de eerste sensor om naar een leesbare naam voor in de pushmelding.
❓ Veelgestelde vragen
Werkt deze automatisering ook zonder Alarmo? Nee, deze specifieke flow gebruikt de alarmo.arm/alarmo.disarm-services. Gebruik je het ingebouwde alarm_control_panel van Home Assistant zonder Alarmo, dan vervang je deze services door alarm_control_panel.alarm_arm_night / alarm_control_panel.alarm_disarm.
Kan ik dit met meer dan twee bewoners gebruiken? Ja, voeg extra person-entiteiten toe aan de triggers/condities van “Uitzetten bij thuiskomst” en “Aanzetten bij niemand thuis”.
Werken de pushmeldingen ook op Android én iOS tegelijk? Ja, zolang beide telefoons de Home Assistant Mobile App hebben met notificatie-acties ingeschakeld.
Hieronder kun je bovenstaande flow downloaden incl. de genoemde helpers en de volledige YAML als Word-bijlage.
De genoemde helpers kun je zelf aanmaken in Home Assistant onder apparaten en diensten -> helpers -> Helper toevoegen.
Let op gebruik is op eigen risico!!
🔒 Home Assistant alarm automation with Alarmo: 7 automations for fully automatic arming and disarming
This Home Assistant alarm automation arms and disarms your intrusion alarm (via the Alarmo integration) completely automatically based on who’s asleep, home, or moving around — and sends an instant push notification showing which sensor caused an actual trigger.
Specifically, this automation set handles:
- Automatically arming when everyone’s asleep or nobody’s home
- Automatically disarming on arrival
- Temporarily disarming for a nighttime bathroom trip
- Arming/disarming directly from a push notification
- On an actual trigger: a notification showing which sensor caused it, plus flashing lights as an extra signal
This article gives you a fully working example of all 7 individual automations that make up this flow, with explanations so beginners can set it up too. At the bottom, you can also download the complete, ready-made YAML.
The 7 automations are: notification action handling, override reset, arm at bedtime, temporary disarm on motion, trigger notification and signal, disarm on arrival, and arm when nobody’s home.
⚙️ What do you need for this Alarmo automation?
In Home Assistant:
- The Alarmo integration, configured with at least a “night” and “away” mode
- An
alarm_control_panelentity from Alarmo (in this example:alarm_control_panel.alarm_woning) - The Home Assistant Mobile App on the phones that should receive notifications, with notification actions enabled
- A
binary_sensorfor presence detection (e.g. a hallway motion sensor) - Two
personentities for resident presence detection
Helpers to create yourself:
input_boolean.override_alarm— tracks whether the automatic logic is temporarily overriddeninput_boolean.slapen— tracks the household’s overall sleep status
🧩 The 7 automations
Automation: Respond to notification action
What it does: handles the “Arm”/”Disarm” buttons you can tap from a push notification, and prevents the automatic arm/disarm logic from immediately reversing it.
How to build it:
yaml
trigger: event
event_type: mobile_app_notification_action
Read the chosen action from trigger.event.data.action. On “Alarm_uitzetten”: turn on input_boolean.override_alarm, call alarmo.disarm, then turn the override back off after 60 minutes. On “Alarm_aanzetten”: same pattern but with alarmo.arm (mode night, skip_delay: true, force: true).
Automation: Reset override at midnight
What it does: prevents a forgotten override from sticking by resetting it every night by default.
How to build it:
yaml
trigger: time
at: "00:00:00"
Action: input_boolean.turn_off on input_boolean.override_alarm.
Automation: Arm at bedtime
What it does: automatically arms the alarm in night mode once the household sleep status turns on.
How to build it:
yaml
trigger: state
entity_id: input_boolean.slapen
to: "on"
condition: state
entity_id: input_boolean.override_alarm
state: "off"
Action: alarmo.arm with mode: night, skip_delay: true, force: true.
Automation: Temporarily disarm on hallway motion
What it does: briefly disarms the alarm on nighttime motion (e.g. a bathroom trip), then automatically re-arms after 10 minutes.
How to build it:
yaml
trigger: state
entity_id: binary_sensor.overloop_bewegingssensor
to: "on"
condition: state
entity_id: alarm_control_panel.alarm_woning
state: armed_night
Action: alarmo.disarm, then delay: 10 minutes, then alarmo.arm again (mode night) — but only if sleep mode is still on and there’s no active override.
Automation: Triggered notifications and announcement
What it does: on an actual trigger, sends a push notification to both phones showing which sensor caused it, and flashes the bedroom lights for as long as the alarm stays triggered.
How to build it:
yaml
trigger: state
entity_id: alarm_control_panel.alarm_woning
to: triggered
Read state_attr('alarm_control_panel.alarm_woning', 'open_sensors') to determine which sensor caused it. Send a notify action to both phones with action buttons (“Disarm”/”Arm”). Then use a repeat: while (condition: alarm still triggered) to flash the bedroom lights on/off every 5 seconds.
Automation: Disarm on arrival
What it does: automatically disarms the alarm once a resident is home.
How to build it:
yaml
trigger: state
entity_id:
- person.gebruiker_1
- person.gebruiker_2
to: home
condition: state
entity_id: input_boolean.override_alarm
state: "off"
Action: alarmo.disarm.
Automation: Arm when nobody’s home
What it does: arms the alarm in “away” mode once both residents are gone and nobody’s asleep.
How to build it:
yaml
trigger: state
entity_id:
- person.gebruiker_1
- person.gebruiker_2
to: not_home
condition: state
entity_id: input_boolean.slapen
state: "off"
Action: alarmo.arm with mode: away.
🧠 Templates used
- Sensor name from open_sensors — reads the
open_sensorsattribute from the alarm entity and converts the first sensor into a readable name for the push notification.
❓ Frequently asked questions
Does this automation work without Alarmo? No, this specific flow uses the alarmo.arm/alarmo.disarm services. If you use Home Assistant’s built-in alarm_control_panel without Alarmo, replace these with alarm_control_panel.alarm_arm_night / alarm_control_panel.alarm_disarm.
Can I use this with more than two residents? Yes, just add extra person entities to the triggers/conditions of “Disarm on arrival” and “Arm when nobody’s home”.
Do the push notifications work on Android and iOS at the same time? Yes, as long as both phones have the Home Assistant Mobile App with notification actions enabled.
You can download the flow above, including the mentioned helpers and the full YAML as a Word attachment, below.
You can create the mentioned helpers yourself in Home Assistant under Settings -> Devices & Services -> Helpers -> Add Helper.
Please note: use is at your own risk!!

Geef een reactie