Part 1 - How to Connect Bluetooth Devices to Home Assistant with Bluetooth Proxy (ESP32 via Esphome)
bluetooth-proxy-home-assistant-esp32-part1
蓝牙子设备分类
大部分使用蓝牙广播的设备都可以接入,由于esphome的限制,基于ble_client的还不能与基于广播的用一个esp32搞定
There are actually two kinds of Bluetooth.
Normal Bluetooth, which will pair two devices and they then send communication to each other in a way they negotiate in the beginning, like head phones and speakers.
Bluetooth Low Energy (BLE), which is mainly a fire and forget communication, which means the devices will send their message and hope something hears it, like many type sensors, such as thermometers, presence/location trackers and electrical tooth brushes, just to mention a few.
只支持Active BLE connection的蓝牙设备
ble_client
BLE devices
如果米家蓝牙传感器默认没有BLE Advertisements 广播,那么必须先接入米家App才能打开广播
case 1.
HomeAssistant插一个蓝牙USB后Passive BLE monitor可以用。但是搜索范围很窄
于是买了块ESP32
解决因为蓝牙穿墙能力弱导致蓝牙信号无法穿墙的问题
解决方案
gateway 1. esp32 ESP32 Bluetooth Proxy
only BLE devices (and their Home Assistant integrations) are supported.
gateway 2.BLE Gateway - 针对只支持Active BLE connection的蓝牙设备
- 蓝牙信号过不来的就走开源ESPHome蓝牙网关,接入到HA上的 Passive BLE Monitor 集成.
- 接入只支持Active BLE connection的蓝牙设备
网关制作:https://bbs.hassbian.com/thread-16331-1-1.html
想用esphome proxy来接收蓝牙信号到Passive BLE monitor。蓝牙中继器,主要是能中继, 不过也可以说网关: HA上可以不用插蓝牙适配器, 就可以通过这货接入蓝牙设备.
https://www.matterxiaomi.com/boards/topic/32131/how-to-connect-bluetooth-devices-to-home-assistant-with-bluetooth-proxy-esp32-via-esphome
Comments
Comments are closed