{
    "id": 4193,
    "date": "2026-11-22T19:15:25",
    "date_gmt": "2026-11-22T17:15:25",
    "guid": {
        "rendered": "http:\/\/realhomeautomations.com\/bg\/projects\/home-assistant-kato-ohranitelna-alarma-vaorazhavane-zabavyane-na-vhoda-i-izvestie-pri-srabotvane\/"
    },
    "modified": "2026-11-25T17:20:11",
    "modified_gmt": "2026-11-25T15:20:11",
    "slug": "home-assistant-kato-ohranitelna-alarma-vaorazhavane-zabavyane-na-vhoda-i-izvestie-pri-srabotvane",
    "status": "publish",
    "type": "diy_project",
    "link": "https:\/\/realhomeautomations.com\/en\/projects\/home-assistant-kato-ohranitelna-alarma-vaorazhavane-zabavyane-na-vhoda-i-izvestie-pri-srabotvane\/",
    "title": {
        "rendered": "Home Assistant as a security alarm: arming, entry delay and an alert when it goes off"
    },
    "content": {
        "rendered": "<p class=\"wp-block-paragraph\">You leave home and want to know that the front door can&#8217;t be opened quietly. Home Assistant has a built-in model of an alarm system: arming, an entry delay and a notification when it goes off. Here we put it together with a door sensor and a presence sensor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What you will get<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An alarm panel in Home Assistant with &#8220;away&#8221; and &#8220;home&#8221; modes. With the door open in &#8220;away&#8221; mode the panel goes into a wait, gives you time to disarm it and, if you don&#8217;t, sends a notification to your phone.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What we need<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/realhomeautomations.com\/bg\/produkt\/smart-door-and-window-sensor-sonoff-snzb-04pr1-zigbee-3-0-protocol-cr2477-battery-powered-real-time-opening-alerts-ewelink-home-assistant\/\">Door sensor Sonoff SNZB-04PR1<\/a>: one for the front door; add one for each door or window you want to watch.<\/li><li><a href=\"https:\/\/realhomeautomations.com\/bg\/produkt\/sonoff-snzb-06p-zigbee-presence-sensor\/\">Sonoff SNZB-06P<\/a>: one presence sensor in the hallway or the living room. It works on USB-C power, so it needs a nearby outlet.<\/li><li>Home Assistant and a phone with the Home Assistant app.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You need a Zigbee hub or Home Assistant with a Zigbee adapter.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Setup time:<\/strong> about 60\u201390 minutes.<\/li><li><strong>Skills:<\/strong> you edit <code>configuration.yaml<\/code>, add Zigbee devices and paste YAML into automations.<\/li><li><strong>Installation:<\/strong> the sensors are stuck on, with no connection to mains voltage.<\/li><li><strong>Siren:<\/strong> we don&#8217;t offer one. The notification on the phone is the only signal in this project. If you have your own siren, you can add it as an extra action.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How it works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Manual alarm control panel integration is built into Home Assistant. It is a state machine. When arming, the panel first goes into <code>arming<\/code> for the time in which you leave. After that it is <code>armed_away<\/code> or <code>armed_home<\/code>. When triggered it goes into <code>pending<\/code>, you have time to disarm it, and only after that into <code>triggered<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Three settings determine the times: <code>arming_time<\/code> (exit time), <code>delay_time<\/code> (disarm time on entry) and <code>trigger_time<\/code> (how long it stays in the &#8220;triggered&#8221; state). The panel itself doesn&#8217;t know what a door is. The sensors tell it &#8220;triggered&#8221; through an automation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The logic we use:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The door opens in <code>armed_away<\/code> or <code>armed_home<\/code>: the panel triggers.<\/li><li>Presence in the hallway is taken into account only in <code>armed_away<\/code>, because in <code>armed_home<\/code> we ourselves move around inside.<\/li><li>When the state becomes <code>pending<\/code>, you get a notification, and when it becomes <code>triggered<\/code>, you get a second, more alarming one.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Simeon uses Alarmo, installed through HACS, as the alarm panel, and only its &#8220;Armed away&#8221; mode. His phone gets a notification at the entry countdown, when the alarm goes off, when it is armed with a window open and when arming fails.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Add the sensors.<\/strong> Pair them through ZHA or Zigbee2MQTT. The door should give <code>binary_sensor<\/code> with the state <code>on<\/code> when open and <code>off<\/code> when closed. The presence gives <code>binary_sensor<\/code> with the state <code>on<\/code> when a person is detected. Write down their entity IDs.<\/li><li><strong>Create the alarm panel.<\/strong> Open <code>configuration.yaml<\/code> and add the block below. After changing the file, restart Home Assistant. The times are examples.<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>alarm_control_panel:\n  - platform: manual\n    name: Home Alarm\n    unique_id: home_alarm_manual\n    code: \"1234\"\n    arming_time: 30\n    delay_time: 30\n    trigger_time: 60\n    arming_states:\n      - armed_away\n      - armed_home\n    armed_home:\n      arming_time: 0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You replace <code>1234<\/code> with your own code. The panel appears as <code>alarm_control_panel.home_alarm<\/code> and you can put it on the dashboard with an Alarm panel card.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Connect the sensors to the panel.<\/strong> In Settings \u2192 Automations &amp;amp; scenes create an automation, switch to Edit in YAML and paste the example. <code>binary_sensor.front_door_contact<\/code> and <code>binary_sensor.hallway_presence<\/code> are example names.<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: \"Alarm: trigger from door or presence\"\nmode: single\ntriggers:\n  - trigger: state\n    entity_id: binary_sensor.front_door_contact\n    to: \"on\"\n    id: door\n  - trigger: state\n    entity_id: binary_sensor.hallway_presence\n    to: \"on\"\n    id: motion\nconditions:\n  - condition: or\n    conditions:\n      - condition: trigger\n        id: door\n        # door: in both modes\n      - condition: and\n        conditions:\n          - condition: trigger\n            id: motion\n          - condition: state\n            entity_id: alarm_control_panel.home_alarm\n            state: armed_away\n  - condition: state\n    entity_id: alarm_control_panel.home_alarm\n    state:\n      - armed_away\n      - armed_home\nactions:\n  - action: alarm_control_panel.alarm_trigger\n    target:\n      entity_id: alarm_control_panel.home_alarm<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Add the notifications.<\/strong> A second automation sends a message when the state changes. <code>notify.mobile_app_telefon<\/code> is an example name; in Developer tools \u2192 Actions you find your own.<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: \"Alarm: notification on wait and on trigger\"\nmode: queued\ntriggers:\n  - trigger: state\n    entity_id: alarm_control_panel.home_alarm\n    to:\n      - pending\n      - triggered\nactions:\n  - action: notify.mobile_app_telefon\n    data:\n      title: \"Alarm\"\n      message: &gt;\n        {% if trigger.to_state.state == 'pending' %}\n        Motion or an open door. Disarm the alarm.\n        {% else %}\n        The alarm has gone off.\n        {% endif %}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Checking the result<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Arming.<\/strong> From the panel choose &#8220;away&#8221;. Then comes <code>arming<\/code> for 30 seconds, then <code>armed_away<\/code>.<\/li><li><strong>Entry.<\/strong> Open the door. The panel goes into <code>pending<\/code>, you get a notification. Enter the code within 30 seconds: there is no trigger notification.<\/li><li><strong>Trigger.<\/strong> Open the door and wait. After 30 seconds the second notification comes.<\/li><li><strong>&#8220;Home&#8221; mode.<\/strong> Walk around the hallway: presence does not cause a trigger.<\/li><li><strong>Restart.<\/strong> After a Home Assistant restart, check what the panel shows before you leave.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">If it doesn&#8217;t work<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>The panel doesn&#8217;t appear.<\/strong> Check <code>configuration.yaml<\/code> with Developer tools \u2192 YAML \u2192 Check configuration and restart.<\/li><li><strong>It triggers immediately, without a wait.<\/strong> <code>delay_time<\/code> is 0 for the chosen mode. Check the state settings.<\/li><li><strong>No notification comes.<\/strong> Check in Traces whether the automation started, then the notification action in Developer tools \u2192 Actions.<\/li><li><strong>Presence triggers on <code>armed_home<\/code>.<\/strong> The automation is checked only for <code>motion<\/code> at <code>armed_away<\/code>: check the condition.<\/li><li><strong>The sensor becomes <code>unavailable<\/code>.<\/strong> The Zigbee sensor has lost connection; check the battery and the distance to the nearest mains-powered Zigbee device.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Limitations and turning it off<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>The system lives on your Home Assistant. If the server, the internet or the Zigbee network stops, the alarm and the notifications stop.<\/li><li>A door sensor sees only the door it is stuck on. A window without a sensor is not watched.<\/li><li>The notification comes through the Home Assistant app and depends on your phone.<\/li><li>Turning off: switch the panel to &#8220;disarmed&#8221; with the code, or turn off the two automations from Settings \u2192 Automations.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Sources and verification status<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The material follows the documentation of the manufacturers and of Home Assistant, read on 22.11.2026. The topic is from Simeon&#8217;s list of ideas.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/manual\/\">Home Assistant: Manual alarm control panel<\/a>, 22.11.2026<\/li><li><a href=\"https:\/\/www.home-assistant.io\/docs\/automation\/trigger\/\">Home Assistant: automations, triggers<\/a>, 22.11.2026<\/li><li><a href=\"https:\/\/companion.home-assistant.io\/docs\/notifications\/notifications-basic\">Home Assistant: Companion App, notifications<\/a>, 22.11.2026<\/li><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/zha\/\">Home Assistant: Zigbee Home Automation<\/a>, 22.11.2026<\/li><li>Real Home Automations catalog: Sonoff SNZB-04PR1 and SNZB-06P (product descriptions), 22.11.2026<\/li><\/ul>",
        "protected": false
    },
    "excerpt": {
        "rendered": "<p>Home Assistant\u2019s built-in alarm panel, a front-door sensor and a presence sensor make a home alarm with an exit time, a disarm time on entry and a notification on your phone.<\/p>",
        "protected": false
    },
    "author": 0,
    "featured_media": 3628,
    "template": "",
    "diy_project_category": [
        57
    ],
    "diy_project_tag": [
        54,
        53,
        171,
        64
    ],
    "class_list": [
        "post-4193",
        "diy_project",
        "type-diy_project",
        "status-publish",
        "has-post-thumbnail",
        "hentry",
        "diy_project_category-security",
        "diy_project_tag-home-assistant",
        "diy_project_tag-zigbee",
        "diy_project_tag-alarma",
        "diy_project_tag-64"
    ],
    "acf": {
        "_diysmart_difficulty": "intermediate",
        "_diysmart_featured": false,
        "_diysmart_build_duration_min": 60,
        "_diysmart_build_duration_max": 90,
        "_diysmart_build_duration_unit": "minutes",
        "_diysmart_home_assistant": "yes",
        "_diysmart_works_offline": "",
        "_diysmart_electrician": "no",
        "_diysmart_reading_time_override": "",
        "_diysmart_required_tools_rows": [
            {
                "label": "Home Assistant",
                "note": ""
            },
            {
                "label": "Door sensor",
                "note": "Sonoff SNZB-04PR1, one per door or window"
            },
            {
                "label": "Presence sensor",
                "note": "Sonoff SNZB-06P, USB-C power"
            },
            {
                "label": "Zigbee hub or adapter",
                "note": "or Home Assistant with a Zigbee adapter; not included in the product"
            },
            {
                "label": "Phone with the Home Assistant app",
                "note": "with notifications allowed"
            }
        ],
        "_diysmart_learning_outcomes_rows": [
            {
                "outcome": "Make an alarm panel with an exit time and a disarm time on entry"
            },
            {
                "outcome": "Connect the sensors to the triggering"
            },
            {
                "outcome": "Get a notification on the wait and on the trigger"
            }
        ],
        "_diysmart_skill_requirements_rows": [
            {
                "requirement": "Add a Zigbee device to Home Assistant",
                "note": ""
            },
            {
                "requirement": "Edit configuration.yaml and paste YAML into automations",
                "note": ""
            }
        ],
        "_diysmart_at_home": {
            "who": "",
            "since": "",
            "story": "",
            "image": "",
            "caption": ""
        },
        "_diysmart_linked_product_id": 3627,
        "_diysmart_youtube_url": "",
        "_diysmart_github_url": ""
    },
    "yoast_head": "<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Home Assistant as a security alarm: arming, entry delay and an alert when it goes off - Real Home Automations<\/title>\n<meta name=\"description\" content=\"Home Assistant\u2019s built-in alarm panel, a front-door sensor and a presence sensor make a home alarm with an exit time, a disarm time on entry and a notification on your phone.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4193\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Home Assistant as a security alarm: arming, entry delay and an alert when it goes off - Real Home Automations\" \/>\n<meta property=\"og:description\" content=\"Home Assistant\u2019s built-in alarm panel, a front-door sensor and a presence sensor make a home alarm with an exit time, a disarm time on entry and a notification on your phone.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4193\" \/>\n<meta property=\"og:site_name\" content=\"Real Home Automations\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-25T15:20:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-door-and-window-sensor-sonoff-snzb-04pr1-E28093-zigbee-3-0-protocol.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"Home Assistant as a security alarm: arming, entry delay and an alert when it goes off\",\"datePublished\":\"2026-11-22T17:15:25+00:00\",\"dateModified\":\"2026-11-25T15:20:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/\"},\"wordCount\":856,\"publisher\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smart-door-and-window-sensor-sonoff-snzb-04pr1-E28093-zigbee-3-0-protocol.webp\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/\",\"url\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/\",\"name\":\"Home Assistant as a security alarm: arming, entry delay and an alert when it goes off - Real Home Automations\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smart-door-and-window-sensor-sonoff-snzb-04pr1-E28093-zigbee-3-0-protocol.webp\",\"datePublished\":\"2026-11-22T17:15:25+00:00\",\"dateModified\":\"2026-11-25T15:20:11+00:00\",\"description\":\"Home Assistant\u2019s built-in alarm panel, a front-door sensor and a presence sensor make a home alarm with an exit time, a disarm time on entry and a notification on your phone.\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/realhomeautomations.com\\\/bg\\\/projects\\\/home-assistant-kato-ohranitelna-alarma-vaorazhavane-zabavyane-na-vhoda-i-izvestie-pri-srabotvane\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/#primaryimage\",\"url\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smart-door-and-window-sensor-sonoff-snzb-04pr1-E28093-zigbee-3-0-protocol.webp\",\"contentUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smart-door-and-window-sensor-sonoff-snzb-04pr1-E28093-zigbee-3-0-protocol.webp\",\"width\":1280,\"height\":1280,\"caption\":\"Smart Door and Window Sensor Sonoff SNZB-04PR1 \u2013 Zigbee 3.0 Protocol, CR2477 Battery Powered, Real-Time Opening Alerts, eWeLink & Home Assistant\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/home-assistant-security-alarm-entry-delay\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/realhomeautomations.com\\\/bg\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u041f\u0440\u043e\u0435\u043a\u0442\u0438\",\"item\":\"http:\\\/\\\/realhomeautomations.com\\\/bg\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Home Assistant as a security alarm: arming, entry delay and an alert when it goes off\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\",\"url\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/\",\"name\":\"Real Home Automations\",\"description\":\"Open smart-home products and complete DIY projects\",\"publisher\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Organization\",\"OnlineStore\"],\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#organization\",\"name\":\"Real Home Automations\",\"url\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/favicon-512.png\",\"contentUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/favicon-512.png\",\"width\":512,\"height\":512,\"caption\":\"Real Home Automations\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"legalName\":\"\u201e\u0415\u0421 \u041a\u0415\u0419 \u0421\u041e\u0424\u0422\u0423\u0415\u0420\u201c \u0415\u041e\u041e\u0414\",\"vatID\":\"BG206246651\",\"taxID\":\"206246651\",\"email\":\"office@realhomeautomations.com\",\"telephone\":\"+359893232863\",\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"\u0443\u043b. \u201e\u0420\u0430\u0434\u0435\u0446\u043a\u0438\u201c 13, \u0435\u0442. 2, \u0430\u043f. 1\",\"addressLocality\":\"\u0412\u0430\u0440\u043d\u0430\",\"postalCode\":\"9000\",\"addressCountry\":\"BG\"},\"contactPoint\":{\"@type\":\"ContactPoint\",\"contactType\":\"customer support\",\"email\":\"office@realhomeautomations.com\",\"telephone\":\"+359893232863\",\"availableLanguage\":[\"bg\",\"en\"]},\"hasMerchantReturnPolicy\":{\"@type\":\"MerchantReturnPolicy\",\"applicableCountry\":\"BG\",\"returnPolicyCategory\":\"https:\\\/\\\/schema.org\\\/MerchantReturnFiniteReturnWindow\",\"merchantReturnDays\":14,\"returnMethod\":\"https:\\\/\\\/schema.org\\\/ReturnByMail\",\"returnFees\":\"https:\\\/\\\/schema.org\\\/ReturnFeesCustomerResponsibility\",\"merchantReturnLink\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/returns\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->",
    "yoast_head_json": {
        "title": "Home Assistant as a security alarm: arming, entry delay and an alert when it goes off - Real Home Automations",
        "description": "Home Assistant\u2019s built-in alarm panel, a front-door sensor and a presence sensor make a home alarm with an exit time, a disarm time on entry and a notification on your phone.",
        "robots": {
            "index": "index",
            "follow": "follow",
            "max-snippet": "max-snippet:-1",
            "max-image-preview": "max-image-preview:large",
            "max-video-preview": "max-video-preview:-1"
        },
        "canonical": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4193",
        "og_locale": "en_US",
        "og_type": "article",
        "og_title": "Home Assistant as a security alarm: arming, entry delay and an alert when it goes off - Real Home Automations",
        "og_description": "Home Assistant\u2019s built-in alarm panel, a front-door sensor and a presence sensor make a home alarm with an exit time, a disarm time on entry and a notification on your phone.",
        "og_url": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4193",
        "og_site_name": "Real Home Automations",
        "article_modified_time": "2026-11-25T15:20:11+00:00",
        "og_image": [
            {
                "width": 1280,
                "height": 1280,
                "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-door-and-window-sensor-sonoff-snzb-04pr1-E28093-zigbee-3-0-protocol.webp",
                "type": "image\/jpeg"
            }
        ],
        "twitter_card": "summary_large_image",
        "twitter_misc": {
            "Est. reading time": "5 minutes"
        },
        "schema": {
            "@context": "https:\/\/schema.org",
            "@graph": [
                {
                    "@type": "TechArticle",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/#article",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/"
                    },
                    "author": {
                        "name": "",
                        "@id": ""
                    },
                    "headline": "Home Assistant as a security alarm: arming, entry delay and an alert when it goes off",
                    "datePublished": "2026-11-22T17:15:25+00:00",
                    "dateModified": "2026-11-25T15:20:11+00:00",
                    "mainEntityOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/"
                    },
                    "wordCount": 856,
                    "publisher": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#organization"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/#primaryimage"
                    },
                    "thumbnailUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-door-and-window-sensor-sonoff-snzb-04pr1-E28093-zigbee-3-0-protocol.webp",
                    "inLanguage": "en-US"
                },
                {
                    "@type": "WebPage",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/",
                    "url": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/",
                    "name": "Home Assistant as a security alarm: arming, entry delay and an alert when it goes off - Real Home Automations",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#website"
                    },
                    "primaryImageOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/#primaryimage"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/#primaryimage"
                    },
                    "thumbnailUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-door-and-window-sensor-sonoff-snzb-04pr1-E28093-zigbee-3-0-protocol.webp",
                    "datePublished": "2026-11-22T17:15:25+00:00",
                    "dateModified": "2026-11-25T15:20:11+00:00",
                    "description": "Home Assistant\u2019s built-in alarm panel, a front-door sensor and a presence sensor make a home alarm with an exit time, a disarm time on entry and a notification on your phone.",
                    "breadcrumb": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/#breadcrumb"
                    },
                    "inLanguage": "en-US",
                    "potentialAction": [
                        {
                            "@type": "ReadAction",
                            "target": [
                                "http:\/\/realhomeautomations.com\/bg\/projects\/home-assistant-kato-ohranitelna-alarma-vaorazhavane-zabavyane-na-vhoda-i-izvestie-pri-srabotvane\/"
                            ]
                        }
                    ]
                },
                {
                    "@type": "ImageObject",
                    "inLanguage": "en-US",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/#primaryimage",
                    "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-door-and-window-sensor-sonoff-snzb-04pr1-E28093-zigbee-3-0-protocol.webp",
                    "contentUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-door-and-window-sensor-sonoff-snzb-04pr1-E28093-zigbee-3-0-protocol.webp",
                    "width": 1280,
                    "height": 1280,
                    "caption": "Smart Door and Window Sensor Sonoff SNZB-04PR1 \u2013 Zigbee 3.0 Protocol, CR2477 Battery Powered, Real-Time Opening Alerts, eWeLink & Home Assistant"
                },
                {
                    "@type": "BreadcrumbList",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/home-assistant-security-alarm-entry-delay\/#breadcrumb",
                    "itemListElement": [
                        {
                            "@type": "ListItem",
                            "position": 1,
                            "name": "Home",
                            "item": "http:\/\/realhomeautomations.com\/bg\/"
                        },
                        {
                            "@type": "ListItem",
                            "position": 2,
                            "name": "\u041f\u0440\u043e\u0435\u043a\u0442\u0438",
                            "item": "http:\/\/realhomeautomations.com\/bg\/projects\/"
                        },
                        {
                            "@type": "ListItem",
                            "position": 3,
                            "name": "Home Assistant as a security alarm: arming, entry delay and an alert when it goes off"
                        }
                    ]
                },
                {
                    "@type": "WebSite",
                    "@id": "http:\/\/realhomeautomations.com\/en\/#website",
                    "url": "http:\/\/realhomeautomations.com\/en\/",
                    "name": "Real Home Automations",
                    "description": "Open smart-home products and complete DIY projects",
                    "publisher": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#organization"
                    },
                    "potentialAction": [
                        {
                            "@type": "SearchAction",
                            "target": {
                                "@type": "EntryPoint",
                                "urlTemplate": "https:\/\/realhomeautomations.com\/en\/?s={search_term_string}"
                            },
                            "query-input": {
                                "@type": "PropertyValueSpecification",
                                "valueRequired": true,
                                "valueName": "search_term_string"
                            }
                        }
                    ],
                    "inLanguage": "en-US"
                },
                {
                    "@type": [
                        "Organization",
                        "OnlineStore"
                    ],
                    "@id": "http:\/\/realhomeautomations.com\/en\/#organization",
                    "name": "Real Home Automations",
                    "url": "http:\/\/realhomeautomations.com\/en\/",
                    "logo": {
                        "@type": "ImageObject",
                        "inLanguage": "en-US",
                        "@id": "http:\/\/realhomeautomations.com\/en\/#\/schema\/logo\/image\/",
                        "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/favicon-512.png",
                        "contentUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/favicon-512.png",
                        "width": 512,
                        "height": 512,
                        "caption": "Real Home Automations"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#\/schema\/logo\/image\/"
                    },
                    "legalName": "\u201e\u0415\u0421 \u041a\u0415\u0419 \u0421\u041e\u0424\u0422\u0423\u0415\u0420\u201c \u0415\u041e\u041e\u0414",
                    "vatID": "BG206246651",
                    "taxID": "206246651",
                    "email": "office@realhomeautomations.com",
                    "telephone": "+359893232863",
                    "address": {
                        "@type": "PostalAddress",
                        "streetAddress": "\u0443\u043b. \u201e\u0420\u0430\u0434\u0435\u0446\u043a\u0438\u201c 13, \u0435\u0442. 2, \u0430\u043f. 1",
                        "addressLocality": "\u0412\u0430\u0440\u043d\u0430",
                        "postalCode": "9000",
                        "addressCountry": "BG"
                    },
                    "contactPoint": {
                        "@type": "ContactPoint",
                        "contactType": "customer support",
                        "email": "office@realhomeautomations.com",
                        "telephone": "+359893232863",
                        "availableLanguage": [
                            "bg",
                            "en"
                        ]
                    },
                    "hasMerchantReturnPolicy": {
                        "@type": "MerchantReturnPolicy",
                        "applicableCountry": "BG",
                        "returnPolicyCategory": "https:\/\/schema.org\/MerchantReturnFiniteReturnWindow",
                        "merchantReturnDays": 14,
                        "returnMethod": "https:\/\/schema.org\/ReturnByMail",
                        "returnFees": "https:\/\/schema.org\/ReturnFeesCustomerResponsibility",
                        "merchantReturnLink": "https:\/\/realhomeautomations.com\/en\/returns\/"
                    }
                }
            ]
        }
    },
    "_links": {
        "self": [
            {
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4193",
                "targetHints": {
                    "allow": [
                        "GET"
                    ]
                }
            }
        ],
        "collection": [
            {
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project"
            }
        ],
        "about": [
            {
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/types\/diy_project"
            }
        ],
        "version-history": [
            {
                "count": 2,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4193\/revisions"
            }
        ],
        "predecessor-version": [
            {
                "id": 4292,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4193\/revisions\/4292"
            }
        ],
        "acf:post": [
            {
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/product\/3627"
            }
        ],
        "wp:featuredmedia": [
            {
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/media\/3628"
            }
        ],
        "wp:attachment": [
            {
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/media?parent=4193"
            }
        ],
        "wp:term": [
            {
                "taxonomy": "diy_project_category",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_category?post=4193"
            },
            {
                "taxonomy": "diy_project_tag",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_tag?post=4193"
            }
        ],
        "curies": [
            {
                "name": "wp",
                "href": "https:\/\/api.w.org\/{rel}",
                "templated": true
            }
        ]
    }
}