张三叔

Home Assistant Bluetooth Gateway

 
Overview

Project Source
ESP32 WiFi/Bluetooth Gateway ESP32 GetWay
Demonstration Video (Tutorial)
HomeAssistant Bluetooth Gateway Instructions
 
Project Description
First of all, it looks good! Good looking! Good looking! As for the gateway, the better the ecology, the greater the effect. Secondly, this is a wired smart home product, which does not need to receive 2.4G network interference.
We all know that esp32 has wifi and bluetooth. However, wifi and bluetooth are time-shared and multiplexed. For the bluetooth gateway, the wireless performance is greatly reduced. At this time, the wireless must be turned off and the Ethernet must be turned on, making the bluetooth gateway more violent in accepting bluetooth signals.
Supports esp Bluetooth proxy and Bluetooth gateway Passive BLE monitor.
Bluetooth supported device query: https://custom-components.github.io/ble_monitor/devices
Later, friends can add a human presence sensor and stand it up on the desktop. It can detect the presence of human body and serve as a Bluetooth gateway.

The PCB display
 
recommends easy-to-use and cheap Bluetooth sub-devices that are continuously updated! ! !
1. The third-party firmware of Xiaomi Bluetooth Thermometer and Humidity Meter 2 emits broadcasts in BThome format. The flashing tutorial is as follows. The flashing tutorial of Xiaomi Bluetooth Thermohumidity Meter
2. Hailingke’s LD2410B and LD2410C only cost more than a dozen yuan compared to the hundreds of yuan on the market. It smells really good. The chip + shell only costs about thirty. The effect is as follows.
 
Software description:
The public part of esphome.yaml
has compiled firmware download at the lowest link
esphome Ethernet part:
ethernet:

  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 1
 
esphome Bluetooth proxy part:


esp32_ble_tracker: #Recommended use idf framework
  scan_parameters: #Enhance scanning
    interval: 1100ms
    window: 1100ms
    active: true

bluetooth_proxy:
  active: true #Enable proxy active connections
  cache_services: true #Optional this will significantly speed up active connections
 

esphome indicator part:

switch:    
  - platform: gpio
    pin:
      number: 2
      inverted: true
    name: wifi_led
    disabled_by_default: true #Do not expose ha
    id: wifi_led #The wifi indicator light is useless and is turned off by default
    restore_mode: ALWAYS_OFF
 
  - platform: gpio
    pin:
      number: 15
      inverted: true
    name: ble_led # It detects Bluetooth receiving signals when it is turned on, and flashes like crazy in an infinite loop QAQ
    disabled_by_default: true #Do not expose ha
    id: ble_led
 
  - platform: gpio
    pin:
      number: 16
      inverted: true
    disabled_by_default: true #Do not expose ha
    name: net_led #Ethernet and ha api Connection indicator, detects disconnected network cable or HA, always on, normal
    id: net_led
 

Tip: When using Espressif's original esp32wroom32d, the automatic download function will disappear after welding the network port, but Anxin will not. Built-in burning button.
The green light status of the network port is reversed, the crystal oscillator part has been deleted, and the crystal oscillator is not used by default, causing gpio0 to be lowered. I don’t know why. You can check the reason in the comment of the original author, the salt soda guy, Baitou Xiaohuang.
The PCB has marked components for easy soldering. The shell is priced at 1688, 8 yuan each is expensive, Taobao 15QAQ





参考设计图片
×
Design Files
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-22 12:56:42

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号