---
title: "Сцени „Кино“, „Лека нощ“ и „Излизам“: практичен проект за всекидневието"
description: "Един безжичен бутон с единично, двойно и дълго натискане задейства три сцени: кино, лека нощ и излизам. Показваме как да ги направиш в Home Assistant и как да ги пускаш и от телефона."
canonical: "https://realhomeautomations.com/bg/projects/stseni-kino-leka-nosht-i-izlizam-praktichen-proekt-za-vsekidnevieto/"
language: bg-BG
updated: 2026-11-23T16:24:04+00:00
---

# Сцени „Кино“, „Лека нощ“ и „Излизам“: практичен проект за всекидневието

Един безжичен бутон с единично, двойно и дълго натискане задейства три сцени: кино, лека нощ и излизам. Показваме как да ги направиш в Home Assistant и как да ги пускаш и от телефона.

> Канонична HTML страница: https://realhomeautomations.com/bg/projects/stseni-kino-leka-nosht-i-izlizam-praktichen-proekt-za-vsekidnevieto/

- **Difficulty:** Средно ниво
- **Build time:** 45–90 минути
- **Време за четене:** 3 minutes

## Tools required

- Sonoff SNZB-01P (безжичен Zigbee бутон; един брой)
- Zigbee хъб или Home Assistant със Zigbee адаптер
- Лампи и устройства, които вече управляваш от Home Assistant (лампи, щори, телевизор или контакт)


## What readers will learn

- Да направиш три сцени за различни моменти от деня
- Да закачиш три действия към един бутон
- Build a "Leaving" scene that checks the door before switching off
- Да пускаш същите сцени от телефона като резерва


## Skill requirements

- Да сдвоиш Zigbee устройство в Home Assistant
- Да направиш автоматизация с тригер от събитие на бутон

## Комплект за проекта

- [Sonoff SNZB-01P – умен безжичен бутон Zigbee 3.0, многофункционално управление и компактен дизайн](https://realhomeautomations.com/bg/produkt/sonoff-snzb-01p-smart-wireless-button-zigbee-3-0-multi-action-control-and-compact-design/index.md)

Вечерта искаш гледане на филм без да ставаш три пъти. Преди сън искаш всичко изгасено, а когато излизаш, искаш да си сигурен, че нищо не е останало светнато. Три момента, три сцени и един бутон.

 ## Какво ще получиш

 Три сцени в Home Assistant: **Кино**, **Лека нощ** и **Излизам**. One small wireless button on the wall or on the table launches them: a single press for "Movie", a double press for "Good night", a long press for "Leaving". You launch the same scenes from your phone if the button isn't at hand.

 You build the scenes from devices you already have. We don't add new lamps.

 ## Какво ти трябва

- [Sonoff SNZB-01P](https://realhomeautomations.com/bg/produkt/sonoff-snzb-01p-smart-wireless-button-zigbee-3-0-multi-action-control-and-compact-design/): безжичен Zigbee бутон. Нужен е 1 брой. Производителят го описва с единично, двойно и дълго натискане.
- Нужен е Zigbee хъб или Home Assistant със Zigbee адаптер.
- The lamps and other devices you want to control. If you don't have blinds or a TV in Home Assistant, the scene will be light only, and that is perfectly enough.
- Optionally, a sensor on the front door, for the check in "Leaving".

 ## Как работи

 Бутонът изпраща събитие: единично, двойно или дълго. Автоматизация слуша за събитието и пуска сцената. Сцената е запазено състояние на лампите.

 This way the button doesn't know what the scenes do, and the scenes don't know where the button is. If you replace the button, you change only one trigger.

 ## Стъпки

- Сдвои бутона в Home Assistant. Очакваш устройство с обекти за действието: при Zigbee интеграцията ZHA се виждат като събития, а при Zigbee2MQTT като `action`.
- Create three scenes in Settings → Automations & scenes → Scenes:

 - **Кино:** ceiling light off, a strip or lamp at 10–20 %, and the blinds closed if you like; - **Лека нощ:** all lamps off, except a dim light toward the bathroom; - **Излизам:** всичко изключено.

- Направи автоматизация с бутона. Пример с примерни имена; в твоя Home Assistant заместваш устройството и сцените:

 ```
alias: Button – three scenes
triggers:
  - trigger: event
    event_type: zha_event
    event_data:
      device_ieee: "00:00:00:00:00:00:00:00"
      command: single
    id: single
  - trigger: event
    event_type: zha_event
    event_data:
      device_ieee: "00:00:00:00:00:00:00:00"
      command: double
    id: double
  - trigger: event
    event_type: zha_event
    event_data:
      device_ieee: "00:00:00:00:00:00:00:00"
      command: long
    id: long
actions:
  - choose:
      - conditions: "{{ trigger.id == 'single' }}"
        sequence:
          - action: scene.turn_on
            target: {entity_id: scene.kino}
      - conditions: "{{ trigger.id == 'double' }}"
        sequence:
          - action: scene.turn_on
            target: {entity_id: scene.leka_nosht}
      - conditions: "{{ trigger.id == 'long' }}"
        sequence:
          - action: scene.turn_on
            target: {entity_id: scene.izlizam}
mode: single
```

 Адресът на устройството и имената на командите зависят от интеграцията. По-лесно е да използваш визуалния редактор и да избереш бутона като тригер от списъка с устройството; така Home Assistant вписва верните стойности.

- Тествай всяко натискане отделно. Очакваш съответната сцена.
- Добави трите сцени на таблото като бутони.

 ## Проверка на резултата

- Пусни всяка сцена от таблото, после от бутона. Резултатът трябва да е един и същ.
- Press quickly twice. If the single press fires as well, increase the time between presses in the button's settings or use a different gesture for "Movie".
- Извади батерията на бутона: сцените от таблото пак работят, а от бутона не.

 ## If it doesn't work

- Nothing happens on a press: the event isn't reaching Home Assistant. Look in Developer tools → Events to see what arrives on a press.
- Пуска се грешна сцена: имената на командите се различават. Ползвай събитията от твоя бутон.
- The scene doesn't switch everything off: some lamp isn't added to the scene. Open it and add the missing one.
- The "Leaving" scene switches off while the door is open: add a condition for the door sensor and a notification instead of switching off.

 ## Ограничения

 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 "Leaving" scene doesn't lock the door and doesn't stop appliances that aren't in Home Assistant. If someone stays at home, don't launch "Leaving" automatically.

 ## Източници и статус на проверката

- [Сцени в Home Assistant](https://www.home-assistant.io/docs/scene/), проверена на 22.11.2026.
- [Автоматизации в Home Assistant](https://www.home-assistant.io/docs/automation/), проверена на 22.11.2026.
- [ZHA в Home Assistant](https://www.home-assistant.io/integrations/zha/), проверена на 22.11.2026.
- Продуктовата страница на Sonoff SNZB-01P в магазина.
- Marto's automations were read in read-only mode in his Home Assistant on 22.11.2026.

 Имената на събитията зависят от интеграцията и версията.