---
title: "Щори, които знаят работен ли е денят: отваряне в 08:00 в делник и 10:00 в почивка"
description: "Една автоматизация в Home Assistant отваря щората в 08:00 в работен ден и в 10:00 в събота, неделя и на празник. За съществуваща щора с мотор, управляван от модул, а не за завеси."
canonical: "https://realhomeautomations.com/bg/projects/shtori-koito-znayat-raboten-li-e-denyat-otvaryane-v-0800-v-delnik-i-1000-v-pochivka/"
language: bg-BG
updated: 2026-11-23T16:24:03+00:00
---

# Щори, които знаят работен ли е денят: отваряне в 08:00 в делник и 10:00 в почивка

Една автоматизация в Home Assistant отваря щората в 08:00 в работен ден и в 10:00 в събота, неделя и на празник. За съществуваща щора с мотор, управляван от модул, а не за завеси.

> Канонична HTML страница: https://realhomeautomations.com/bg/projects/shtori-koito-znayat-raboten-li-e-denyat-otvaryane-v-0800-v-delnik-i-1000-v-pochivka/

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

## Tools required

- Home Assistant (с интеграцията Workday)
- Zigbee хъб или адаптер (или Home Assistant със Zigbee адаптер; не е включен в продукта)
- Модул за щора (Sonoff MINI-ZBRBS)
- Съществуваща моторизирана щора (4- или 5-жилен AC мотор с крайни изключватели)


## What readers will learn

- Choose a blind module according to the motor's current
- Да добавиш Workday и да проверяваш дали днес е работен ден
- Да направиш автоматизация с два тригера по време и условие по вида на деня
- Да спреш автоматичното отваряне и да ползваш щората както преди


## Skill requirements

- Да добавиш устройство в Home Assistant
- Да поставиш YAML в редактора на автоматизации

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

