{
    "id": 92,
    "date": "2026-09-13T22:46:57",
    "date_gmt": "2026-09-13T19:46:57",
    "guid": {
        "rendered": "http:\/\/realhomeautomations.com\/bg\/projects\/tema-07\/"
    },
    "modified": "2026-11-23T18:24:04",
    "modified_gmt": "2026-11-23T16:24:04",
    "slug": "stseni-kino-leka-nosht-i-izlizam-praktichen-proekt-za-vsekidnevieto",
    "status": "publish",
    "type": "diy_project",
    "link": "https:\/\/realhomeautomations.com\/en\/projects\/stseni-kino-leka-nosht-i-izlizam-praktichen-proekt-za-vsekidnevieto\/",
    "title": {
        "rendered": "\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project"
    },
    "content": {
        "rendered": "<p class=\"wp-block-paragraph\">In the evening you want to watch a film without getting up three times. Before sleep you want everything off, and when you leave, you want to be sure nothing was left on. Three moments, three scenes and one button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What you will get<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Three scenes in Home Assistant: <strong>Movie<\/strong>, <strong>Good night<\/strong> and <strong>Leaving<\/strong>. One small wireless button on the wall or on the table launches them: a single press for &#8220;Movie&#8221;, a double press for &#8220;Good night&#8221;, a long press for &#8220;Leaving&#8221;. You launch the same scenes from your phone if the button isn&#8217;t at hand.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You build the scenes from devices you already have. We don&#8217;t add new lamps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What you need<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/realhomeautomations.com\/bg\/produkt\/sonoff-snzb-01p-smart-wireless-button-zigbee-3-0-multi-action-control-and-compact-design\/\">Sonoff SNZB-01P<\/a>: a wireless Zigbee button. You need 1 piece. The manufacturer describes it with a single, double and long press.<\/li><li>You need a Zigbee hub or Home Assistant with a Zigbee adapter.<\/li><li>The lamps and other devices you want to control. If you don&#8217;t have blinds or a TV in Home Assistant, the scene will be light only, and that is perfectly enough.<\/li><li>Optionally, a sensor on the front door, for the check in &#8220;Leaving&#8221;.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How it works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The button sends an event: single, double or long. An automation listens for the event and launches the scene. A scene is a saved state of the lamps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This way the button doesn&#8217;t know what the scenes do, and the scenes don&#8217;t know where the button is. If you replace the button, you change only one trigger.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Pair the button in Home Assistant. You should see a device with entities for the action: with the ZHA Zigbee integration they appear as events, and with Zigbee2MQTT as <code>action<\/code>.<\/li><li>Create three scenes in Settings \u2192 Automations &amp; scenes \u2192 Scenes:<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">   &#8211; <strong>Movie:<\/strong> ceiling light off, a strip or lamp at 10\u201320 %, and the blinds closed if you like; &#8211; <strong>Good night:<\/strong> all lamps off, except a dim light toward the bathroom; &#8211; <strong>Leaving:<\/strong> everything off.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Create an automation with the button. An example with sample names; in your Home Assistant, replace the device and the scenes:<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Button \u2013 three scenes\ntriggers:\n  - trigger: event\n    event_type: zha_event\n    event_data:\n      device_ieee: \"00:00:00:00:00:00:00:00\"\n      command: single\n    id: single\n  - trigger: event\n    event_type: zha_event\n    event_data:\n      device_ieee: \"00:00:00:00:00:00:00:00\"\n      command: double\n    id: double\n  - trigger: event\n    event_type: zha_event\n    event_data:\n      device_ieee: \"00:00:00:00:00:00:00:00\"\n      command: long\n    id: long\nactions:\n  - choose:\n      - conditions: \"{{ trigger.id == 'single' }}\"\n        sequence:\n          - action: scene.turn_on\n            target: {entity_id: scene.kino}\n      - conditions: \"{{ trigger.id == 'double' }}\"\n        sequence:\n          - action: scene.turn_on\n            target: {entity_id: scene.leka_nosht}\n      - conditions: \"{{ trigger.id == 'long' }}\"\n        sequence:\n          - action: scene.turn_on\n            target: {entity_id: scene.izlizam}\nmode: single<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The device address and the command names depend on the integration. It is easier to use the visual editor and pick the button as a trigger from the device list; that way Home Assistant fills in the right values.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Test each press separately. You should get the matching scene.<\/li><li>Add the three scenes to the dashboard as buttons.<\/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>Launch each scene from the dashboard, then from the button. The result should be the same.<\/li><li>Press quickly twice. If the single press fires as well, increase the time between presses in the button&#8217;s settings or use a different gesture for &#8220;Movie&#8221;.<\/li><li>Take the battery out of the button: the scenes from the dashboard still work, but not from the button.<\/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>Nothing happens on a press: the event isn&#8217;t reaching Home Assistant. Look in Developer tools \u2192 Events to see what arrives on a press.<\/li><li>A wrong scene runs: the command names differ. Use the events from your own button.<\/li><li>The scene doesn&#8217;t switch everything off: some lamp isn&#8217;t added to the scene. Open it and add the missing one.<\/li><li>The &#8220;Leaving&#8221; scene switches off while the door is open: add a condition for the door sensor and a notification instead of switching off.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Limitations<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The button works over Zigbee and depends on the Zigbee network. Three scenes on one button are hard to remember at first: stick a small note next to it. The &#8220;Leaving&#8221; scene doesn&#8217;t lock the door and doesn&#8217;t stop appliances that aren&#8217;t in Home Assistant. If someone stays at home, don&#8217;t launch &#8220;Leaving&#8221; automatically.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sources and verification status<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.home-assistant.io\/docs\/scene\/\">Scenes in Home Assistant<\/a>, checked on 22.11.2026.<\/li><li><a href=\"https:\/\/www.home-assistant.io\/docs\/automation\/\">Automations in Home Assistant<\/a>, checked on 22.11.2026.<\/li><li><a href=\"https:\/\/www.home-assistant.io\/integrations\/zha\/\">ZHA in Home Assistant<\/a>, checked on 22.11.2026.<\/li><li>The Sonoff SNZB-01P product page in the shop.<\/li><li>Marto&#8217;s automations were read in read-only mode in his Home Assistant on 22.11.2026.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Event names depend on the integration and the version.<\/p>",
        "protected": false
    },
    "excerpt": {
        "rendered": "<p>One wireless button with a single, double and long press triggers three scenes: movie, good night and leaving. We show how to build them in Home Assistant and how to run them from your phone too.<\/p>",
        "protected": false
    },
    "author": 1,
    "featured_media": 2903,
    "template": "",
    "diy_project_category": [
        52
    ],
    "diy_project_tag": [
        54,
        53,
        161,
        155
    ],
    "class_list": [
        "post-92",
        "diy_project",
        "type-diy_project",
        "status-publish",
        "has-post-thumbnail",
        "hentry",
        "diy_project_category-lighting",
        "diy_project_tag-home-assistant",
        "diy_project_tag-zigbee",
        "diy_project_tag-buton",
        "diy_project_tag-stseni"
    ],
    "acf": {
        "_diysmart_difficulty": "intermediate",
        "_diysmart_featured": false,
        "_diysmart_build_duration_min": 45,
        "_diysmart_build_duration_max": 90,
        "_diysmart_build_duration_unit": "minutes",
        "_diysmart_home_assistant": "yes",
        "_diysmart_works_offline": "",
        "_diysmart_electrician": "no",
        "_diysmart_reading_time_override": "",
        "_diysmart_required_tools_rows": [
            {
                "label": "Sonoff SNZB-01P",
                "note": "wireless Zigbee button; one piece"
            },
            {
                "label": "Zigbee hub or Home Assistant with a Zigbee adapter",
                "note": ""
            },
            {
                "label": "Lamps and devices you already control from Home Assistant",
                "note": "lamps, blinds, TV or plug"
            }
        ],
        "_diysmart_learning_outcomes_rows": [
            {
                "outcome": "Build three scenes for different moments of the day"
            },
            {
                "outcome": "Attach three actions to one button"
            },
            {
                "outcome": "Build a \"Leaving\" scene that checks the door before switching off"
            },
            {
                "outcome": "Run the same scenes from your phone as a backup"
            }
        ],
        "_diysmart_skill_requirements_rows": [
            {
                "requirement": "Pair a Zigbee device with Home Assistant",
                "note": ""
            },
            {
                "requirement": "Build an automation triggered by a button event",
                "note": ""
            }
        ],
        "_diysmart_at_home": {
            "who": "Marto",
            "since": "",
            "story": "In Marto's Home Assistant, the wireless switches and buttons by the beds and in the hallway trigger different things with a single, double and long press. A double press on one button turns the strip to full brightness, and holding it dims it to 10 %. Marto's buttons of this kind are other models, not the Sonoff SNZB-01P.",
            "image": "",
            "caption": ""
        },
        "_diysmart_linked_product_id": 2902,
        "_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>\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project - Real Home Automations<\/title>\n<meta name=\"description\" content=\"One wireless button with a single, double and long press triggers three scenes: movie, good night and leaving. We show how to build them in Home Assistant and how to run them from your phone too.\" \/>\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\/92\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project - Real Home Automations\" \/>\n<meta property=\"og:description\" content=\"One wireless button with a single, double and long press triggers three scenes: movie, good night and leaving. We show how to build them in Home Assistant and how to run them from your phone too.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/92\" \/>\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\/sonoff-snzb-01p-E28093-smart-wireless-button-zigbee-3-0-multi-action.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/\"},\"author\":{\"name\":\"Real Home Automations\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#\\\/schema\\\/person\\\/762335b7812ecb9e45d2ce88eefb48b2\"},\"headline\":\"\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project\",\"datePublished\":\"2026-09-13T19:46:57+00:00\",\"dateModified\":\"2026-11-23T16:24:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/\"},\"wordCount\":685,\"publisher\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/sonoff-snzb-01p-E28093-smart-wireless-button-zigbee-3-0-multi-action.webp\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/\",\"url\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/\",\"name\":\"\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project - Real Home Automations\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/sonoff-snzb-01p-E28093-smart-wireless-button-zigbee-3-0-multi-action.webp\",\"datePublished\":\"2026-09-13T19:46:57+00:00\",\"dateModified\":\"2026-11-23T16:24:04+00:00\",\"description\":\"One wireless button with a single, double and long press triggers three scenes: movie, good night and leaving. We show how to build them in Home Assistant and how to run them from your phone too.\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/realhomeautomations.com\\\/bg\\\/projects\\\/stseni-kino-leka-nosht-i-izlizam-praktichen-proekt-za-vsekidnevieto\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/#primaryimage\",\"url\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/sonoff-snzb-01p-E28093-smart-wireless-button-zigbee-3-0-multi-action.webp\",\"contentUrl\":\"https:\\\/\\\/realhomeautomations.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/sonoff-snzb-01p-E28093-smart-wireless-button-zigbee-3-0-multi-action.webp\",\"width\":1280,\"height\":1280,\"caption\":\"Sonoff SNZB-01P \u2013 Smart wireless button Zigbee 3.0, multi-action control and compact design\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/realhomeautomations.com\\\/en\\\/projects\\\/movie-good-night-leaving-scenes\\\/#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\":\"\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project\"}]},{\"@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": "\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project - Real Home Automations",
        "description": "One wireless button with a single, double and long press triggers three scenes: movie, good night and leaving. We show how to build them in Home Assistant and how to run them from your phone too.",
        "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\/92",
        "og_locale": "en_US",
        "og_type": "article",
        "og_title": "\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project - Real Home Automations",
        "og_description": "One wireless button with a single, double and long press triggers three scenes: movie, good night and leaving. We show how to build them in Home Assistant and how to run them from your phone too.",
        "og_url": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/92",
        "og_site_name": "Real Home Automations",
        "article_modified_time": "2026-11-23T16:24:04+00:00",
        "og_image": [
            {
                "width": 1280,
                "height": 1280,
                "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/sonoff-snzb-01p-E28093-smart-wireless-button-zigbee-3-0-multi-action.webp",
                "type": "image\/jpeg"
            }
        ],
        "twitter_card": "summary_large_image",
        "twitter_misc": {
            "Est. reading time": "4 minutes"
        },
        "schema": {
            "@context": "https:\/\/schema.org",
            "@graph": [
                {
                    "@type": "TechArticle",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/#article",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/"
                    },
                    "author": {
                        "name": "Real Home Automations",
                        "@id": "http:\/\/realhomeautomations.com\/en\/#\/schema\/person\/762335b7812ecb9e45d2ce88eefb48b2"
                    },
                    "headline": "\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project",
                    "datePublished": "2026-09-13T19:46:57+00:00",
                    "dateModified": "2026-11-23T16:24:04+00:00",
                    "mainEntityOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/"
                    },
                    "wordCount": 685,
                    "publisher": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#organization"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/#primaryimage"
                    },
                    "thumbnailUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/sonoff-snzb-01p-E28093-smart-wireless-button-zigbee-3-0-multi-action.webp",
                    "inLanguage": "en-US"
                },
                {
                    "@type": "WebPage",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/",
                    "url": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/",
                    "name": "\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project - Real Home Automations",
                    "isPartOf": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/#website"
                    },
                    "primaryImageOfPage": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/#primaryimage"
                    },
                    "image": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/#primaryimage"
                    },
                    "thumbnailUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/sonoff-snzb-01p-E28093-smart-wireless-button-zigbee-3-0-multi-action.webp",
                    "datePublished": "2026-09-13T19:46:57+00:00",
                    "dateModified": "2026-11-23T16:24:04+00:00",
                    "description": "One wireless button with a single, double and long press triggers three scenes: movie, good night and leaving. We show how to build them in Home Assistant and how to run them from your phone too.",
                    "breadcrumb": {
                        "@id": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/#breadcrumb"
                    },
                    "inLanguage": "en-US",
                    "potentialAction": [
                        {
                            "@type": "ReadAction",
                            "target": [
                                "http:\/\/realhomeautomations.com\/bg\/projects\/stseni-kino-leka-nosht-i-izlizam-praktichen-proekt-za-vsekidnevieto\/"
                            ]
                        }
                    ]
                },
                {
                    "@type": "ImageObject",
                    "inLanguage": "en-US",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/#primaryimage",
                    "url": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/sonoff-snzb-01p-E28093-smart-wireless-button-zigbee-3-0-multi-action.webp",
                    "contentUrl": "https:\/\/realhomeautomations.com\/wp-content\/uploads\/2026\/10\/sonoff-snzb-01p-E28093-smart-wireless-button-zigbee-3-0-multi-action.webp",
                    "width": 1280,
                    "height": 1280,
                    "caption": "Sonoff SNZB-01P \u2013 Smart wireless button Zigbee 3.0, multi-action control and compact design"
                },
                {
                    "@type": "BreadcrumbList",
                    "@id": "http:\/\/realhomeautomations.com\/en\/projects\/movie-good-night-leaving-scenes\/#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": "\u201cMovie\u201d, \u201cGood night\u201d and \u201cLeaving\u201d scenes: a practical everyday project"
                        }
                    ]
                },
                {
                    "@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\/92",
                "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": 4,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/92\/revisions"
            }
        ],
        "predecessor-version": [
            {
                "id": 4335,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project\/92\/revisions\/4335"
            }
        ],
        "acf:post": [
            {
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/product\/2902"
            }
        ],
        "wp:featuredmedia": [
            {
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/media\/2903"
            }
        ],
        "wp:attachment": [
            {
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/media?parent=92"
            }
        ],
        "wp:term": [
            {
                "taxonomy": "diy_project_category",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_category?post=92"
            },
            {
                "taxonomy": "diy_project_tag",
                "embeddable": true,
                "href": "https:\/\/realhomeautomations.com\/en\/wp-json\/wp\/v2\/diy_project_tag?post=92"
            }
        ],
        "curies": [
            {
                "name": "wp",
                "href": "https:\/\/api.w.org\/{rel}",
                "templated": true
            }
        ]
    }
}