{
    "id": 4255,
    "date": "2026-11-22T19:17:36",
    "date_gmt": "2026-11-22T17:17:36",
    "guid": {
        "rendered": "http:\/\/realhomeautomations.com\/bg\/projects\/klimatikat-v-apartamenta-pod-nam-sam-spira-pri-otvoren-prozorets\/"
    },
    "modified": "2026-11-25T17:20:36",
    "modified_gmt": "2026-11-25T15:20:36",
    "slug": "klimatikat-v-apartamenta-pod-nam-sam-spira-pri-otvoren-prozorets",
    "status": "publish",
    "type": "diy_project",
    "link": "https:\/\/realhomeautomations.com\/en\/projects\/klimatikat-v-apartamenta-pod-nam-sam-spira-pri-otvoren-prozorets\/",
    "title": {
        "rendered": "The air conditioner in the rental apartment stops by itself when a window is open and starts when it&#8217;s closed"
    },
    "content": {
        "rendered": "<p class=\"wp-block-paragraph\">A guest turns on the AC and opens the balcony to air the room. The AC runs all day against an open window. The electricity bill is yours, and the room does not cool. A window sensor can stop the AC while it is open and bring it back after it closes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What you will get<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The AC switches off when the window has been open for more than a set time, and returns to its previous state when the window closes. If the guest or you have stopped it by hand during that time, the automation <strong>does not start it by itself<\/strong>. A notification tells you that the window was open.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What we need<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>1 unit <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> for every window you want to track: Zigbee 3.0, CR2477 battery.<\/li><li>An AC that has already been added to Home Assistant as a <code>climate<\/code> entity. The AC is not part of the product.<\/li><li>A working 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<p class=\"wp-block-paragraph\">Time: 45\u201390 minutes. No electrical installation is touched and the AC is not changed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How it works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The first trigger is &#8220;the window is open for N minutes&#8221; (at Simeon&#8217;s apartment it is 2 hours). The automation saves the AC&#8217;s state with <code>scene.create<\/code>, then switches it off. The second trigger is &#8220;the window is closed&#8221;. If the AC is off, it restores the saved state. If the guest has started it by hand, it does not interfere.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At Simeon&#8217;s apartment the air conditioners are Mitsubishi Electric units controlled through MELCloud Home (the cloud); Home Assistant shows the current temperature and the monthly consumption. A window or a terrace door that stays open for 2 hours stops the air conditioner of that room, and its old mode comes back when everything in the room has been closed for 1 minute.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Fit the sensor on the sash and the frame of the window. Pair it. You expect <code>binary_sensor<\/code>, which is <code>on<\/code> when the window is open.<\/li><li>Check that the AC is a <code>climate<\/code> entity and that the switch-off and switch-on commands work.<\/li><li>The automation (the entity IDs are examples):<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: AC - stop when a window is open\nmode: restart\ntriggers:\n  - trigger: state\n    entity_id: binary_sensor.window_living\n    to: \"on\"\n    for: \"02:00:00\"\n    id: open\n  - trigger: state\n    entity_id: binary_sensor.window_living\n    to: \"off\"\n    id: closed\nactions:\n  - choose:\n      - conditions:\n          - condition: trigger\n            id: open\n          - condition: not\n            conditions:\n              - condition: state\n                entity_id: climate.living_ac\n                state: \"off\"\n        sequence:\n          - action: scene.create\n            data:\n              scene_id: ac_before_window\n              snapshot_entities:\n                - climate.living_ac\n          - action: climate.turn_off\n            target:\n              entity_id: climate.living_ac\n          - action: notify.mobile_app_your_phone\n            data:\n              message: The window is open. The AC has been stopped.\n      - conditions:\n          - condition: trigger\n            id: closed\n          - condition: state\n            entity_id: climate.living_ac\n            state: \"off\"\n        sequence:\n          - action: scene.turn_on\n            target:\n              entity_id: scene.ac_before_window<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\"><li>Save and try it with a window, temporarily reducing <code>for<\/code> to 20 seconds.<\/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>Start the AC, open the window and wait: the AC stops and a notification arrives.<\/li><li>Close the window: the AC returns to the saved mode.<\/li><li>Stop the AC by hand while the window is closed, then open and close it: the AC must not start.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">If it does not work<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Nothing triggers \u2192 a different entity name \u2192 check the entity ID.<\/li><li>The AC returns in a different mode \u2192 <code>scene.create<\/code> has not saved everything \u2192 check the AC&#8217;s attributes.<\/li><li>It comes back when the guest switched it off \u2192 the state condition did not trigger \u2192 review the second block.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Limitations<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>If Home Assistant goes down while the AC is stopped, it stays stopped until you start it.<\/li><li>If you restart Home Assistant, the saved scene is lost (<code>scene.create<\/code> is temporary).<\/li><li>The automation does not know whether the AC was stopped by the automation or by the guest, except by its state after closing. Review the logic for your case.<\/li><li>Warn the guests in the check-in instructions that the AC stops when a window is open.<\/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\">Checked against the documentation on 22.11.2026.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/scene\/#create-a-scene-on-the-fly\">Home Assistant: Scene (scene.create)<\/a><\/li><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/climate\/\">Home Assistant: Climate<\/a><\/li><li><a href=\"https:\/\/www.home-assistant.io\/docs\/scripts\/conditions\/#trigger-condition\">Home Assistant: Trigger condition (id)<\/a><\/li><\/ul>",
        "protected": false
    },
    "excerpt": {
        "rendered": "<p>A window sensor and an automation in Home Assistant stop the AC when the window stays open, and bring it back when it closes, unless you or the guest stopped it.<\/p>",
        "protected": false
    },
    "author": 0,
    "featured_media": 3628,
    "template": "",
    "diy_project_category": [
        63
    ],
    "diy_project_tag": [
        54,
        53,
        222,
        114
    ],
    "class_list": [
        "post-4255",
        "diy_project",
        "type-diy_project",
        "status-publish",
        "has-post-thumbnail",
        "hentry",
        "diy_project_category-63",
        "diy_project_tag-home-assistant",
        "diy_project_tag-zigbee",
        "diy_project_tag-apartament-pod-naem",
        "diy_project_tag-114"
    ],
    "acf": {
        "_diysmart_difficulty": "intermediate",
        "_diysmart_featured": false,
        "_diysmart_build_duration_min": 45,
        "_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": "A window sensor",
                "note": "Sonoff SNZB-04PR1, 1 unit per window"
            },
            {
                "label": "An AC in Home Assistant",
                "note": "already added as a climate entity; not included in the product"
            },
            {
                "label": "A Zigbee hub or adapter",
                "note": "or Home Assistant with a Zigbee adapter"
            },
            {
                "label": "Home Assistant",
                "note": "with a Zigbee integration (ZHA) or Zigbee2MQTT"
            }
        ],
        "_diysmart_learning_outcomes_rows": [
            {
                "outcome": "Stop the AC when a window is open after a short wait"
            },
            {
                "outcome": "Bring it back only if it was stopped by the automation"
            },
            {
                "outcome": "Not take control away from the guest"
            },
            {
                "outcome": "Get a notification when a window is forgotten"
            }
        ],
        "_diysmart_skill_requirements_rows": [
            {
                "requirement": "Add a Zigbee sensor to Home Assistant",
                "note": ""
            },
            {
                "requirement": "Paste YAML into an automation",
                "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>The air conditioner in the rental apartment stops by itself when a window is open and starts when it&#039;s closed - Real Home Automations<\/title>\n<meta name=\"description\" content=\"A window sensor and an automation in Home Assistant stop the AC when the window stays open, and bring it back when it closes, unless you or the guest stopped 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\/4255\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The air conditioner in the rental apartment stops by itself when a window is open and starts when it&#039;s closed - Real Home Automations\" \/>\n<meta property=\"og:description\" content=\"A window sensor and an automation in Home Assistant stop the AC when the window stays open, and bring it back when it closes, unless you or the guest stopped it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4255\" \/>\n<meta property=\"og:site_name\" content=\"Real Home Automations\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-25T15:20:36+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\\\/rental-ac-stops-when-window-open\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/rental-ac-stops-when-window-open\\\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"The air conditioner in the rental apartment stops by itself when a window is open and starts when it&#8217;s closed\",\"datePublished\":\"2026-11-22T17:17:36+00:00\",\"dateModified\":\"2026-11-25T15:20:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/rental-ac-stops-when-window-open\\\/\"},\"wordCount\":584,\"publisher\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/rental-ac-stops-when-window-open\\\/#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\\\/rental-ac-stops-when-window-open\\\/\",\"url\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/rental-ac-stops-when-window-open\\\/\",\"name\":\"The air conditioner in the rental apartment stops by itself when a window is open and starts when it's closed - Real Home Automations\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/rental-ac-stops-when-window-open\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/rental-ac-stops-when-window-open\\\/#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:17:36+00:00\",\"dateModified\":\"2026-11-25T15:20:36+00:00\",\"description\":\"A window sensor and an automation in Home Assistant stop the AC when the window stays open, and bring it back when it closes, unless you or the guest stopped it.\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/rental-ac-stops-when-window-open\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/realhomeautomations.com\\\/bg\\\/projects\\\/klimatikat-v-apartamenta-pod-nam-sam-spira-pri-otvoren-prozorets\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/rental-ac-stops-when-window-open\\\/#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\\\/rental-ac-stops-when-window-open\\\/#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\":\"The air conditioner in the rental apartment stops by itself when a window is open and starts when it&#8217;s closed\"}]},{\"@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": "The air conditioner in the rental apartment stops by itself when a window is open and starts when it's closed - Real Home Automations",
        "description": "A window sensor and an automation in Home Assistant stop the AC when the window stays open, and bring it back when it closes, unless you or the guest stopped 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\/4255",
        "og_locale": "en_US",
        "og_type": "article",
        "og_title": "The air conditioner in the rental apartment stops by itself when a window is open and starts when it's closed - Real Home Automations",
        "og_description": "A window sensor and an automation in Home Assistant stop the AC when the window stays open, and bring it back when it closes, unless you or the guest stopped it.",
        "og_url": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4255",
        "og_site_name": "Real Home Automations",
        "article_modified_time": "2026-11-25T15:20:36+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\/rental-ac-stops-when-window-open\/#article",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/rental-ac-stops-when-window-open\/"
                    },
                    "author": {
                        "name": "",
                        "@id": ""
                    },
                    "headline": "The air conditioner in the rental apartment stops by itself when a window is open and starts when it&#8217;s closed",
                    "datePublished": "2026-11-22T17:17:36+00:00",
                    "dateModified": "2026-11-25T15:20:36+00:00",
                    "mainEntityOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/rental-ac-stops-when-window-open\/"
                    },
                    "wordCount": 584,
                    "publisher": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#organization"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/rental-ac-stops-when-window-open\/#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\/rental-ac-stops-when-window-open\/",
                    "url": "http:\/\/realhomeautomations.com\/en\/projects\/rental-ac-stops-when-window-open\/",
                    "name": "The air conditioner in the rental apartment stops by itself when a window is open and starts when it's closed - Real Home Automations",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#website"
                    },
                    "primaryImageOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/rental-ac-stops-when-window-open\/#primaryimage"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/rental-ac-stops-when-window-open\/#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:17:36+00:00",
                    "dateModified": "2026-11-25T15:20:36+00:00",
                    "description": "A window sensor and an automation in Home Assistant stop the AC when the window stays open, and bring it back when it closes, unless you or the guest stopped it.",
                    "breadcrumb": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/rental-ac-stops-when-window-open\/#breadcrumb"
                    },
                    "inLanguage": "en-US",
                    "potentialAction": [
                        {
                            "@type": "ReadAction",
                            "target": [
                                "http:\/\/realhomeautomations.com\/bg\/projects\/klimatikat-v-apartamenta-pod-nam-sam-spira-pri-otvoren-prozorets\/"
                            ]
                        }
                    ]
                },
                {
                    "@type": "ImageObject",
                    "inLanguage": "en-US",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/rental-ac-stops-when-window-open\/#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\/rental-ac-stops-when-window-open\/#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": "The air conditioner in the rental apartment stops by itself when a window is open and starts when it&#8217;s closed"
                        }
                    ]
                },
                {
                    "@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\/4255",
                "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\/4255\/revisions"
            }
        ],
        "predecessor-version": [
            {
                "id": 4267,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/4255\/revisions\/4267"
            }
        ],
        "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=4255"
            }
        ],
        "wp:term": [
            {
                "taxonomy": "diy_project_category",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_category?post=4255"
            },
            {
                "taxonomy": "diy_project_tag",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_tag?post=4255"
            }
        ],
        "curies": [
            {
                "name": "wp",
                "href": "https:\/\/api.w.org\/{rel}",
                "templated": true
            }
        ]
    }
}