---
title: "BLE дистанционно в Home Assistant през Bluetooth proxy"
description: "Shelly BLU дистанционно с четири бутона, чиито натискания Home Assistant чува през Bluetooth proxy като събития. Започваме с гледане на събитията, после добавяме автоматизация."
canonical: "https://realhomeautomations.com/bg/projects/ble-distantsionno-v-home-assistant-prez-bluetooth-proxy/"
language: bg-BG
updated: 2026-11-23T16:24:03+00:00
---

# BLE дистанционно в Home Assistant през Bluetooth proxy

Shelly BLU дистанционно с четири бутона, чиито натискания Home Assistant чува през Bluetooth proxy като събития. Започваме с гледане на събитията, после добавяме автоматизация.

> Канонична HTML страница: https://realhomeautomations.com/bg/projects/ble-distantsionno-v-home-assistant-prez-bluetooth-proxy/

- **Difficulty:** Средно ниво
- **Build time:** 30–60 минути
- **Време за четене:** 4 minutes

## Tools required

- Shelly BLU RC Button 4 (BLE дистанционно с четири бутона)
- Bluetooth шлюз или proxy (Shelly Plus/Pro/Gen3/Gen4, Shelly BLU Gateway или ESP32 с ESPHome)
- Home Assistant с BTHome


## What readers will learn

- Да свържеш BLE устройство през Bluetooth proxy
- Да видиш и разбереш събитията на бутоните
- Да вържеш бутон към действие


## Skill requirements

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

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

- [Bluetooth дистанционно Shelly BLU RC Button 4, с включен магнитен държач](https://realhomeautomations.com/bg/produkt/bluetooth-remote-control-shelly-blu-rc-button-4-with-magnetic-holder-included/index.md)

A small remote with four buttons is handy on the bedside table or on a desk. It doesn't need a manufacturer's hub and isn't connected by a cable. But Home Assistant has to hear the buttons, and the remote talks over Bluetooth with a short range. Here we connect it through a Bluetooth proxy and watch what events it sends.

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

 BLE дистанционно, чиито бутони Home Assistant вижда като събития: единично, двойно, тройно и дълго натискане за всеки от четирите бутона. Върху тях вързваме автоматизации, например лампа, сцена или щора. Първата цел е само да видим събитията; автоматизация добавяме после.

 Limit: the buttons don't change over time and carry no state. The remote sends messages and doesn't know whether the lamp is on.

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

- [Shelly BLU RC Button 4](https://realhomeautomations.com/bg/produkt/bluetooth-remote-control-shelly-blu-rc-button-4-with-magnetic-holder-included/): едно дистанционно с четири бутона и магнитна стойка.
- Home Assistant with the BTHome integration, which recognises Shelly BLU devices. The Shelly integration doesn't support Shelly BLU devices except the BLU TRV.
- Bluetooth proxy в обхвата на дистанционното: Shelly устройство от второ поколение или по-ново с Bluetooth, [Shelly BLU Gateway](https://realhomeautomations.com/bg/produkt/smart-bluetooth-hub-shelly-blu-gateway/), или ESP32 със софтуера ESPHome Bluetooth proxy. Може и самият сървър на Home Assistant да има Bluetooth адаптер.

 Нужен е Bluetooth шлюз (Shelly устройство Plus, Pro, Gen3 или Gen4, или Shelly BLU Gateway) или Home Assistant с Bluetooth.

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

 ## Как работи

 The remote broadcasts short "advertisements" over Bluetooth Low Energy at every press. The proxy listens to them and forwards them to Home Assistant over the network. This way one proxy in the hallway covers buttons that are several rooms away from the server.

 The BTHome protocol describes how to read such an advertisement. Home Assistant recognises it and creates an event entity for each button. For Shelly devices, the Home Assistant documentation specifies that they can forward advertisements but don't carry active GATT connections. For buttons this doesn't matter, because they work with advertisements.

 ## Как е у нас

 As of 22.11.2026, we found no Shelly BLU remote or Bluetooth proxy in Marto's Home Assistant. That is why we don't describe a home setup. For buttons, Marto has other devices: wireless switches and IKEA BILRESA.

 ## Стъпки

- Осигуряваме Bluetooth proxy. При Shelly устройство отваряме опциите на интеграцията Shelly и включваме Bluetooth скенер (активно или пасивно слушане). При ESP32 инсталираме ESPHome Bluetooth proxy.
- In Home Assistant we check in Settings → Devices & services → Bluetooth that the proxy shows up as an adapter.
- We put the remote into pairing mode following the Shelly guide. We expect a "BTHome" discovery to appear in Home Assistant. We add it.
- Ако дистанционното е с включено криптиране, Home Assistant ще поиска ключ (bindkey) от 32 шестнадесетични знака. Търсим го в настройките на устройството по ръководството на Shelly.
- Натискаме всеки бутон и гледаме в Developer tools → States как се променят event entities. Записваме какви типове събития идват.
- Правим автоматизация по примера, например първият бутон превключва лампа.

 ```
# Example: button 1 toggles a lamp. The entity IDs are examples.
# Find your exact ID in Settings -> Devices & services -> BTHome.
alias: BLE remote - button 1 toggles a lamp
triggers:
  - trigger: state
    entity_id: event.shelly_blu_rc_button_4_button_1
conditions:
  - condition: template
    value_template: "{{ trigger.to_state.attributes.event_type == 'press' }}"
actions:
  - action: light.toggle
    target:
      entity_id: light.bedroom_lamp
mode: single
```

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

- Normal case: a single press toggles the lamp in about a second. In the event entity's state we see the event type.
- Edge case: a double press sends "double", not two singles. If the single arrives as well, we add a type check to the condition.
- Липсващи данни: изваждаме или изключваме proxy-то. Бутоните спират да се чуват, лампите продължават да работят от обикновения си ключ.

 ## If it doesn't work

- It isn't discovered → the remote isn't in pairing mode or the proxy is far away → we move closer and repeat the pairing.
- Събитията закъсняват или се губят → слаб Bluetooth сигнал → слагаме proxy по-близо или добавяме още един.
- It asks for a bindkey → the device has encryption → we take the key from the manufacturer's settings.

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

- Bluetooth има малък обхват и стени го отслабват. Proxy в съседна стая може да не стигне.
- Без Home Assistant и proxy бутоните не правят нищо. Обикновените ключове за светлините остават.
- Изключваме управлението, като изтрием автоматизацията или махнем дистанционното от Home Assistant.

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

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

- [Home Assistant: BTHome](https://www.home-assistant.io/integrations/bthome/)
- [Home Assistant: Bluetooth](https://www.home-assistant.io/integrations/bluetooth/)
- [Home Assistant: за Bluetooth и Bluetooth proxy](https://www.home-assistant.io/connectivity/bluetooth/)
- [Home Assistant: Shelly (Bluetooth скенер и BLU устройства)](https://www.home-assistant.io/integrations/shelly/)
- [ESPHome: Bluetooth Proxy](https://esphome.io/components/bluetooth_proxy.html)
- [BTHome: формат на BLE обявите](https://bthome.io/)