{
    "id": 67,
    "date": "2026-09-13T17:31:00",
    "date_gmt": "2026-09-13T14:31:00",
    "guid": {
        "rendered": "https:\/\/realhomeautomations.com\/projects\/presence-aware-room-lighting\/"
    },
    "modified": "2026-11-23T18:26:57",
    "modified_gmt": "2026-11-23T16:26:57",
    "slug": "presence-aware-room-lighting",
    "status": "publish",
    "type": "diy_project",
    "link": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/",
    "title": {
        "rendered": "Presence-Aware Room Lighting with Manual Control"
    },
    "content": {
        "rendered": "<p class=\"wp-block-paragraph\"><strong>TL;DR:<\/strong> The lamp turns on when someone is present and turns off once the room stays empty. The wall switch keeps working. And when you want to decide yourself, you stop the automatic mode from Home Assistant.<\/p>\n\n\n<h2 class=\"wp-block-heading\">What you will build<\/h2>\n\n\n<p class=\"wp-block-paragraph\">You&#8217;re sitting on the sofa, reading, and the lamp goes off. According to the sensor, you&#8217;re apparently no longer at home. This small argument with the lighting is exactly what you want to settle.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Pick <strong>Sonoff SNZB-06P<\/strong> for presence and <strong>Shelly 1PM Gen4<\/strong> for the lamp. <strong>Sonoff SNZB-04P<\/strong> adds information on whether the door is open. Home Assistant runs the rules.<\/p>\n\n\n<p class=\"wp-block-paragraph\">The SNZB-06P works with a <strong>5.8 GHz microwave radar<\/strong> and can detect presence from small movements. Its placement and setup matter.<\/p>\n\n\n<p class=\"wp-block-paragraph\">The door sensor only knows &#8220;open&#8221; or &#8220;closed&#8221;. It doesn&#8217;t know who comes in, who goes out and how many people remain inside. That&#8217;s why you won&#8217;t entrust it with the decision of when to turn off.<\/p>\n\n\n<h2 class=\"wp-block-heading\">1. Add and check the sensors<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Before the first setup, make a backup of Home Assistant.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Add the two Sonoff sensors in the Zigbee integration you use, one by one. Name them clearly, for example &#8220;Living room: presence&#8221; and &#8220;Living room: door&#8221;.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Before you fix them in place for good, you check the reported states. You open and close the door, walk into the room and walk out. The changes should show up in Home Assistant.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Align the door contact and the magnet according to the SNZB-04P instructions. First you check the spot, then you stick it. The reverse order usually ends with a search for a new adhesive pad.<\/p>\n\n\n<h2 class=\"wp-block-heading\">2. Check the Shelly and the wall switch<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After installation, you add the relay through the <strong>Shelly<\/strong>. You check whether you can turn the lamp on and off from Home Assistant and from the wall switch.<\/p>\n\n\n<p class=\"wp-block-paragraph\">The switch input must control the relay locally. The <strong>Detached<\/strong> mode separates the input from the output and is not suitable for the independent manual control wanted here.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Choose the right mode for the installed switch or button. Also check the behaviour after a power cut and restoration.<\/p>\n\n\n<h2 class=\"wp-block-heading\">3. Find the right spot for presence<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Point the SNZB-06P at the place where you actually sit. You test with a book, a laptop and a TV, not just by waving in front of it. The lamp has to put up with you even when you&#8217;re not doing anything interesting.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Then you leave the room empty. Moving curtains, a fan or a pet can cause unwanted detection. The radar can also pass through some non-metal partitions.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Change the position and the settings available in your Zigbee integration. Don&#8217;t assume every integration shows the same controls. First fix the detection, then add the automation.<\/p>\n\n\n<h2 class=\"wp-block-heading\">4. Make two clear automations<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Start with two separate rules: one for turning on and one for turning off. That way it&#8217;s easier to understand which one fired and why.<\/p>\n\n\n<h3 class=\"wp-block-heading\">When you turn on<\/h3>\n\n\n<ul class=\"wp-block-list\"><li><strong>Trigger:<\/strong> the sensor switches to &#8220;presence detected&#8221;.<\/li><li><strong>Conditions:<\/strong> automatic mode is on and light is needed. For a first trial you can use &#8220;after sunset&#8221;; this won&#8217;t cover a dark room during the day.<\/li><li><strong>Action:<\/strong> you turn on the Shelly output the lamp is connected to.<\/li><\/ul>\n\n\n<p class=\"wp-block-paragraph\">If you use an illuminance reading, first check what the integration provides and when it updates it. Don&#8217;t set an arbitrary lux threshold on a sensor that only reports &#8220;light\/dark&#8221;.<\/p>\n\n\n<h3 class=\"wp-block-heading\">When you turn off<\/h3>\n\n\n<ul class=\"wp-block-list\"><li><strong>Trigger:<\/strong> the sensor is continuously in &#8220;no presence&#8221; for the chosen time.<\/li><li><strong>Condition:<\/strong> automatic mode is on.<\/li><li><strong>Action:<\/strong> you turn off the same Shelly output.<\/li><\/ul>\n\n\n<p class=\"wp-block-paragraph\"><strong>Three minutes is a starting trial, not a universal setting.<\/strong> To that you add the time the sensor itself takes to report the release. With new presence, the wait has to start over.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Choose the specific state for no presence, not &#8220;anything other than occupied&#8221;. <strong>An unavailable sensor does not mean an empty room.<\/strong><\/p>\n\n\n<p class=\"wp-block-paragraph\">The door stays an add-on. If you like, opening it can turn on the lamp under the same conditions. But then it will also light up when you leave. Closing is not a command to turn off.<\/p>\n\n\n<h2 class=\"wp-block-heading\">5. Leave the last word to the person<\/h2>\n\n\n<p class=\"wp-block-paragraph\">In <strong>Settings \u2192 Devices &amp; services \u2192 Helpers<\/strong> you create a <strong>Toggle<\/strong> helper named &#8220;Automatic lighting: living room&#8221;. Add it as a condition in both rules from the previous step.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Put the switch on the shared dashboard. When you want manual mode, first turn it off, then use the wall switch. The automations will no longer change the lighting.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Pressing the wall switch itself <strong>does not turn off automatic mode<\/strong> in this project. Without this arrangement, the person and the automation would toss the lamp back and forth like a ball.<\/p>\n\n\n<p class=\"wp-block-paragraph\">When automatic mode is turned back on, these simple rules wait for the next event from the sensor. They don&#8217;t immediately change the lamp&#8217;s current state.<\/p>\n\n\n<h2 class=\"wp-block-heading\">6. Check with a normal day at home<\/h2>\n\n\n<ul class=\"wp-block-list\"><li>Walk in after dark and check the turn-on. Repeat during the day, when the light condition should stop it.<\/li><li>You sit calmly for at least a few minutes. The lamp must not go off because of a lack of large movements.<\/li><li>Leave, then come back before the wait ends. Check that the old wait doesn&#8217;t turn the lamp off.<\/li><li>Stop automatic mode and use the wall switch. The rules must not override your choice.<\/li><li>At a convenient time you stop Home Assistant and check the local wall switch. Then you restore the system and check the sensors.<\/li><\/ul>\n\n\n<p class=\"wp-block-paragraph\">A wait with <strong>for<\/strong> is not preserved when Home Assistant restarts or the automations are reloaded. After such a case you check the lamp; you don&#8217;t rely on the old countdown to finish turning it off.<\/p>\n\n\n<p class=\"wp-block-paragraph\">If something fires unexpectedly, you open the automation&#8217;s trace and the sensor&#8217;s history. That way you tell a wrong detection from a wrong rule, instead of changing five settings at once.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Sources<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Description based on the official documentation. The suggested rules are an example setup, not a report from a physical test of this kit with the Shelly 1PM Gen4. What actually works at Marto&#8217;s is described in &#8220;At home&#8221; at the beginning.<\/p>\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/support.sonoff.tech\/snzb-06p-usermanual\/\">SONOFF SNZB-06P: power, radar and placement<\/a><\/li><li><a href=\"https:\/\/kb.shelly.cloud\/knowledge-base\/shelly-1pm-gen4\">Shelly 1PM Gen4: device and requirements<\/a><\/li><li><a href=\"https:\/\/kb.shelly.cloud\/knowledge-base\/shelly-1pm-gen4-web-interface-guide\">Shelly: input modes and local control<\/a><\/li><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/shelly\/\">Home Assistant: Shelly integration<\/a><\/li><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/input_boolean\/\">Home Assistant: Toggle helper<\/a><\/li><li><a href=\"https:\/\/www.home-assistant.io\/docs\/automation\/condition\/\">Home Assistant: conditions<\/a><\/li><li><a href=\"https:\/\/www.home-assistant.io\/docs\/automation\/trigger\/\">Home Assistant: triggers and waiting with for<\/a><\/li><li><a href=\"https:\/\/community.home-assistant.io\/t\/481048\">Blackshome: Sensor Light blueprint, used in our kitchen<\/a><\/li><\/ul>",
        "protected": false
    },
    "excerpt": {
        "rendered": "<p>The lighting follows presence, and the wall switch keeps doing its job. You set up the sensors, two automations and an easy manual mode.<\/p>",
        "protected": false
    },
    "author": 1,
    "featured_media": 44,
    "template": "",
    "diy_project_category": [
        52
    ],
    "diy_project_tag": [
        54,
        55,
        53
    ],
    "class_list": [
        "post-67",
        "diy_project",
        "type-diy_project",
        "status-publish",
        "has-post-thumbnail",
        "hentry",
        "diy_project_category-lighting",
        "diy_project_tag-home-assistant",
        "diy_project_tag-presence",
        "diy_project_tag-zigbee"
    ],
    "acf": {
        "_diysmart_difficulty": "intermediate",
        "_diysmart_featured": true,
        "_diysmart_build_duration_min": 2,
        "_diysmart_build_duration_max": 3,
        "_diysmart_build_duration_unit": "hours",
        "_diysmart_home_assistant": "yes",
        "_diysmart_works_offline": "",
        "_diysmart_electrician": "yes",
        "_diysmart_reading_time_override": 0,
        "_diysmart_required_tools_rows": [
            {
                "label": "A Zigbee hub or Home Assistant with a Zigbee adapter is needed.",
                "note": "for the Sonoff SNZB-06P and SNZB-04P sensors; the Shelly relay is over Wi-Fi"
            },
            {
                "label": "USB-C power supply 5 V \/ 1 A for the SNZB-06P",
                "note": ""
            },
            {
                "label": "Wi-Fi network for the Shelly",
                "note": ""
            }
        ],
        "_diysmart_learning_outcomes_rows": [
            {
                "outcome": "Point the radar sensor at the place where you sit and test it with a book, a laptop and a TV"
            },
            {
                "outcome": "Make two separate automations: one for turning on when presence is detected and one for turning off after a wait"
            },
            {
                "outcome": "Stop the automatic mode from Home Assistant without losing the wall switch"
            },
            {
                "outcome": "Find out from the automation trace and the sensor history why the lamp fired"
            }
        ],
        "_diysmart_skill_requirements_rows": [
            {
                "requirement": "Add devices in Home Assistant through the Zigbee and Shelly integration",
                "note": ""
            },
            {
                "requirement": "Create an automation with a trigger, a condition and an action",
                "note": ""
            },
            {
                "requirement": "Create a Toggle helper and use it as a condition",
                "note": ""
            },
            {
                "requirement": "Read a sensor's history in Home Assistant",
                "note": ""
            }
        ],
        "_diysmart_at_home": {
            "who": "Marto",
            "since": "2025-03",
            "story": "In the bathroom and the kitchen, our lighting follows presence and both automations are on. In the kitchen it's the Sonoff SNZB-06P through ZHA: automation.kitchen_occupancy_turns_lights_on uses the ready-made Sensor Light blueprint by Blackshome and turns the LED strip off 5 minutes after presence ends (created in June 2026). In the bathroom it's the Aqara Presence Sensor FP300: automation.motion_activated_bathroom_lights_2 turns the lamp on at 11 % brightness during the night period, 35 % after sunset and 60 % during the day, and turns it off with a 9-second fade as soon as the sensor reports \"no presence\". The bathroom has no switch for automatic mode, so we haven't tested the manual mode from step 5 there.",
            "image": null,
            "caption": ""
        },
        "_diysmart_linked_product_id": 64,
        "_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>Presence-Aware Room Lighting with Manual Control - Real Home Automations<\/title>\n<meta name=\"description\" content=\"The lighting follows presence, and the wall switch keeps doing its job. You set up the sensors, two automations and an easy manual mode.\" \/>\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\/67\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Presence-Aware Room Lighting with Manual Control - Real Home Automations\" \/>\n<meta property=\"og:description\" content=\"The lighting follows presence, and the wall switch keeps doing its job. You set up the sensors, two automations and an easy manual mode.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/67\" \/>\n<meta property=\"og:site_name\" content=\"Real Home Automations\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-23T16:26:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"1200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/\"},\"author\":{\"name\":\"Real Home Automations\",\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/#\\\/schema\\\/person\\\/762335b7812ecb9e45d2ce88eefb48b2\"},\"headline\":\"Presence-Aware Room Lighting with Manual Control\",\"datePublished\":\"2026-09-13T14:31:00+00:00\",\"dateModified\":\"2026-11-23T16:26:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/\"},\"wordCount\":1092,\"publisher\":{\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/wifishop-sonoff-snzb-06p.webp\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/\",\"url\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/\",\"name\":\"Presence-Aware Room Lighting with Manual Control - Real Home Automations\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/wifishop-sonoff-snzb-06p.webp\",\"datePublished\":\"2026-09-13T14:31:00+00:00\",\"dateModified\":\"2026-11-23T16:26:57+00:00\",\"description\":\"The lighting follows presence, and the wall switch keeps doing its job. You set up the sensors, two automations and an easy manual mode.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/realhomeautomations.com\\\/bg\\\/projects\\\/presence-aware-room-lighting\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#primaryimage\",\"url\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/wifishop-sonoff-snzb-06p.webp\",\"contentUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/wifishop-sonoff-snzb-06p.webp\",\"width\":900,\"height\":1200,\"caption\":\"Sonoff SNZB-06P Zigbee Presence Sensor\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Projects\",\"item\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Presence-Aware Room Lighting with Manual Control\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/\",\"name\":\"Real Home Automations\",\"description\":\"Open smart-home products and complete DIY projects\",\"publisher\":{\"@id\":\"https:\\\/\\\/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\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/#organization\",\"name\":\"Real Home Automations\",\"url\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/realhomeautomations.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/RHA-brand-symbol-20261128.webp\",\"contentUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/RHA-brand-symbol-20261128.webp\",\"width\":512,\"height\":512,\"caption\":\"Real Home Automations\"},\"image\":{\"@id\":\"https:\\\/\\\/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\":\"https:\\\/\\\/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": "Presence-Aware Room Lighting with Manual Control - Real Home Automations",
        "description": "The lighting follows presence, and the wall switch keeps doing its job. You set up the sensors, two automations and an easy manual mode.",
        "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\/67",
        "og_locale": "en_US",
        "og_type": "article",
        "og_title": "Presence-Aware Room Lighting with Manual Control - Real Home Automations",
        "og_description": "The lighting follows presence, and the wall switch keeps doing its job. You set up the sensors, two automations and an easy manual mode.",
        "og_url": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/67",
        "og_site_name": "Real Home Automations",
        "article_modified_time": "2026-11-23T16:26:57+00:00",
        "og_image": [
            {
                "width": 900,
                "height": 1200,
                "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.webp",
                "type": "image\/jpeg"
            }
        ],
        "twitter_card": "summary_large_image",
        "twitter_misc": {
            "Est. reading time": "5 minutes"
        },
        "schema": {
            "@context": "https:\/\/schema.org",
            "@graph": [
                {
                    "@type": "TechArticle",
                    "@id": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#article",
                    "isPartOf": {
                        "@id": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/"
                    },
                    "author": {
                        "name": "Real Home Automations",
                        "@id": "https:\/\/realhomeautomations.com\/en\/#\/schema\/person\/762335b7812ecb9e45d2ce88eefb48b2"
                    },
                    "headline": "Presence-Aware Room Lighting with Manual Control",
                    "datePublished": "2026-09-13T14:31:00+00:00",
                    "dateModified": "2026-11-23T16:26:57+00:00",
                    "mainEntityOfPage": {
                        "@id": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/"
                    },
                    "wordCount": 1092,
                    "publisher": {
                        "@id": "https:\/\/realhomeautomations.com\/en\/#organization"
                    },
                    "image": {
                        "@id": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#primaryimage"
                    },
                    "thumbnailUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.webp",
                    "inLanguage": "en-US"
                },
                {
                    "@type": "WebPage",
                    "@id": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/",
                    "url": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/",
                    "name": "Presence-Aware Room Lighting with Manual Control - Real Home Automations",
                    "isPartOf": {
                        "@id": "https:\/\/realhomeautomations.com\/en\/#website"
                    },
                    "primaryImageOfPage": {
                        "@id": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#primaryimage"
                    },
                    "image": {
                        "@id": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#primaryimage"
                    },
                    "thumbnailUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.webp",
                    "datePublished": "2026-09-13T14:31:00+00:00",
                    "dateModified": "2026-11-23T16:26:57+00:00",
                    "description": "The lighting follows presence, and the wall switch keeps doing its job. You set up the sensors, two automations and an easy manual mode.",
                    "breadcrumb": {
                        "@id": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#breadcrumb"
                    },
                    "inLanguage": "en-US",
                    "potentialAction": [
                        {
                            "@type": "ReadAction",
                            "target": [
                                "https:\/\/realhomeautomations.com\/bg\/projects\/presence-aware-room-lighting\/"
                            ]
                        }
                    ]
                },
                {
                    "@type": "ImageObject",
                    "inLanguage": "en-US",
                    "@id": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#primaryimage",
                    "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.webp",
                    "contentUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.webp",
                    "width": 900,
                    "height": 1200,
                    "caption": "Sonoff SNZB-06P Zigbee Presence Sensor"
                },
                {
                    "@type": "BreadcrumbList",
                    "@id": "https:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#breadcrumb",
                    "itemListElement": [
                        {
                            "@type": "ListItem",
                            "position": 1,
                            "name": "Home",
                            "item": "https:\/\/realhomeautomations.com\/en\/"
                        },
                        {
                            "@type": "ListItem",
                            "position": 2,
                            "name": "Projects",
                            "item": "https:\/\/realhomeautomations.com\/en\/projects\/"
                        },
                        {
                            "@type": "ListItem",
                            "position": 3,
                            "name": "Presence-Aware Room Lighting with Manual Control"
                        }
                    ]
                },
                {
                    "@type": "WebSite",
                    "@id": "https:\/\/realhomeautomations.com\/en\/#website",
                    "url": "https:\/\/realhomeautomations.com\/en\/",
                    "name": "Real Home Automations",
                    "description": "Open smart-home products and complete DIY projects",
                    "publisher": {
                        "@id": "https:\/\/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": "https:\/\/realhomeautomations.com\/en\/#organization",
                    "name": "Real Home Automations",
                    "url": "https:\/\/realhomeautomations.com\/en\/",
                    "logo": {
                        "@type": "ImageObject",
                        "inLanguage": "en-US",
                        "@id": "https:\/\/realhomeautomations.com\/en\/#\/schema\/logo\/image\/",
                        "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/11\/RHA-brand-symbol-20261128.webp",
                        "contentUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/11\/RHA-brand-symbol-20261128.webp",
                        "width": 512,
                        "height": 512,
                        "caption": "Real Home Automations"
                    },
                    "image": {
                        "@id": "https:\/\/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": "https:\/\/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\/67",
                "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\/67\/revisions"
            }
        ],
        "predecessor-version": [
            {
                "id": 4369,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/67\/revisions\/4369"
            }
        ],
        "acf:post": [
            {
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/product\/64"
            }
        ],
        "wp:featuredmedia": [
            {
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/media\/44"
            }
        ],
        "wp:attachment": [
            {
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/media?parent=67"
            }
        ],
        "wp:term": [
            {
                "taxonomy": "diy_project_category",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_category?post=67"
            },
            {
                "taxonomy": "diy_project_tag",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_tag?post=67"
            }
        ],
        "curies": [
            {
                "name": "wp",
                "href": "https:\/\/api.w.org\/{rel}",
                "templated": true
            }
        ]
    }
}