---
title: "Home Assistant от нулата: първият ти работещ умен дом"
description: "От празен Home Assistant до три работещи устройства и първа автоматизация: измервателен контакт, датчик за теч и датчик за врата. Стъпки за начинаещ, без да купуваш повече от нужното."
canonical: "https://realhomeautomations.com/bg/projects/home-assistant-ot-nulata-parviyat-ti-rabotesht-umen-dom/"
language: bg-BG
updated: 2026-11-23T16:24:04+00:00
---

# Home Assistant от нулата: първият ти работещ умен дом

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

> Канонична HTML страница: https://realhomeautomations.com/bg/projects/home-assistant-ot-nulata-parviyat-ti-rabotesht-umen-dom/

- **Difficulty:** Начинаещи
- **Build time:** 120–240 минути
- **Време за четене:** 3 minutes

## Tools required

- Компютър за Home Assistant (по документацията: Home Assistant Green, Raspberry Pi, мини компютър или виртуална машина)
- Sonoff S60TPF (Wi-Fi контакт с измерване на енергия)
- Sonoff SNZB-05P (Zigbee датчик за теч)
- Sonoff SNZB-04PR1 (Zigbee датчик за врата и прозорец)
- Zigbee адаптер (USB адаптер за Home Assistant (ZHA); не е включен в частите)


## What readers will learn

- Да избереш хардуер за Home Assistant и да го инсталираш
- Да добавиш Wi-Fi контакт и да видиш мощността му
- Да добавиш два Zigbee датчика
- Да направиш първата автоматизация: известие при теч


## Skill requirements

- Да работиш с браузър и роутер
- Да следваш ръководство стъпка по стъпка

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

- [Умен контакт Sonoff S60TPF, 16A, с отчитане на енергията](https://realhomeautomations.com/bg/produkt/smart-plug-sonoff-s60tpf-16a-with-energy-monitoring/index.md)

Всеки умен дом започва с един празен екран и въпроса „Откъде да го хвана?“. Тук вървим по най-краткия път: Home Assistant, три устройства и една автоматизация, която ти трябва наистина.

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

- Работещ Home Assistant на компютър, който остава включен.
- Контакт, който показва колко ток взима уредът, включен в него.
- Датчик за теч и датчик за врата или прозорец.
- Една автоматизация: известие на телефона при теч.

 Нищо друго. Нито лампи, нито щори. Те идват, когато този етап работи.

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

 You buy only what you're missing:

- **Компютър за Home Assistant.** Според документацията може да е Home Assistant Green, Raspberry Pi, мини компютър или виртуална машина. Избери по [страницата за инсталация](https://www.home-assistant.io/installation/).
- [Sonoff S60TPF](https://realhomeautomations.com/bg/produkt/smart-plug-sonoff-s60tpf-16a-with-energy-monitoring/): нужен е 1 брой. Wi-Fi контакт 16 A с измерване на енергия.
- [Sonoff SNZB-05P](https://realhomeautomations.com/bg/produkt/flood-sensor-sonoff-snzb-05p-with-flood-detection-cable-included/): нужен е 1 брой. Zigbee датчик за теч с кабел за засичане.
- [Sonoff SNZB-04PR1](https://realhomeautomations.com/bg/produkt/smart-door-and-window-sensor-sonoff-snzb-04pr1-zigbee-3-0-protocol-cr2477-battery-powered-real-time-opening-alerts-ewelink-home-assistant/): нужен е 1 брой. Zigbee датчик за врата и прозорец, батерия CR2477.
- Нужен е Zigbee хъб или Home Assistant със Zigbee адаптер.

 The adapter isn't in the list above. In Marto's Home Assistant it is a Connect ZBT-1 USB adapter; our catalogue also has other Zigbee adapters.

 Времето: два до четири часа, най-вече за инсталацията и първото запознанство.

 ## Как работи

 Home Assistant е програма. Тя седи на компютър и общува с устройствата. Wi-Fi контактът говори по твоята Wi-Fi мрежа. Zigbee датчиците говорят по собствена радио мрежа до адаптера, а адаптерът е вързан към Home Assistant.

 That is why there are two "add" steps: the plug is discovered on the network, and the sensors are paired to the Zigbee integration.

 ## Стъпки

- Инсталирай Home Assistant по документацията за твоя хардуер. Очакваш екран за първоначална настройка в браузъра.
- Create a user and set the home's location. It is needed for sunset and the time zone.
- Plug in the plug and add it following the manufacturer's guide. In Settings → Devices & services you should see a new device with power and energy entities.
- Включи уред в контакта, например вентилатор. Мощността трябва да се промени.
- Plug the Zigbee adapter into a USB port and add the ZHA integration from Settings → Devices & services. You should see the Zigbee network installation start.
- Pair the leak sensor and the door sensor. Usually you hold the sensor's button while ZHA is in "add" mode. Follow the manufacturer's guide for the exact gesture.
- Check the sensors: wet the end of the leak sensor's cable with a little water and open the door in front of the door sensor. Their state in Home Assistant should change.
- Направи първата автоматизация. Пример за теч; имената са примерни:

 ```
alias: Leak – notification
triggers:
  - trigger: state
    entity_id: binary_sensor.datchik_tech
    to: "on"
actions:
  - action: notify.mobile_app_telefon
    data:
      title: Leak
      message: The leak sensor is wet.
mode: single
```

 You put it in Settings → Automations & scenes → Create automation → Edit in YAML. Also install the Companion app on your phone, so the notification has somewhere to go.

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

- Намокри датчика за теч и виж дали известието идва. Подсуши го и виж дали състоянието се връща.
- Отвори и затвори вратата няколко пъти. Датчикът трябва да следва.
- Рестартирай Home Assistant. Устройствата се връщат сами.

 ## If it doesn't work

- ZHA doesn't find the adapter: the USB port or the device permissions. Try another port.
- The sensor doesn't pair: the battery, or it is too far from the adapter. Move it closer and repeat.
- The plug doesn't appear: Home Assistant and the plug are not on the same network.
- No notification: Companion isn't signed in or has no permission for notifications.

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

 A leak sensor doesn't stop the water, it only notifies. A single Home Assistant is a single point of failure: make a backup once you have more than a few devices.

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

- [Инсталация на Home Assistant](https://www.home-assistant.io/installation/), проверена на 22.11.2026.
- [ZHA](https://www.home-assistant.io/integrations/zha/), проверена на 22.11.2026.
- [Автоматизации](https://www.home-assistant.io/docs/automation/), проверена на 22.11.2026.
- Продуктовите страници на трите устройства в магазина.
- Marto's home setup was read in read-only mode in his Home Assistant on 22.11.2026.

 The existing “First kit: plug, leak and door” in the shop contains similar things, but it is a separate product and we don't use it here.