{
    "id": 4195,
    "date": "2026-11-22T19:15:26",
    "date_gmt": "2026-11-22T17:15:26",
    "guid": {
        "rendered": "http:\/\/realhomeautomations.com\/bg\/projects\/alarma-koyato-kazva-zashto-ne-se-vaorazhava-otvoren-prozorets-ili-vrata-ya-spira\/"
    },
    "modified": "2026-11-23T18:24:03",
    "modified_gmt": "2026-11-23T16:24:03",
    "slug": "alarma-koyato-kazva-zashto-ne-se-vaorazhava-otvoren-prozorets-ili-vrata-ya-spira",
    "status": "publish",
    "type": "diy_project",
    "link": "https:\/\/realhomeautomations.com\/en\/projects\/alarma-koyato-kazva-zashto-ne-se-vaorazhava-otvoren-prozorets-ili-vrata-ya-spira\/",
    "title": {
        "rendered": "An alarm that tells you why it won&#8217;t arm: an open window or door stops it"
    },
    "content": {
        "rendered": "<p class=\"wp-block-paragraph\">You press &#8220;arm&#8221; and leave, and in the evening you find out the bedroom window was open. Here is a script that checks all the doors and windows before arming and tells you what is stopping it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What you will get<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A button &#8220;Arm if everything is closed&#8221;. If all the sensors are closed, the alarm arms. If any is open or doesn&#8217;t respond, the alarm stays off and you get a message with the names of the problem doors and windows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The project complements the alarm from <a href=\"https:\/\/realhomeautomations.com\/bg\/projects\/home-assistant-kato-ohranitelna-alarma-vaorazhavane-zabavyane-na-vhoda-i-izvestie-pri-srabotvane\/\">the alarm project in Home Assistant<\/a>. It also works with any other <code>alarm_control_panel<\/code>.<\/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 each door or window you want to check. How many depends on your home.<\/li><li>Home Assistant, an alarm panel (<code>alarm_control_panel<\/code>) and a phone with the 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 30\u201345 minutes.<\/li><li><strong>Skills:<\/strong> you edit a script in YAML and add a card to the dashboard.<\/li><li><strong>Installation:<\/strong> the sensors are stuck on, with no connection to mains voltage.<\/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 script makes a list of the sensors whose state is not <code>off<\/code> (closed). That includes <code>on<\/code> (open) and <code>unavailable<\/code> or <code>unknown<\/code>: a sensor with no connection doesn&#8217;t prove that the door is closed, so it also stops arming.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the list is empty, the script calls <code>alarm_control_panel.alarm_arm_away<\/code>. Otherwise it sends a notification with the names from the list. The name is the name of the device, so name the sensors clearly: &#8220;Front door&#8221;, &#8220;Bedroom window&#8221;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Add and name the sensors.<\/strong> Pair each sensor through ZHA or Zigbee2MQTT. Give it the name of the place where it is stuck. Write down the entity IDs of the <code>binary_sensor<\/code> for the doors and windows.<\/li><li><strong>Check the notifications.<\/strong> In Developer tools \u2192 Actions try <code>notify.mobile_app_\u2026<\/code> for your phone with a test message.<\/li><li><strong>Create the script.<\/strong> Settings \u2192 Automations &amp;amp; scenes \u2192 Scripts \u2192 Create script \u2192 three dots \u2192 Edit in YAML. Paste the example. All the entity IDs are examples: replace them with your own.<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: \"Arm if everything is closed\"\nmode: single\nvariables:\n  not_closed: &gt;\n    {{ expand('binary_sensor.front_door_contact',\n              'binary_sensor.bedroom_window_contact',\n              'binary_sensor.kitchen_window_contact')\n       | rejectattr('state', 'eq', 'off')\n       | map(attribute='name') | list }}\nsequence:\n  - if:\n      - condition: template\n        value_template: \"{{ not_closed | count == 0 }}\"\n    then:\n      - action: alarm_control_panel.alarm_arm_away\n        target:\n          entity_id: alarm_control_panel.home_alarm\n        data:\n          code: \"1234\"\n    else:\n      - action: notify.mobile_app_telefon\n        data:\n          title: \"The alarm is not armed\"\n          message: \"Open or no connection: {{ not_closed | join(', ') }}\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>code<\/code> is needed only if the panel has an arming code. The script is not a master key to the alarm: replace the code with your own and don&#8217;t keep it where guests can see it.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Put a button on the dashboard.<\/strong> Add a Button card for the script and use it instead of arming the panel directly.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Checking the result<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Everything closed.<\/strong> The script arms the alarm. The panel goes into <code>arming<\/code>.<\/li><li><strong>An open window.<\/strong> Open one window and start the script: the alarm stays off, and the notification contains the name of the window.<\/li><li><strong>Two open.<\/strong> Both names are in the message.<\/li><li><strong>A sensor with no connection.<\/strong> Take the battery out of one sensor: the script counts it as a problem.<\/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>It always says &#8220;open&#8221;.<\/strong> Check in Developer tools \u2192 States: the state is <code>off<\/code> when closed. If it is something else, for example <code>closed<\/code>, change <code>rejectattr('state','eq','off')<\/code>.<\/li><li><strong>The names are not clear.<\/strong> Rename the devices in Settings \u2192 Devices &amp;amp; services.<\/li><li><strong>It arms despite an open door.<\/strong> You armed directly from the panel, not from the button. The script is not involved.<\/li><li><strong>An error with the code.<\/strong> The panel requires a code: add <code>code<\/code> or use the panel&#8217;s setting.<\/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 script checks only the sensors you list. A door without a sensor is not watched.<\/li><li>Arming directly from the panel bypasses the check. Hide it from the dashboard or explain to the household to use the button.<\/li><li>An empty list <code>expand()<\/code> means nothing is checked: add at least one sensor.<\/li><li>If Home Assistant is not running, there is neither a check nor an alarm.<\/li><li>Turning off: delete the button and the script or use the panel directly.<\/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 Home Assistant documentation, 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\/scripts\/\">Home Assistant: scripts and actions<\/a>, 22.11.2026<\/li><li><a href=\"https:\/\/www.home-assistant.io\/docs\/configuration\/templating\/\">Home Assistant: templates (<code>expand<\/code>, <code>selectattr<\/code>)<\/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, 22.11.2026<\/li><\/ul>",
        "protected": false
    },
    "excerpt": {
        "rendered": "<p>A script in Home Assistant checks all the door and window sensors before arming. If something is open or has lost connection, the alarm stays off and you get a message saying what is stopping it.<\/p>",
        "protected": false
    },
    "author": 0,
    "featured_media": 3628,
    "template": "",
    "diy_project_category": [
        57
    ],
    "diy_project_tag": [
        54,
        171,
        64,
        115
    ],
    "class_list": [
        "post-4195",
        "diy_project",
        "type-diy_project",
        "status-publish",
        "has-post-thumbnail",
        "hentry",
        "diy_project_category-security",
        "diy_project_tag-home-assistant",
        "diy_project_tag-alarma",
        "diy_project_tag-64",
        "diy_project_tag-115"
    ],
    "acf": {
        "_diysmart_difficulty": "beginner",
        "_diysmart_featured": false,
        "_diysmart_build_duration_min": 30,
        "_diysmart_build_duration_max": 45,
        "_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 or window sensor",
                "note": "Sonoff SNZB-04PR1, one per door or window"
            },
            {
                "label": "Alarm panel",
                "note": "alarm_control_panel in Home Assistant"
            },
            {
                "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": "Check all doors and windows with a script"
            },
            {
                "outcome": "Get the names of the open ones"
            },
            {
                "outcome": "Count a sensor with no connection as a problem"
            }
        ],
        "_diysmart_skill_requirements_rows": [
            {
                "requirement": "Edit a script in YAML in Home Assistant",
                "note": ""
            },
            {
                "requirement": "Add a Button card to the dashboard",
                "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>An alarm that tells you why it won&#039;t arm: an open window or door stops it - Real Home Automations<\/title>\n<meta name=\"description\" content=\"A script in Home Assistant checks all the door and window sensors before arming. If something is open or has lost connection, the alarm stays off and you get a message saying what is stopping it.\" \/>\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\/4195\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"An alarm that tells you why it won&#039;t arm: an open window or door stops it - Real Home Automations\" \/>\n<meta property=\"og:description\" content=\"A script in Home Assistant checks all the door and window sensors before arming. If something is open or has lost connection, the alarm stays off and you get a message saying what is stopping it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4195\" \/>\n<meta property=\"og:site_name\" content=\"Real Home Automations\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-23T16:24:03+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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/alarm-explains-why-it-wont-arm\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/alarm-explains-why-it-wont-arm\\\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"An alarm that tells you why it won&#8217;t arm: an open window or door stops it\",\"datePublished\":\"2026-11-22T17:15:26+00:00\",\"dateModified\":\"2026-11-23T16:24:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/alarm-explains-why-it-wont-arm\\\/\"},\"wordCount\":683,\"publisher\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/alarm-explains-why-it-wont-arm\\\/#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\\\/alarm-explains-why-it-wont-arm\\\/\",\"url\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/alarm-explains-why-it-wont-arm\\\/\",\"name\":\"An alarm that tells you why it won't arm: an open window or door stops it - Real Home Automations\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/alarm-explains-why-it-wont-arm\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/alarm-explains-why-it-wont-arm\\\/#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:26+00:00\",\"dateModified\":\"2026-11-23T16:24:03+00:00\",\"description\":\"A script in Home Assistant checks all the door and window sensors before arming. If something is open or has lost connection, the alarm stays off and you get a message saying what is stopping it.\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/alarm-explains-why-it-wont-arm\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/realhomeautomations.com\\\/bg\\\/projects\\\/alarma-koyato-kazva-zashto-ne-se-vaorazhava-otvoren-prozorets-ili-vrata-ya-spira\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/alarm-explains-why-it-wont-arm\\\/#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\\\/alarm-explains-why-it-wont-arm\\\/#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\":\"An alarm that tells you why it won&#8217;t arm: an open window or door stops it\"}]},{\"@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": "An alarm that tells you why it won't arm: an open window or door stops it - Real Home Automations",
        "description": "A script in Home Assistant checks all the door and window sensors before arming. If something is open or has lost connection, the alarm stays off and you get a message saying what is stopping it.",
        "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\/4195",
        "og_locale": "en_US",
        "og_type": "article",
        "og_title": "An alarm that tells you why it won't arm: an open window or door stops it - Real Home Automations",
        "og_description": "A script in Home Assistant checks all the door and window sensors before arming. If something is open or has lost connection, the alarm stays off and you get a message saying what is stopping it.",
        "og_url": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4195",
        "og_site_name": "Real Home Automations",
        "article_modified_time": "2026-11-23T16:24:03+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": "4 minutes"
        },
        "schema": {
            "@context": "https:\/\/schema.org",
            "@graph": [
                {
                    "@type": "TechArticle",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/alarm-explains-why-it-wont-arm\/#article",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/alarm-explains-why-it-wont-arm\/"
                    },
                    "author": {
                        "name": "",
                        "@id": ""
                    },
                    "headline": "An alarm that tells you why it won&#8217;t arm: an open window or door stops it",
                    "datePublished": "2026-11-22T17:15:26+00:00",
                    "dateModified": "2026-11-23T16:24:03+00:00",
                    "mainEntityOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/alarm-explains-why-it-wont-arm\/"
                    },
                    "wordCount": 683,
                    "publisher": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#organization"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/alarm-explains-why-it-wont-arm\/#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\/alarm-explains-why-it-wont-arm\/",
                    "url": "http:\/\/realhomeautomations.com\/en\/projects\/alarm-explains-why-it-wont-arm\/",
                    "name": "An alarm that tells you why it won't arm: an open window or door stops it - Real Home Automations",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#website"
                    },
                    "primaryImageOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/alarm-explains-why-it-wont-arm\/#primaryimage"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/alarm-explains-why-it-wont-arm\/#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:26+00:00",
                    "dateModified": "2026-11-23T16:24:03+00:00",
                    "description": "A script in Home Assistant checks all the door and window sensors before arming. If something is open or has lost connection, the alarm stays off and you get a message saying what is stopping it.",
                    "breadcrumb": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/alarm-explains-why-it-wont-arm\/#breadcrumb"
                    },
                    "inLanguage": "en-US",
                    "potentialAction": [
                        {
                            "@type": "ReadAction",
                            "target": [
                                "http:\/\/realhomeautomations.com\/bg\/projects\/alarma-koyato-kazva-zashto-ne-se-vaorazhava-otvoren-prozorets-ili-vrata-ya-spira\/"
                            ]
                        }
                    ]
                },
                {
                    "@type": "ImageObject",
                    "inLanguage": "en-US",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/alarm-explains-why-it-wont-arm\/#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\/alarm-explains-why-it-wont-arm\/#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": "An alarm that tells you why it won&#8217;t arm: an open window or door stops it"
                        }
                    ]
                },
                {
                    "@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\/4195",
                "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\/4195\/revisions"
            }
        ],
        "predecessor-version": [
            {
                "id": 4291,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4195\/revisions\/4291"
            }
        ],
        "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=4195"
            }
        ],
        "wp:term": [
            {
                "taxonomy": "diy_project_category",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_category?post=4195"
            },
            {
                "taxonomy": "diy_project_tag",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_tag?post=4195"
            }
        ],
        "curies": [
            {
                "name": "wp",
                "href": "https:\/\/api.w.org\/{rel}",
                "templated": true
            }
        ]
    }
}