- [SONOFF Zigbee умен ключ за ролетни щори MINI-ZBRBS – пълен контрол над щори, завеси и ролетни щори](https://realhomeautomations.com/bg/produkt/sonoff-zigbee-smart-roller-shutter-switch-mini-zbrbs-full-control-for-blinds-curtains-and-roller-shutters/index.md)

Искаш щорите да се вдигат в 08:00 в работен ден и в 10:00 в събота, неделя и на празник, без да пипаш нищо. Home Assistant има интеграция Workday, която казва дали днес е работен ден, и ние я връзваме към щората.

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

 One automation that opens the blind at 08:00 when today is a working day, and at 10:00 when it isn't. The project opens the blinds and nothing more. Closing, the sun and presence are separate ideas.

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

 Проектът е за **съществуваща моторизирана ролетна щора или щора**, която мотор с вградени крайни изключватели вдига и сваля през реле или ключ. Не е за завеси с моторче и не е за щори с мотор на батерия. Ако щората още се управлява само от стенен ключ, модулът се монтира на мястото на ключа или зад него.

- **Модул за щора:** [Sonoff MINI-ZBRBS](https://realhomeautomations.com/bg/produkt/sonoff-zigbee-smart-roller-shutter-switch-mini-zbrbs-full-control-for-blinds-curtains-and-roller-shutters/), Zigbee, за мотор под 1 A.
- **Вече имаш:** Home Assistant и моторизирана щора с 4- или 5-жилен AC мотор с вграден краен ограничител.

 Нужен е Zigbee хъб или Home Assistant със Zigbee адаптер.

 Хъбът или адаптерът не са включени в продукта. Нямаме готов комплект за този проект.

- **Време за настройка:** 45–90 минути, когато монтажът вече е направен.
- **Умения:** добавяш устройство в Home Assistant и поставяш YAML.
- **Монтаж:** модулът се свързва към мрежово напрежение и към мотор.

 ## Провери мотора

 Sonoff MINI-ZBRBS е за четири- или петжилни мотори с вграден ограничител.

 The motor's travel limits are set before the module is connected and are not changed by it.

 ## Как работи

 Workday добавя в Home Assistant сензор `binary_sensor`. Той е `on` в работен ден и `off` в събота, неделя и на официален празник за избраната страна. Сензорът се обновява в полунощ. Автоматизацията има два тригера за времето, 08:00 и 10:00, и пуска отварянето само когато часът пасва на вида ден.

 ## Стъпки

- **Монтирай и калибрирай щората.** Then calibrate the travel so that the position in percent works. Hold the module's button for 10 seconds until the LED starts to "breathe": the module runs the motor through the whole travel by itself. The blind must move in the right direction. If not, change the direction according to the instructions.
- **Добави модула в Home Assistant.** Hold the module's button for 5 seconds: the LED blinks slowly while it is in pairing mode. Add it through the Zigbee integration (ZHA) or Zigbee2MQTT. In Settings → Devices & services an entity of type `cover`, например `cover.living_room_shutter`. The "Open" and "Close" buttons on its card should move the blind.
- **Добави интеграцията Workday.** Settings → Devices & services → Add Integration → Workday. Choose Bulgaria as the country. In "Days to include" leave Monday to Friday. In "Days to exclude" leave Sat, Sun and Holidays. You get `binary_sensor`, например `binary_sensor.workday_sensor`. Check in Developer tools → States that today's value is correct.
- **Създай автоматизацията.** Settings → Automations & scenes → Create automation → Create new automation → three dots → Edit in YAML. Paste the following example and replace the two entity IDs with your own.

 ```
alias: "Blinds: opening by working day"
description: "08:00 on a working day, 10:00 on a day off or a holiday"
mode: single
triggers:
  - trigger: time
    at: "08:00:00"
    id: workday
  - trigger: time
    at: "10:00:00"
    id: restday
conditions:
  - condition: or
    conditions:
      - condition: and
        conditions:
          - condition: trigger
            id: workday
          - condition: state
            entity_id: binary_sensor.workday_sensor
            state: "on"
      - condition: and
        conditions:
          - condition: trigger
            id: restday
          - condition: state
            entity_id: binary_sensor.workday_sensor
            state: "off"
actions:
  - action: cover.open_cover
    target:
      entity_id: cover.living_room_shutter
```

 Поставяш го като **една** автоматизация в редактора, не във файла `automations.yaml`. Двата entity ID са примерни. След запис автоматизацията се показва в списъка и е включена.

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

- **Ръчно изпълнение.** Затвори щората. В автоматизацията избери Run actions. Щората трябва да тръгне нагоре.
- **Работен ден.** В Developer tools → States провери, че `binary_sensor.workday_sensor` е `on`. В 08:00 щората се отваря, а в 10:00 нищо не става.
- **Събота или неделя.** Сензорът е `off`, в 08:00 нищо не става, а в 10:00 щората се отваря. Следата от изпълнението е в Settings → Automations → автоматизацията → Traces.
- **Празник.** Действието `workday.check_date` в Developer tools → Actions проверява дали дадена дата е работна за конфигурацията ти.
- **Рестарт.** След рестарт на Home Assistant автоматизацията остава включена и тригерите по време се прилагат отново.

 ## If it doesn't work

- **The blind doesn't move, and the automation has run.** The entity ID isn't that of `cover` или модулът е офлайн. Отвори entity в Settings → Entities и опитай да го пуснеш ръчно.
- **The automation doesn't start at any time.** Check in Traces which trigger fired and which condition stopped it. Most often the sensor's entity ID is wrong.
- **Сензорът показва грешен ден.** Workday uses the holidays library and works offline. A missing holiday is added in "Add holidays" in the integration's options.
- **Щората се движи наобратно.** The module's two output wires are swapped with the power off (Sonoff), or the direction is reversed following the module's instructions.

 ## Ограничения и изключване

- The holidays come from the holidays library. We don't claim that transferred days off are included. Check two dates with `workday.check_date`.
- If Home Assistant is not running at 08:00 or 10:00, the opening isn't done later on its own. The blind stays where it is.
- The automation doesn't check whether there is a person or an object in the blind's path. Rely on the protections of the motor itself. The manufacturer describes a maximum continuous movement in one direction of 2 minutes, so stop the movement before the end of travel if you control it manually.
- Normal control remains. The wall switch or the module's buttons move the blind as before. To stop the automatic opening, turn off the automation in Settings → Automations or delete it. Turning off the module in Home Assistant doesn't affect the wall switch.

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

 The material follows the documentation of the manufacturers and of Home Assistant, read on 22.11.2026. The topic is from Simeon's list of ideas.

- [Home Assistant: Workday](https://www.home-assistant.io/integrations/workday/), 22.11.2026
- [Home Assistant: Zigbee Home Automation](https://www.home-assistant.io/integrations/zha/), 22.11.2026
- [ZHA quirk за SONOFF MINI-ZBRBS](https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/sonoff/mini_zbrbs.py), 22.11.2026
- [SONOFF: MINI-ZBRBS](https://help.sonoff.tech/docs/MINIZBRBS), 22.11.2026
- [Zigbee2MQTT: SONOFF MINI-ZBRBS](https://www.zigbee2mqtt.io/devices/MINI-ZBRBS.html), 22.11.2026