---
title: "Едно дистанционно за лампи, климатици и сцени в Home Assistant"
description: "Един безжичен бутон Aqara Wireless Mini Switch T1 с три действия: единично превключва лампи, двойно спира климатика, дълго пуска сцена. Логиката е в Home Assistant и се сменя без да пипаме бутона."
canonical: "https://realhomeautomations.com/bg/projects/edno-distantsionno-za-lampi-klimatitsi-i-stseni-v-home-assistant/"
language: bg-BG
updated: 2026-11-23T16:24:03+00:00
---

# Едно дистанционно за лампи, климатици и сцени в Home Assistant

Един безжичен бутон Aqara Wireless Mini Switch T1 с три действия: единично превключва лампи, двойно спира климатика, дълго пуска сцена. Логиката е в Home Assistant и се сменя без да пипаме бутона.

> Канонична HTML страница: https://realhomeautomations.com/bg/projects/edno-distantsionno-za-lampi-klimatitsi-i-stseni-v-home-assistant/

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

## Tools required

- Aqara Wireless Mini Switch T1 (Zigbee бутон, единично, двойно и дълго натискане; батерия CR2032)
- Zigbee хъб или Home Assistant със Zigbee адаптер
- Лампи, климатик и сцена в Home Assistant


## What readers will learn

- Да сдвоиш Zigbee бутон и да видиш неговите действия
- Да вържеш единично, двойно и дълго натискане към различни действия
- Understand why "toggle" can get out of step with the state


## Skill requirements

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

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

- [Умно дистанционно Aqara Wireless Mini Switch T1](https://realhomeautomations.com/bg/produkt/smart-remote-control-aqara-wireless-mini-switch-t1/index.md)

In the living room there are two lamps, an AC and a TV. All of that wants a different app or remote. A small wireless button with "single", "double" and "long" press events can trigger three different actions, and Home Assistant decides what they are. We make one button that switches lights, the AC and a scene.

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

 One button for the living room with three actions: a single press toggles the lamps, a double press starts or stops the AC, and a long press turns on a "Movie" scene. The actions are examples and can be changed in minutes, because the logic is in Home Assistant, not in the button.

 Boundary: one button can't replace everything. We keep it to three actions, otherwise nobody in the house remembers it.

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

- [Aqara Wireless Mini Switch T1](https://realhomeautomations.com/bg/produkt/smart-remote-control-aqara-wireless-mini-switch-t1/): един бутон, може да се залепи или да стои на маса. Работи с батерия CR2032 според описанието на продукта.
- Home Assistant with a Zigbee coordinator. According to the manufacturer the button works with an Aqara hub; in Home Assistant we connect it directly to a Zigbee coordinator. Zigbee2MQTT supports the model (as "Wireless mini switch T1").
- Устройствата, които управляваме: лампи или контакти, климатик с интеграция в Home Assistant, сцена.

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

 Време за настройка: около 30 минути. Сдвояването на Aqara устройства понякога изисква няколко опита.

 ## Как работи

 The button sends an action: a single, double or long press. Zigbee2MQTT passes them on as "action" with values like `single`, `double` и `hold`. Автоматизацията гледа какво действие е дошло и пуска свързаното действие в Home Assistant. Един бутон, три тригера, три отделни действия.

 That way nothing is "baked into" the button. If tomorrow we want the double press to do something else, we change it in Home Assistant without touching the button.

 ## Как е у нас

 In Marto's Home Assistant, control of lights, ACs and scenes already goes through buttons: for example a switch by the bed toggles the main lamp and the LED strips, and in the hallway there is a scene switch for the lights. We did not find such an Aqara T1 button with exactly these three actions at Marto's, so the example below is not a copy of a home setup.

 ## Стъпки

- Слагаме нова батерия и сдвояваме бутона към Zigbee мрежата. Очакваме ново устройство със сензор за батерия и действие.
- Натискаме бутона с трите вида натискане и записваме какво показва Home Assistant (Developer tools или логът на Zigbee2MQTT).
- Решаваме какво правят единичното, двойното и дългото натискане. Записваме го на лист и го показваме на домашните.
- We create one automation for each action, or one with "choose". The example uses "choose".
- Залепваме бутона на мястото и го пробваме от различни разстояния.

 ```
# Example: one button, three actions. The topics and entity IDs are examples.
# Works with Zigbee2MQTT (MQTT action). With ZHA the trigger is different.
alias: Living room button - lamps, AC, scene
triggers:
  - trigger: mqtt
    topic: zigbee2mqtt/living_room_button/action
actions:
  - choose:
      - conditions: "{{ trigger.payload == 'single' }}"
        sequence:
          - action: light.toggle
            target:
              entity_id: light.living_room
      - conditions: "{{ trigger.payload == 'double' }}"
        sequence:
          - action: climate.set_hvac_mode
            target:
              entity_id: climate.living_room
            data:
              hvac_mode: "off"
      - conditions: "{{ trigger.payload == 'hold' }}"
        sequence:
          - action: scene.turn_on
            target:
              entity_id: scene.living_room_movie
mode: single
```

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

- Нормален случай: всяко натискане прави своето действие за около секунда.
- Граничен случай: двойно натискане се чете като две единични. Тогава добавяме кратка пауза или го сменяме с дълго натискане.
- Липсващи данни: със слаба батерия бутонът може да не реагира. Ключът за лампите продължава да работи.

 ## If it doesn't work

- It won't pair → the battery is weak or the coordinator is far away → we move closer and try again.
- Действие няма → името на топика или на устройството е различно → гледаме реалното име в Zigbee2MQTT.
- The AC doesn't respond → its integration is missing in Home Assistant → we check it separately from the button.

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

- It doesn't detect which device is on: the action is "toggle", not "make it be on". When the states get out of step, we replace the action with an explicit turn on or turn off.
- Без Home Assistant и Zigbee мрежата бутонът не върши нищо. Обикновените ключове остават.
- Изключваме бутона, като изтрием автоматизацията или го махнем от стената.

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

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

- [Zigbee2MQTT: MQTT топици и съобщения](https://www.zigbee2mqtt.io/guide/usage/mqtt_topics_and_messages.html)
- [Home Assistant: MQTT trigger](https://www.home-assistant.io/docs/automation/trigger/#mqtt-trigger)
- [Home Assistant: Choose](https://www.home-assistant.io/docs/scripts/#choose-a-group-of-actions)
- [zigbee-herdsman-converters: Aqara Wireless mini switch T1](https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/lumi.ts)