{
    "id": 105,
    "date": "2026-09-13T22:46:57",
    "date_gmt": "2026-09-13T19:46:57",
    "guid": {
        "rendered": "http:\/\/realhomeautomations.com\/bg\/projects\/tema-20\/"
    },
    "modified": "2026-11-23T18:24:04",
    "modified_gmt": "2026-11-23T16:24:04",
    "slug": "otvoren-prozorets-klimatikat-spira-i-se-vrashta-sam",
    "status": "publish",
    "type": "diy_project",
    "link": "https:\/\/realhomeautomations.com\/en\/projects\/otvoren-prozorets-klimatikat-spira-i-se-vrashta-sam\/",
    "title": {
        "rendered": "Open window: the AC stops and comes back on its own"
    },
    "content": {
        "rendered": "<p class=\"wp-block-paragraph\">My wife likes to air the place out. She opens the bedroom window to let in fresh air, leaves the room and forgets that the AC is still running. It keeps cooling or heating the street. Nobody needs to nag: Home Assistant sees it, warns you, turns the AC down, and when the window closes it puts everything back the way it was.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What you will get<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>A notification on your phone when a window has been open for half an hour while the AC is running.<\/li><li>An AC that goes into standby by itself: in cooling mode it switches off, and in heating mode it lowers the target temperature to 20 \u00b0C and so barely runs.<\/li><li>A return to the previous mode and temperature as soon as all the windows in the room are closed.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">No new air conditioners needed: contact sensors on the windows and an AC visible in Home Assistant are enough.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What you 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\/\">Sonoff SNZB-04PR1<\/a>: Zigbee contact sensor (sensor and magnet), one per window. We have six windows in total across three rooms.<\/li><li>An AC that Home Assistant controls as a <code>climate<\/code>. Ours are Mitsubishi Electric through the MELCloud integration. We don&#8217;t sell air conditioners.<\/li><li>A phone with the Home Assistant app for the notifications.<\/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<p class=\"wp-block-paragraph\">Setup time: about an hour for the first room, less for the others.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How it works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each room gets three automations. Each answers one question:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Is the window staying open?<\/strong> If it has been open for 5 minutes and the AC is running, Home Assistant saves its current settings and puts it into standby.<\/li><li><strong>Is someone turning on the AC with the window open?<\/strong> The automation stops it again.<\/li><li><strong>Are the windows closed?<\/strong> If the AC was stopped by an automation, its settings are restored.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Between the first and the third sits a helper switch &#8220;restore pending&#8221;. It means &#8220;I stopped it&#8221;. Without it, closing a window would also turn on an AC that you switched off by hand.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When a room has several windows, you combine them into one group. That way the automations look at one value: &#8220;at least one is open&#8221; or &#8220;all are closed&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A separate automation, one for all rooms, sends a reminder after a window has been open for 30 minutes with the AC running, repeats it every 30 minutes, and after 2 hours itself turns the AC down and says in the notification that it will return when the window closes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Combine the room&#8217;s windows: Settings \u2192 Devices &amp; services \u2192 Helpers \u2192 Create helper \u2192 Group \u2192 Binary sensor group. Add the sensors, choose Opening as the type and leave All entities off. That way <code>binary_sensor.bedroom_windows<\/code> is <code>on<\/code>, whenever at least one window is open.<\/li><li>Create a Toggle helper &#8220;Bedroom AC restore pending&#8221; (<code>input_boolean.bedroom_ac_restore_pending<\/code>) and leave it off.<\/li><li>Add the first automation (below). Replace <code>binary_sensor.bedroom_windows<\/code>, <code>climate.bedroom<\/code> and the switch with your own.<\/li><li>Add the second and third automations.<\/li><li>Optionally add the reminder.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The entity names and the numbers (5 minutes, 20 \u00b0C, 30 minutes) are examples. Change them to suit the room. Each automation is added as new, through the three-dot menu and &#8220;Edit in YAML&#8221;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Bedroom AC off when windows stay open\nmode: single\ntriggers:\n  - trigger: state\n    entity_id: binary_sensor.bedroom_windows\n    to: \"on\"\n    for:\n      minutes: 5\nconditions:\n  - condition: not\n    conditions:\n      - condition: state\n        entity_id: climate.bedroom\n        state: \"off\"\nactions:\n  - action: scene.create\n    data:\n      scene_id: bedroom_ac_before_windows\n      snapshot_entities:\n        - climate.bedroom\n  - action: input_boolean.turn_on\n    target:\n      entity_id: input_boolean.bedroom_ac_restore_pending\n  - choose:\n      - conditions:\n          - condition: state\n            entity_id: climate.bedroom\n            state: heat\n        sequence:\n          - if:\n              - condition: numeric_state\n                entity_id: climate.bedroom\n                attribute: temperature\n                above: 20\n            then:\n              - action: climate.set_temperature\n                target:\n                  entity_id: climate.bedroom\n                data:\n                  temperature: 20\n    default:\n      - action: climate.set_hvac_mode\n        target:\n          entity_id: climate.bedroom\n        data:\n          hvac_mode: \"off\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>scene.create<\/code> with <code>snapshot_entities<\/code> saves the AC&#8217;s current state. The condition &#8220;not off&#8221; makes it so that if you have already stopped it by hand, the automation touches nothing.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Bedroom AC off if turned on while windows are open\nmode: single\ntriggers:\n  - trigger: state\n    entity_id: climate.bedroom\n    from: \"off\"\n    to:\n      - cool\n      - dry\n      - fan_only\n      - heat\n      - heat_cool\nconditions:\n  - condition: state\n    entity_id: binary_sensor.bedroom_windows\n    state: \"on\"\nactions:\n  - choose:\n      - conditions:\n          - condition: template\n            value_template: \"{{ trigger.to_state.state == 'heat' }}\"\n        sequence:\n          - delay:\n              seconds: 3\n          - action: scene.create\n            data:\n              scene_id: bedroom_ac_before_windows\n              snapshot_entities:\n                - climate.bedroom\n          - action: input_boolean.turn_on\n            target:\n              entity_id: input_boolean.bedroom_ac_restore_pending\n          - if:\n              - condition: numeric_state\n                entity_id: climate.bedroom\n                attribute: temperature\n                above: 20\n            then:\n              - action: climate.set_temperature\n                target:\n                  entity_id: climate.bedroom\n                data:\n                  temperature: 20\n    default:\n      - action: climate.set_hvac_mode\n        target:\n          entity_id: climate.bedroom\n        data:\n          hvac_mode: \"off\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In heating mode we wait 3 seconds before saving, so the integration has picked up the new settings.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Bedroom AC restore when windows close\nmode: single\ntriggers:\n  - trigger: state\n    entity_id: binary_sensor.bedroom_windows\n    to: \"off\"\nconditions:\n  - condition: state\n    entity_id: input_boolean.bedroom_ac_restore_pending\n    state: \"on\"\nactions:\n  - action: scene.turn_on\n    target:\n      entity_id: scene.bedroom_ac_before_windows\n  - action: input_boolean.turn_off\n    target:\n      entity_id: input_boolean.bedroom_ac_restore_pending<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Restoring only happens if the switch is <code>on<\/code>. That is why closing a window does not turn on an AC that you didn&#8217;t stop through this automation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The reminder, shortened for one room:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Bedroom window open reminders\nmode: single\ntriggers:\n  - trigger: state\n    entity_id: binary_sensor.bedroom_windows\n    to: \"on\"\n    for:\n      minutes: 30\nconditions:\n  - condition: not\n    conditions:\n      - condition: state\n        entity_id: climate.bedroom\n        state: \"off\"\nactions:\n  - repeat:\n      sequence:\n        - action: notify.mobile_app_telefon  # replace with your phone\n          data:\n            title: Window open\n            message: The bedroom window is open and the AC is running. Close it so electricity isn't wasted.\n        - wait_template: \"{{ not is_state('binary_sensor.bedroom_windows', 'on') }}\"\n          timeout:\n            minutes: 30\n          continue_on_timeout: true\n      until:\n        - condition: state\n          entity_id: binary_sensor.bedroom_windows\n          state: \"off\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You find the service on your phone in Developer tools \u2192 Actions by entering <code>notify.mobile_app<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Check the result<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Temporarily reduce <code>minutes: 5<\/code> to 1, open a window with the AC running. After a minute the AC should be in standby, and the switch: <code>on<\/code>.<\/li><li>Close the window. The AC returns with its previous mode and temperature, and the switch becomes <code>off<\/code>.<\/li><li>Stop the AC by hand, open and close the window. Nothing turns on.<\/li><li>Open a window and turn the AC on. It switches off, and in heating mode drops to 20 \u00b0C.<\/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>The AC doesn&#8217;t stop \u2192 the group has not been <code>on<\/code> for the full 5 minutes \u2192 check its history; if the window is closed and opened, the countdown starts over.<\/li><li>It doesn&#8217;t come back \u2192 <code>scene.bedroom_ac_before_windows<\/code> no longer exists \u2192 check it in Developer tools \u2192 States.<\/li><li>An old temperature comes back \u2192 the settings were changed by hand while the window was open \u2192 the restore overwrites them.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to stop it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Stop the room&#8217;s three automations from Settings \u2192 Automations &amp; scenes. The reminder is a separate automation and is stopped separately.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our ACs go through the MELCloud cloud service, so commands only work with internet. The sensors are Zigbee and work locally. The reminder is lost if Home Assistant restarts while a window is open.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sources and verification status<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The automations were read in Marto&#8217;s Home Assistant on 23.11.2026 (read-only): three each for the bedroom, kids&#8217; room and living room, plus the shared reminder. The examples are anonymised and shorter versions.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/scene\/\">Home Assistant: Scene, scene.create<\/a><\/li><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/group\/\">Home Assistant: Group, binary sensor<\/a><\/li><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/input_boolean\/\">Home Assistant: Input boolean<\/a><\/li><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/melcloud\/\">Home Assistant: MELCloud<\/a><\/li><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/zha\/\">Home Assistant: Zigbee Home Automation<\/a><\/li><\/ul>",
        "protected": false
    },
    "excerpt": {
        "rendered": "<p>If the window stays open for a few minutes, the AC stops or drops to standby, and when it closes it returns to its previous settings. Three automations per room and a reminder on your phone.<\/p>",
        "protected": false
    },
    "author": 1,
    "featured_media": 3628,
    "template": "",
    "diy_project_category": [
        63
    ],
    "diy_project_tag": [
        54,
        64,
        114,
        115
    ],
    "class_list": [
        "post-105",
        "diy_project",
        "type-diy_project",
        "status-publish",
        "has-post-thumbnail",
        "hentry",
        "diy_project_category-63",
        "diy_project_tag-home-assistant",
        "diy_project_tag-64",
        "diy_project_tag-114",
        "diy_project_tag-115"
    ],
    "acf": {
        "_diysmart_difficulty": "intermediate",
        "_diysmart_featured": false,
        "_diysmart_build_duration_min": 60,
        "_diysmart_build_duration_max": 120,
        "_diysmart_build_duration_unit": "minutes",
        "_diysmart_home_assistant": "required",
        "_diysmart_works_offline": "",
        "_diysmart_electrician": "no",
        "_diysmart_reading_time_override": "",
        "_diysmart_required_tools_rows": [
            {
                "label": "Sonoff SNZB-04PR1",
                "note": "Zigbee contact sensor, one per window"
            },
            {
                "label": "AC in Home Assistant as a climate entity",
                "note": "ours is Mitsubishi Electric through MELCloud"
            },
            {
                "label": "Zigbee hub or Home Assistant with a Zigbee adapter",
                "note": ""
            },
            {
                "label": "Phone with Home Assistant Companion",
                "note": "for the reminders"
            }
        ],
        "_diysmart_learning_outcomes_rows": [
            {
                "outcome": "Combine the windows of a room into one group"
            },
            {
                "outcome": "Save and restore the AC settings with a scene"
            },
            {
                "outcome": "Get a reminder while a window is open"
            }
        ],
        "_diysmart_skill_requirements_rows": [
            {
                "requirement": "Add an automation through Edit in YAML",
                "note": ""
            },
            {
                "requirement": "Create Group and Toggle helpers",
                "note": ""
            }
        ],
        "_diysmart_at_home": {
            "who": "Marto",
            "since": "",
            "story": "My wife likes to air out the rooms and often forgets the AC is running. In our three rooms (bedroom, kids' room, living room) there are three automations each and a shared reminder: after 5 minutes of an open window the AC stops (in heating mode it drops to 20 \u00b0C), and when we close it, it returns to its previous settings. The windows are watched by Zigbee sensors Tuya TS0203 and HOBEIAN ZG-102Z, and the ACs are Mitsubishi Electric through MELCloud.",
            "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>Open window: the AC stops and comes back on its own | Real Home Automations<\/title>\n<meta name=\"description\" content=\"Three automations per room stop the AC when a window is open, block it from switching on, and restore the settings when it closes. Real configuration and YAML.\" \/>\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\/105\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Open window: the AC stops and comes back on its own | Real Home Automations\" \/>\n<meta property=\"og:description\" content=\"Three automations per room stop the AC when a window is open, block it from switching on, and restore the settings when it closes. Real configuration and YAML.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/105\" \/>\n<meta property=\"og:site_name\" content=\"Real Home Automations\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-23T16:24:04+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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/open-window-ac-stops-and-resumes\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/open-window-ac-stops-and-resumes\\\/\"},\"author\":{\"name\":\"Real Home Automations\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#\\\/schema\\\/person\\\/762335b7812ecb9e45d2ce88eefb48b2\"},\"headline\":\"Open window: the AC stops and comes back on its own\",\"datePublished\":\"2026-09-13T19:46:57+00:00\",\"dateModified\":\"2026-11-23T16:24:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/open-window-ac-stops-and-resumes\\\/\"},\"wordCount\":878,\"publisher\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/open-window-ac-stops-and-resumes\\\/#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\\\/open-window-ac-stops-and-resumes\\\/\",\"url\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/open-window-ac-stops-and-resumes\\\/\",\"name\":\"Open window: the AC stops and comes back on its own | Real Home Automations\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/open-window-ac-stops-and-resumes\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/open-window-ac-stops-and-resumes\\\/#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-09-13T19:46:57+00:00\",\"dateModified\":\"2026-11-23T16:24:04+00:00\",\"description\":\"Three automations per room stop the AC when a window is open, block it from switching on, and restore the settings when it closes. Real configuration and YAML.\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/open-window-ac-stops-and-resumes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/realhomeautomations.com\\\/bg\\\/projects\\\/otvoren-prozorets-klimatikat-spira-i-se-vrashta-sam\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/open-window-ac-stops-and-resumes\\\/#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\\\/open-window-ac-stops-and-resumes\\\/#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\":\"Open window: the AC stops and comes back on its own\"}]},{\"@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\\\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#\\\/schema\\\/person\\\/762335b7812ecb9e45d2ce88eefb48b2\",\"name\":\"Real Home Automations\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4442f1640dcd6bf401460fe3f2393f03c3c10ab1a2bce81a588e1379d7f8795b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4442f1640dcd6bf401460fe3f2393f03c3c10ab1a2bce81a588e1379d7f8795b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4442f1640dcd6bf401460fe3f2393f03c3c10ab1a2bce81a588e1379d7f8795b?s=96&d=mm&r=g\",\"caption\":\"Real Home Automations\"},\"sameAs\":[\"https:\\\/\\\/realhomeautomations.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->",
    "yoast_head_json": {
        "title": "Open window: the AC stops and comes back on its own | Real Home Automations",
        "description": "Three automations per room stop the AC when a window is open, block it from switching on, and restore the settings when it closes. Real configuration and YAML.",
        "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\/105",
        "og_locale": "en_US",
        "og_type": "article",
        "og_title": "Open window: the AC stops and comes back on its own | Real Home Automations",
        "og_description": "Three automations per room stop the AC when a window is open, block it from switching on, and restore the settings when it closes. Real configuration and YAML.",
        "og_url": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/105",
        "og_site_name": "Real Home Automations",
        "article_modified_time": "2026-11-23T16:24:04+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": "7 minutes"
        },
        "schema": {
            "@context": "https:\/\/schema.org",
            "@graph": [
                {
                    "@type": "TechArticle",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/open-window-ac-stops-and-resumes\/#article",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/open-window-ac-stops-and-resumes\/"
                    },
                    "author": {
                        "name": "Real Home Automations",
                        "@id": "http:\/\/realhomeautomations.com\/en\/#\/schema\/person\/762335b7812ecb9e45d2ce88eefb48b2"
                    },
                    "headline": "Open window: the AC stops and comes back on its own",
                    "datePublished": "2026-09-13T19:46:57+00:00",
                    "dateModified": "2026-11-23T16:24:04+00:00",
                    "mainEntityOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/open-window-ac-stops-and-resumes\/"
                    },
                    "wordCount": 878,
                    "publisher": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#organization"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/open-window-ac-stops-and-resumes\/#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\/open-window-ac-stops-and-resumes\/",
                    "url": "http:\/\/realhomeautomations.com\/en\/projects\/open-window-ac-stops-and-resumes\/",
                    "name": "Open window: the AC stops and comes back on its own | Real Home Automations",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#website"
                    },
                    "primaryImageOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/open-window-ac-stops-and-resumes\/#primaryimage"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/open-window-ac-stops-and-resumes\/#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-09-13T19:46:57+00:00",
                    "dateModified": "2026-11-23T16:24:04+00:00",
                    "description": "Three automations per room stop the AC when a window is open, block it from switching on, and restore the settings when it closes. Real configuration and YAML.",
                    "breadcrumb": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/open-window-ac-stops-and-resumes\/#breadcrumb"
                    },
                    "inLanguage": "en-US",
                    "potentialAction": [
                        {
                            "@type": "ReadAction",
                            "target": [
                                "http:\/\/realhomeautomations.com\/bg\/projects\/otvoren-prozorets-klimatikat-spira-i-se-vrashta-sam\/"
                            ]
                        }
                    ]
                },
                {
                    "@type": "ImageObject",
                    "inLanguage": "en-US",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/open-window-ac-stops-and-resumes\/#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\/open-window-ac-stops-and-resumes\/#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": "Open window: the AC stops and comes back on its own"
                        }
                    ]
                },
                {
                    "@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\/"
                    }
                },
                {
                    "@type": "Person",
                    "@id": "http:\/\/realhomeautomations.com\/en\/#\/schema\/person\/762335b7812ecb9e45d2ce88eefb48b2",
                    "name": "Real Home Automations",
                    "image": {
                        "@type": "ImageObject",
                        "inLanguage": "en-US",
                        "@id": "https:\/\/secure.gravatar.com\/avatar\/4442f1640dcd6bf401460fe3f2393f03c3c10ab1a2bce81a588e1379d7f8795b?s=96&d=mm&r=g",
                        "url": "https:\/\/secure.gravatar.com\/avatar\/4442f1640dcd6bf401460fe3f2393f03c3c10ab1a2bce81a588e1379d7f8795b?s=96&d=mm&r=g",
                        "contentUrl": "https:\/\/secure.gravatar.com\/avatar\/4442f1640dcd6bf401460fe3f2393f03c3c10ab1a2bce81a588e1379d7f8795b?s=96&d=mm&r=g",
                        "caption": "Real Home Automations"
                    },
                    "sameAs": [
                        "https:\/\/realhomeautomations.com"
                    ]
                }
            ]
        }
    },
    "_links": {
        "self": [
            {
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/105",
                "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"
            }
        ],
        "author": [
            {
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/users\/1"
            }
        ],
        "version-history": [
            {
                "count": 6,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/105\/revisions"
            }
        ],
        "predecessor-version": [
            {
                "id": 4483,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/105\/revisions\/4483"
            }
        ],
        "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=105"
            }
        ],
        "wp:term": [
            {
                "taxonomy": "diy_project_category",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_category?post=105"
            },
            {
                "taxonomy": "diy_project_tag",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_tag?post=105"
            }
        ],
        "curies": [
            {
                "name": "wp",
                "href": "https:\/\/api.w.org\/{rel}",
                "templated": true
            }
        ]
    }
}