{
    "id": 67,
    "date": "2026-10-17T02:27:53",
    "date_gmt": "2026-10-16T23:27:53",
    "guid": {
        "rendered": "https:\/\/realhomeautomations.com\/projects\/presence-aware-room-lighting\/"
    },
    "modified": "2026-10-17T02:27:53",
    "modified_gmt": "2026-10-16T23:27:53",
    "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": "<h2 class=\"wp-block-heading\">What you will build<\/h2>\n<p class=\"wp-block-paragraph\">This project combines a Shelly 1PM Gen4 relay, Sonoff SNZB-06P presence sensor and Sonoff SNZB-04P door sensor. The mmWave sensor keeps the room occupied during quiet work, the contact supplies a reliable entry event, and the relay preserves physical wall-switch control while measuring the lighting circuit.<\/p>\n<h2 class=\"wp-block-heading\">Before you start<\/h2>\n<ul class=\"wp-block-list\"><li>Confirm that Home Assistant, a supported Zigbee coordinator and current backups are available. The coordinator and USB-C supply are not included in the kit.<\/li><li>Check that the Shelly fits the enclosure and that the supply, neutral, circuit protection and lighting load meet its requirements.<\/li><li>Isolate and prove the circuit dead before relay work. Use a qualified electrician where required.<\/li><li>Choose a presence-sensor position away from moving curtains, fans and detection through thin walls.<\/li><\/ul>\n<h2 class=\"wp-block-heading\">1. Pair and name the sensors<\/h2>\n<p class=\"wp-block-paragraph\">Pair the presence and door sensors one at a time. Use names such as Office presence and Office door, then verify occupied, clear, open and closed states before mounting. Align the door sensor and magnet within the manufacturer tolerance.<\/p>\n<h2 class=\"wp-block-heading\">2. Install and verify the Shelly relay<\/h2>\n<p class=\"wp-block-paragraph\">Have the Shelly installed according to its wiring diagram. Add it to Home Assistant using one supported local integration, name the controlled entity Office light, and verify the wall switch and Home Assistant can each turn the circuit on and off.<\/p>\n<h2 class=\"wp-block-heading\">3. Tune presence before automating<\/h2>\n<p class=\"wp-block-paragraph\">Observe the sensor for a full day. Confirm it detects someone seated at the desk, clears when the room is empty, and ignores movement outside the intended zone. Fix placement or sensitivity before compensating with long automation delays.<\/p>\n<h2 class=\"wp-block-heading\">4. Build two simple automations<\/h2>\n<ul class=\"wp-block-list\"><li>Turn the light on when presence changes to occupied and the room is expected to be dark.<\/li><li>Also evaluate the on condition when the door opens so entry feels immediate.<\/li><li>Turn the light off only when presence remains clear for three minutes.<\/li><li>Do not use a closed door as proof that the room is empty.<\/li><\/ul>\n<h2 class=\"wp-block-heading\">5. Preserve manual intent<\/h2>\n<p class=\"wp-block-paragraph\">Create a helper named Office lighting automatic. Run the on and off actions only while this helper is enabled. Put the helper on the household dashboard so anyone can suspend automation without disabling the relay or losing the wall switch.<\/p>\n<h2 class=\"wp-block-heading\">6. Commission the finished setup<\/h2>\n<ul class=\"wp-block-list\"><li>Test entry, seated work, leaving, returning during the off delay and manual override.<\/li><li>Restart Home Assistant and temporarily disconnect the Zigbee coordinator.<\/li><li>Confirm the physical switch still leaves the circuit in a safe, understandable state.<\/li><li>Review false-positive zones and energy readings for several days before finalizing sensitivity and delay.<\/li><\/ul>",
        "protected": false
    },
    "excerpt": {
        "rendered": "<p>Combine mmWave presence, a door contact and a metered relay for dependable room lighting that still works from the wall switch.<\/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_reading_time_override": 10,
        "_diysmart_required_tools_rows": [
            {
                "label": "Insulated screwdriver and approved voltage tester",
                "note": ""
            },
            {
                "label": "Home Assistant with a supported Zigbee coordinator",
                "note": ""
            },
            {
                "label": "USB-C power supply for the presence sensor",
                "note": ""
            }
        ],
        "_diysmart_learning_outcomes_rows": [
            {
                "outcome": "Place and tune an mmWave presence sensor"
            },
            {
                "outcome": "Combine presence and door events without false vacancy"
            },
            {
                "outcome": "Retain wall-switch control and verify safe fallbacks"
            }
        ],
        "_diysmart_skill_requirements_rows": [
            {
                "requirement": "Home Assistant automation basics",
                "note": ""
            },
            {
                "requirement": "Comfort editing entity names and delays",
                "note": ""
            },
            {
                "requirement": "Qualified electrical installation for the in-wall relay",
                "note": ""
            }
        ],
        "_diysmart_linked_product_id": 64,
        "_diysmart_youtube_url": "",
        "_diysmart_github_url": ""
    },
    "yoast_head": "<!-- This site is optimized with the Yoast SEO plugin v28.2 - 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=\"Combine mmWave presence, a door contact and a metered relay for dependable room lighting that still works from the wall switch.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\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=\"Combine mmWave presence, a door contact and a metered relay for dependable room lighting that still works from the wall switch.\" \/>\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=\"og:image\" content=\"https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.jpg\" \/>\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=\"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\\\/presence-aware-room-lighting\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/\"},\"author\":{\"name\":\"DIYSmart Team\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#\\\/schema\\\/person\\\/762335b7812ecb9e45d2ce88eefb48b2\"},\"headline\":\"Presence-Aware Room Lighting with Manual Control\",\"datePublished\":\"2026-10-16T23:27:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/\"},\"wordCount\":422,\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/wifishop-sonoff-snzb-06p.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/\",\"url\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/\",\"name\":\"Presence-Aware Room Lighting with Manual Control - Real Home Automations\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/wifishop-sonoff-snzb-06p.jpg\",\"datePublished\":\"2026-10-16T23:27:53+00:00\",\"description\":\"Combine mmWave presence, a door contact and a metered relay for dependable room lighting that still works from the wall switch.\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/realhomeautomations.com\\\/bg\\\/projects\\\/presence-aware-room-lighting\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#primaryimage\",\"url\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/wifishop-sonoff-snzb-06p.jpg\",\"contentUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/wifishop-sonoff-snzb-06p.jpg\",\"width\":900,\"height\":1200,\"caption\":\"Sonoff SNZB-06P Zigbee Presence Sensor\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/presence-aware-room-lighting\\\/#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\":\"Presence-Aware Room Lighting with Manual Control\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\",\"url\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/\",\"name\":\"DIYSmart\",\"description\":\"Open smart-home products and complete DIY projects\",\"alternateName\":\"DIY Smart Home\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/realhomeautomations.com\\\/bg\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#\\\/schema\\\/person\\\/762335b7812ecb9e45d2ce88eefb48b2\",\"name\":\"DIYSmart Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59917ac3be824a5369e3b98dd833a723ba8d92edaf71bf5d2f0173470d75d786?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59917ac3be824a5369e3b98dd833a723ba8d92edaf71bf5d2f0173470d75d786?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59917ac3be824a5369e3b98dd833a723ba8d92edaf71bf5d2f0173470d75d786?s=96&d=mm&r=g\",\"caption\":\"DIYSmart Team\"},\"sameAs\":[\"https:\\\/\\\/realhomeautomations.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->",
    "yoast_head_json": {
        "title": "Presence-Aware Room Lighting with Manual Control - Real Home Automations",
        "description": "Combine mmWave presence, a door contact and a metered relay for dependable room lighting that still works from the wall switch.",
        "robots": {
            "index": "noindex",
            "follow": "follow",
            "max-snippet": "max-snippet:-1",
            "max-image-preview": "max-image-preview:large",
            "max-video-preview": "max-video-preview:-1"
        },
        "og_locale": "en_US",
        "og_type": "article",
        "og_title": "Presence-Aware Room Lighting with Manual Control - Real Home Automations",
        "og_description": "Combine mmWave presence, a door contact and a metered relay for dependable room lighting that still works from the wall switch.",
        "og_url": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/67",
        "og_site_name": "Real Home Automations",
        "og_image": [
            {
                "width": 900,
                "height": 1200,
                "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.jpg",
                "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\/presence-aware-room-lighting\/#article",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/"
                    },
                    "author": {
                        "name": "DIYSmart Team",
                        "@id": "http:\/\/realhomeautomations.com\/en\/#\/schema\/person\/762335b7812ecb9e45d2ce88eefb48b2"
                    },
                    "headline": "Presence-Aware Room Lighting with Manual Control",
                    "datePublished": "2026-10-16T23:27:53+00:00",
                    "mainEntityOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/"
                    },
                    "wordCount": 422,
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#primaryimage"
                    },
                    "thumbnailUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.jpg",
                    "inLanguage": "en-US"
                },
                {
                    "@type": "WebPage",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/",
                    "url": "http:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/",
                    "name": "Presence-Aware Room Lighting with Manual Control - Real Home Automations",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#website"
                    },
                    "primaryImageOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#primaryimage"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#primaryimage"
                    },
                    "thumbnailUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.jpg",
                    "datePublished": "2026-10-16T23:27:53+00:00",
                    "description": "Combine mmWave presence, a door contact and a metered relay for dependable room lighting that still works from the wall switch.",
                    "breadcrumb": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#breadcrumb"
                    },
                    "inLanguage": "en-US",
                    "potentialAction": [
                        {
                            "@type": "ReadAction",
                            "target": [
                                "http:\/\/realhomeautomations.com\/bg\/projects\/presence-aware-room-lighting\/"
                            ]
                        }
                    ]
                },
                {
                    "@type": "ImageObject",
                    "inLanguage": "en-US",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#primaryimage",
                    "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.jpg",
                    "contentUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/wifishop-sonoff-snzb-06p.jpg",
                    "width": 900,
                    "height": 1200,
                    "caption": "Sonoff SNZB-06P Zigbee Presence Sensor"
                },
                {
                    "@type": "BreadcrumbList",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/presence-aware-room-lighting\/#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": "Presence-Aware Room Lighting with Manual Control"
                        }
                    ]
                },
                {
                    "@type": "WebSite",
                    "@id": "http:\/\/realhomeautomations.com\/en\/#website",
                    "url": "http:\/\/realhomeautomations.com\/en\/",
                    "name": "DIYSmart",
                    "description": "Open smart-home products and complete DIY projects",
                    "alternateName": "DIY Smart Home",
                    "potentialAction": [
                        {
                            "@type": "SearchAction",
                            "target": {
                                "@type": "EntryPoint",
                                "urlTemplate": "http:\/\/realhomeautomations.com\/bg\/?s={search_term_string}"
                            },
                            "query-input": {
                                "@type": "PropertyValueSpecification",
                                "valueRequired": true,
                                "valueName": "search_term_string"
                            }
                        }
                    ],
                    "inLanguage": "en-US"
                },
                {
                    "@type": "Person",
                    "@id": "http:\/\/realhomeautomations.com\/en\/#\/schema\/person\/762335b7812ecb9e45d2ce88eefb48b2",
                    "name": "DIYSmart Team",
                    "image": {
                        "@type": "ImageObject",
                        "inLanguage": "en-US",
                        "@id": "https:\/\/secure.gravatar.com\/avatar\/59917ac3be824a5369e3b98dd833a723ba8d92edaf71bf5d2f0173470d75d786?s=96&d=mm&r=g",
                        "url": "https:\/\/secure.gravatar.com\/avatar\/59917ac3be824a5369e3b98dd833a723ba8d92edaf71bf5d2f0173470d75d786?s=96&d=mm&r=g",
                        "contentUrl": "https:\/\/secure.gravatar.com\/avatar\/59917ac3be824a5369e3b98dd833a723ba8d92edaf71bf5d2f0173470d75d786?s=96&d=mm&r=g",
                        "caption": "DIYSmart Team"
                    },
                    "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": 0,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/67\/revisions"
            }
        ],
        "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
            }
        ]
    }
}