{
    "id": 91,
    "date": "2026-09-13T22:46:57",
    "date_gmt": "2026-09-13T19:46:57",
    "guid": {
        "rendered": "http:\/\/realhomeautomations.com\/bg\/projects\/tema-06\/"
    },
    "modified": "2026-11-23T18:24:04",
    "modified_gmt": "2026-11-23T16:24:04",
    "slug": "edin-klyuch-mnogo-deystvia-stennite-klyuchove-stavat-butoni-za-stseni",
    "status": "publish",
    "type": "diy_project",
    "link": "https:\/\/realhomeautomations.com\/en\/projects\/edin-klyuch-mnogo-deystvia-stennite-klyuchove-stavat-butoni-za-stseni\/",
    "title": {
        "rendered": "One switch, many actions: wall switches become scene buttons"
    },
    "content": {
        "rendered": "<p class=\"wp-block-paragraph\">The wall switch in the living room turns on one lamp, but you want to use it to launch a whole scene: evening lighting, &#8220;everything off&#8221; or &#8220;good night&#8221;. The &#8220;Detach Relay&#8221; mode of the Sonoff MINIR4 separates the switch from the relay: pressing the switch sends a signal but doesn&#8217;t change the relay.<\/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 switch on the wall that launches a scene while the relay stays powered and controlled by the app. The project covers the mode in which <strong>the switch no longer turns on its own lamp<\/strong>.<\/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-wifi-relay-sonoff-minir4-10a-1-channel\/\">Sonoff MINIR4<\/a> \u2014 10 A Wi-Fi relay, neutral wire is required.<\/li><li>2.4 GHz Wi-Fi and the eWeLink app.<\/li><li>Sonoff relay to install behind the switch.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How it works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sonoff describes it like this: with &#8220;Detach Relay Mode&#8221; on, the state of the external switch and of the relay are separated, and pressing the switch doesn&#8217;t change the relay. eWeLink adds an extra scene condition, &#8220;external switch (press)&#8221;, and the action can be turn on, turn off or toggle for other devices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Advantage: if the lamp is a smart bulb, it stays powered and always online. Cost: if Wi-Fi or the system goes down, the switch doesn&#8217;t turn anything on.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How it is at our place<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Marto&#8217;s Home Assistant has seven Sonoff MINIR4 relays.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">No neutral or earth is connected to S1 and S2. You make the settings below after installation.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Install the relay behind the switch and check that the switch turns the lamp on and off in normal mode.<\/li><li>Add the relay to eWeLink. You should see a device with an on\/off switch.<\/li><li>In the device settings, turn on &#8220;Detach Relay&#8221; (Device Settings \u2192 Switch Mode).<\/li><li>Create a scene in eWeLink: condition \u2014 the external switch is pressed; action \u2014 turn other devices on, off or toggle them (for example, an evening scene).<\/li><li>If you use Home Assistant, how the switch press shows up there depends on the Sonoff integration. Build the scene in eWeLink first.<\/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>Press the switch: the relay in the circuit should not change from the switch alone.<\/li><li>The scene should run.<\/li><li>Turn Wi-Fi off for a few minutes: the switch does nothing. That is how you know what happens in a failure.<\/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 lamp still reacts to the switch \u2192 &#8220;Detach Relay&#8221; is not on \u2192 check the setting.<\/li><li>The scene doesn&#8217;t run \u2192 the external switch condition appears only when Detach Relay is on \u2192 turn the mode on and create the scene again.<\/li><li>The switch doesn&#8217;t turn the lamp on by itself \u2192 that is by design in this mode.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Limitations<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>In detached mode the switch doesn&#8217;t turn the lamp on. For a room that must always have light, keep the normal mode.<\/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 Sonoff documentation, 22.11.2026.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/help.sonoff.tech\/docs\/minir4\">SONOFF: MINIR4, Detach Relay Mode, scenes, specification and FAQ<\/a><\/li><li><a href=\"https:\/\/sonoff.tech\/en-us\/blogs\/news\/understanding-sonoff-detach-relay-mode-how-it-works-use-cases\">SONOFF: Understanding Detach Relay Mode<\/a><\/li><\/ul>",
        "protected": false
    },
    "excerpt": {
        "rendered": "<p>The \u201cDetach Relay\u201d mode of the Sonoff MINIR4 separates the wall switch from the relay and turns it into a scene button in eWeLink. We explain how it works and what you give up: the switch no longer turns on its own lamp.<\/p>",
        "protected": false
    },
    "author": 1,
    "featured_media": 816,
    "template": "",
    "diy_project_category": [
        52
    ],
    "diy_project_tag": [
        157,
        153,
        155
    ],
    "class_list": [
        "post-91",
        "diy_project",
        "type-diy_project",
        "status-publish",
        "has-post-thumbnail",
        "hentry",
        "diy_project_category-lighting",
        "diy_project_tag-sonoff",
        "diy_project_tag-rele",
        "diy_project_tag-stseni"
    ],
    "acf": {
        "_diysmart_difficulty": "intermediate",
        "_diysmart_featured": false,
        "_diysmart_build_duration_min": 30,
        "_diysmart_build_duration_max": 60,
        "_diysmart_build_duration_unit": "minutes",
        "_diysmart_home_assistant": "optional",
        "_diysmart_works_offline": "",
        "_diysmart_electrician": "yes",
        "_diysmart_reading_time_override": "",
        "_diysmart_required_tools_rows": [
            {
                "label": "Sonoff MINIR4",
                "note": "10 A Wi-Fi relay, neutral wire required"
            },
            {
                "label": "2.4 GHz Wi-Fi and the eWeLink app",
                "note": ""
            },
            {
                "label": "10 A circuit breaker ahead of the relay",
                "note": ""
            }
        ],
        "_diysmart_learning_outcomes_rows": [
            {
                "outcome": "Understand what the Detach Relay mode does"
            },
            {
                "outcome": "Turn the mode on and create a scene triggered by the switch"
            },
            {
                "outcome": "Know what happens to the switch when the system goes down"
            }
        ],
        "_diysmart_skill_requirements_rows": [
            {
                "requirement": "Add a device in the eWeLink app",
                "note": ""
            },
            {
                "requirement": "Create a scene with a condition and an action",
                "note": ""
            }
        ],
        "_diysmart_at_home": {
            "who": "Marto",
            "since": "2025-02 (the Sonoff integration in Home Assistant)",
            "story": "Home Assistant has seven Sonoff MINIR4 relays. We don't use the \"Detach Relay\" mode or a switch as a scene button in any automation (as of 19.10.2026).",
            "image": "",
            "caption": ""
        },
        "_diysmart_linked_product_id": 815,
        "_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>One switch, many actions: wall switches become scene buttons - Real Home Automations<\/title>\n<meta name=\"description\" content=\"The \u201cDetach Relay\u201d mode of the Sonoff MINIR4 separates the wall switch from the relay and turns it into a scene button in eWeLink. We explain how it works and what you give up: the switch no longer turns on its own lamp.\" \/>\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\/91\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"One switch, many actions: wall switches become scene buttons - Real Home Automations\" \/>\n<meta property=\"og:description\" content=\"The \u201cDetach Relay\u201d mode of the Sonoff MINIR4 separates the wall switch from the relay and turns it into a scene button in eWeLink. We explain how it works and what you give up: the switch no longer turns on its own lamp.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/91\" \/>\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-wifi-relay-sonoff-minir4-10a-1-channel.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"430\" \/>\n\t<meta property=\"og:image:height\" content=\"367\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/\"},\"author\":{\"name\":\"Real Home Automations\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#\\\/schema\\\/person\\\/762335b7812ecb9e45d2ce88eefb48b2\"},\"headline\":\"One switch, many actions: wall switches become scene buttons\",\"datePublished\":\"2026-09-13T19:46:57+00:00\",\"dateModified\":\"2026-11-23T16:24:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/\"},\"wordCount\":494,\"publisher\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smart-wifi-relay-sonoff-minir4-10a-1-channel.webp\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/\",\"url\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/\",\"name\":\"One switch, many actions: wall switches become scene buttons - Real Home Automations\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smart-wifi-relay-sonoff-minir4-10a-1-channel.webp\",\"datePublished\":\"2026-09-13T19:46:57+00:00\",\"dateModified\":\"2026-11-23T16:24:04+00:00\",\"description\":\"The \u201cDetach Relay\u201d mode of the Sonoff MINIR4 separates the wall switch from the relay and turns it into a scene button in eWeLink. We explain how it works and what you give up: the switch no longer turns on its own lamp.\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/realhomeautomations.com\\\/bg\\\/projects\\\/edin-klyuch-mnogo-deystvia-stennite-klyuchove-stavat-butoni-za-stseni\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/#primaryimage\",\"url\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smart-wifi-relay-sonoff-minir4-10a-1-channel.webp\",\"contentUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smart-wifi-relay-sonoff-minir4-10a-1-channel.webp\",\"width\":430,\"height\":367,\"caption\":\"Smart WiFi relay Sonoff MINIR4, 10A, 1 channel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/wall-switches-as-scene-buttons\\\/#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\":\"One switch, many actions: wall switches become scene buttons\"}]},{\"@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": "One switch, many actions: wall switches become scene buttons - Real Home Automations",
        "description": "The \u201cDetach Relay\u201d mode of the Sonoff MINIR4 separates the wall switch from the relay and turns it into a scene button in eWeLink. We explain how it works and what you give up: the switch no longer turns on its own lamp.",
        "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\/91",
        "og_locale": "en_US",
        "og_type": "article",
        "og_title": "One switch, many actions: wall switches become scene buttons - Real Home Automations",
        "og_description": "The \u201cDetach Relay\u201d mode of the Sonoff MINIR4 separates the wall switch from the relay and turns it into a scene button in eWeLink. We explain how it works and what you give up: the switch no longer turns on its own lamp.",
        "og_url": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/91",
        "og_site_name": "Real Home Automations",
        "article_modified_time": "2026-11-23T16:24:04+00:00",
        "og_image": [
            {
                "width": 430,
                "height": 367,
                "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-wifi-relay-sonoff-minir4-10a-1-channel.webp",
                "type": "image\/jpeg"
            }
        ],
        "twitter_card": "summary_large_image",
        "twitter_misc": {
            "Est. reading time": "2 minutes"
        },
        "schema": {
            "@context": "https:\/\/schema.org",
            "@graph": [
                {
                    "@type": "TechArticle",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/#article",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/"
                    },
                    "author": {
                        "name": "Real Home Automations",
                        "@id": "http:\/\/realhomeautomations.com\/en\/#\/schema\/person\/762335b7812ecb9e45d2ce88eefb48b2"
                    },
                    "headline": "One switch, many actions: wall switches become scene buttons",
                    "datePublished": "2026-09-13T19:46:57+00:00",
                    "dateModified": "2026-11-23T16:24:04+00:00",
                    "mainEntityOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/"
                    },
                    "wordCount": 494,
                    "publisher": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#organization"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/#primaryimage"
                    },
                    "thumbnailUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-wifi-relay-sonoff-minir4-10a-1-channel.webp",
                    "inLanguage": "en-US"
                },
                {
                    "@type": "WebPage",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/",
                    "url": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/",
                    "name": "One switch, many actions: wall switches become scene buttons - Real Home Automations",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#website"
                    },
                    "primaryImageOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/#primaryimage"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/#primaryimage"
                    },
                    "thumbnailUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-wifi-relay-sonoff-minir4-10a-1-channel.webp",
                    "datePublished": "2026-09-13T19:46:57+00:00",
                    "dateModified": "2026-11-23T16:24:04+00:00",
                    "description": "The \u201cDetach Relay\u201d mode of the Sonoff MINIR4 separates the wall switch from the relay and turns it into a scene button in eWeLink. We explain how it works and what you give up: the switch no longer turns on its own lamp.",
                    "breadcrumb": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/#breadcrumb"
                    },
                    "inLanguage": "en-US",
                    "potentialAction": [
                        {
                            "@type": "ReadAction",
                            "target": [
                                "http:\/\/realhomeautomations.com\/bg\/projects\/edin-klyuch-mnogo-deystvia-stennite-klyuchove-stavat-butoni-za-stseni\/"
                            ]
                        }
                    ]
                },
                {
                    "@type": "ImageObject",
                    "inLanguage": "en-US",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/#primaryimage",
                    "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-wifi-relay-sonoff-minir4-10a-1-channel.webp",
                    "contentUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/smart-wifi-relay-sonoff-minir4-10a-1-channel.webp",
                    "width": 430,
                    "height": 367,
                    "caption": "Smart WiFi relay Sonoff MINIR4, 10A, 1 channel"
                },
                {
                    "@type": "BreadcrumbList",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/wall-switches-as-scene-buttons\/#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": "One switch, many actions: wall switches become scene buttons"
                        }
                    ]
                },
                {
                    "@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\/91",
                "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\/91\/revisions"
            }
        ],
        "predecessor-version": [
            {
                "id": 4336,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/91\/revisions\/4336"
            }
        ],
        "acf:post": [
            {
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/product\/815"
            }
        ],
        "wp:featuredmedia": [
            {
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/media\/816"
            }
        ],
        "wp:attachment": [
            {
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/media?parent=91"
            }
        ],
        "wp:term": [
            {
                "taxonomy": "diy_project_category",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_category?post=91"
            },
            {
                "taxonomy": "diy_project_tag",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_tag?post=91"
            }
        ],
        "curies": [
            {
                "name": "wp",
                "href": "https:\/\/api.w.org\/{rel}",
                "templated": true
            }
        ]
    }
}