---
title: "Кога да проветриш? Следи CO₂, температурата и влажността"
description: "Сензор за CO₂, температура и влажност пуска известие, когато въздухът в стаята остане тежък, и мълчи, когато прозорецът вече е отворен. Праговете настройваме по стаята."
canonical: "https://realhomeautomations.com/bg/projects/koga-da-provetrish-sledi-co2-temperaturata-i-vlazhnostta/"
language: bg-BG
updated: 2026-11-23T16:24:04+00:00
---

# Кога да проветриш? Следи CO₂, температурата и влажността

Сензор за CO₂, температура и влажност пуска известие, когато въздухът в стаята остане тежък, и мълчи, когато прозорецът вече е отворен. Праговете настройваме по стаята.

> Канонична HTML страница: https://realhomeautomations.com/bg/projects/koga-da-provetrish-sledi-co2-temperaturata-i-vlazhnostta/

- **Difficulty:** Начинаещи
- **Build time:** 30–60 минути
- **Време за четене:** 4 minutes

## Tools required

- SONOFF AirGuard CO2 (сензор за CO₂, температура и влажност, Matter през Wi-Fi)
- Home Assistant с Matter
- Датчик за отворен прозорец (по желание)


## What readers will learn

- Да добавиш Matter сензор в Home Assistant
- Да избереш праг за CO₂ според собствената стая
- Да изпратиш известие само когато е смислено


## Skill requirements

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

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

- [SONOFF AirGuard CO2 – умен CO2 монитор с Matter през Wi-Fi за качеството на въздуха (SAWF-08P)](https://realhomeautomations.com/bg/produkt/sonoff-airguard-co2-smart-co2-monitor-with-matter-over-wi-fi-for-air-quality-sawf-08p/index.md)

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

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

 A CO₂, temperature and humidity sensor that Home Assistant watches. When CO₂ stays above a chosen threshold for a few minutes, we get an "open the window" notification. If the window is already open, no notification comes. This is a guide for airing, not a medical or measuring instrument.

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

- [SONOFF AirGuard CO2](https://realhomeautomations.com/bg/produkt/sonoff-airguard-co2-smart-co2-monitor-with-matter-over-wi-fi-for-air-quality-sawf-08p/): един сензор на стая, която искаме да следим. За повече стаи ни трябва по един на стая.
- Home Assistant с интеграцията Matter (сензорът е с Matter през Wi-Fi) и Wi-Fi покритие в стаята.
- Optionally: an open-window sensor, so we don't get a notification when the window is already open. If we don't have one, we skip that condition.
- Приложението Home Assistant на телефона за известията.

 Време за настройка: около 30 минути. После един-два дни наблюдение, за да нагласим прага.

 ## Как работи

 CO₂ in a room with people rises until we air it. The sensor reports a value in ppm (parts per million). The automation watches the value and sends a notification when it stays above the threshold for a set time, so that we don't react to a short spike.

 The thresholds are a matter of preference. As a starting point, around 1000 ppm is often used for "starting to get stuffy" and higher for "really air it out". The numbers in the example are examples. We tune them by our own feel and by how the value rises in our room.

 ## Как е у нас

 As of 22.11.2026 we did not find a CO₂ sensor in Marto's Home Assistant: the home air sensors are IKEA VINDSTYRKA, which are not for CO₂. So this project is not a description of a home setup. There is already similar logic at home for the windows: when a window stays open, the AC is stopped, and when it closes, it comes back. For that idea see [проекта за отворен прозорец и климатик](https://realhomeautomations.com/bg/projects/otvoren-prozorets-klimatikat-spira-i-se-vrashta-sam/).

 ## Стъпки

- We turn on the sensor, connect it to Wi-Fi and add it to Home Assistant through Matter following the manufacturer's guide. We expect a device with CO₂, temperature and humidity sensors.
- Слагаме го на височината, на която седим, далеч от прозореца, отдушника и директния дъх. В ъгъл зад мебел показанията се бавят.
- We watch the values for a day or two without an automation. We note what it shows when it is "stuffy" and when it is "fresh".
- Създаваме автоматизацията по примера. Заменяме entity ID-тата и прага със свои.
- Добавяме второ известие за влажност само ако ни трябва, например над примерни 65 %.

 ```
# Example: add to a new automation (Edit in YAML).
# The entity IDs, the threshold and the notify service name are examples.
alias: Air the room when CO2 stays high
triggers:
  - trigger: numeric_state
    entity_id: sensor.airguard_carbon_dioxide
    above: 1000
    for:
      minutes: 5
conditions:
  - condition: state
    entity_id: binary_sensor.living_room_window
    state: "off"
actions:
  - action: notify.mobile_app_my_phone
    data:
      title: Time to air the room
      message: "CO2 is {{ states('sensor.airguard_carbon_dioxide') }} ppm."
mode: single
```

 The window condition is removed if we don't have such a sensor. Then the notification comes even with the window open, until the value drops below the threshold.

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

- Нормален случай: затваряме стаята с няколко души и чакаме стойността да мине прага за пет минути. Известието идва.
- Граничен случай: отваряме прозореца. След проветряване стойността пада и известие не идва повече, докато не се покачи отново. Тригерът сработва само при преминаване през прага.
- Missing data: when the sensor is off, the state becomes "unavailable". The automation does not start. If we want a notification for an off sensor, we make a separate rule.

 ## If it doesn't work

- There is no device in Matter → Wi-Fi is on a different network or the Matter Server is not working → we check Settings → Devices & services.
- The notification comes too often → the threshold is too low for the room → we raise it or extend "for".
- The values look "stuck" → the sensor is in a bad place → we move it to an open space.

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

- Сензорът дава ориентир за проветряване.
- The readings of sensors in this class can differ; we don't take them as a reference.
- Without Home Assistant there are no notifications. The sensor can also be read in the manufacturer's app, if we use it.
- Спираме автоматизацията от Settings → Automations.

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

 Checked against the Home Assistant documentation, 22.11.2026, and a read-only reading of Marto's Home Assistant (see ha-evidence).

- [Home Assistant: Matter](https://www.home-assistant.io/integrations/matter/)
- [Home Assistant: Numeric state trigger](https://www.home-assistant.io/docs/automation/trigger/#numeric-state-trigger)
- [Home Assistant Companion: известия](https://companion.home-assistant.io/docs/notifications/notifications-basic/)