ESP32 bluetooth proxy and sensors via IO

I’m using Hailege ESP32 ESP-32S ESP-WROOM-32 and installed ESPHome Bluetooth Proxy on. To use it with Mi Temperature and Humidity Monitor 2.

But I also want to use the ESP32 with the BME280 sensor and wondering this is still possible?

It should be, although the bluetooth proxy keeps an esp32 quite busy. Something as simple as a BME280 should be fine though.

I have these things on my esp32:

  • monochrome light (dimmer)
  • bme280 sensor
  • 2 external buttons for light control
  • 4 buttons defined for light control
  • bt proxy (receiving, i guess appr. 4 of my 8 xiaomi’s)

And all works perfectly.

1 Like

Hallo Pavel,

I got the bme280 sensor working.
Which monochrome light (dimmer) you using?

I use

light: 
  - platform: monochromatic

I don’t think that any LED ceiling lamp is available already with ESP inside to be pre-programmed with esphome (if it is, then please, let me know…), so i bought a simple ceiling LED lamp and replaced original driver with my own.

I don’t use “light” card to set dimm level however, but only three pre-set dimm levels: MIN, MID and MAX. Fourth button is, of course, OFF.

Hi,

just want to ask who your code looks like for the BLE proxy and the BME280.
Mine is not working.

substitutions:
  name: esp32-bluetooth-proxy-3bcc68
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false

i2c:
  sda: 21
  scl: 22
  scan: true
  id: bus_a

sensor:
  - platform: bme280
    temperature:
      name: "BME280 Temperature"
      id: bme280_temperature
    pressure:
      name: "BME280 Pressure"
      id: bme280_pressure
    humidity:
      name: "BME280 Relative Humidity"
      id: bme280_humidity
    address: 0x77
    update_interval: 15s
1 Like

Mine is not working either.
Here is the code. Once I added the Sensor Section and wirelessly loaded into the board, I got an error.
Any help from anyone ???

substitutions:
  name: "bt-proxy-ea0678"
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

binary_sensor:
  - platform: status
    name: "BT Status"

sensor:
  - platform: dht
    pin: GPIO27    # replace GPIOxx with the GPIO pin number to which the DHT22 sensor is connected
    temperature:
      name: "DHT22 Temperature"
      filters:
        - offset: -2.0   # replace -2.0 with the calibration offset value for your specific DHT22 sensor
    humidity:
      name: "DHT22 Humidity"
      filters:
        - offset: 3.0    # replace 3.0 with the calibration offset value for your specific DHT22 sensor  

Hello,

I was working for me with this configuration:

substitutions:
  name: esp32-bluetooth-proxy-3c7dd0
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password


i2c:
  sda: 21
  scl: 22
  scan: true



# Example configuration entry YAML
sensor:
  - platform: bme280
    temperature:
      name: "Floor Temperature"
      oversampling: 16x
    pressure:
      name: "Floor Pressure"
    humidity:
      name: "Floor Humidity"
    address: 0x76
    update_interval: 40s

But I changed to home assistant yellow and it stoped working.

So I wanted to set it up again but now struggle with it

I flash the ESP32 via

than I go to ESPHome in Home Assistant and click on Adopt, Install.
This was working but adding addition configuration for made linking error.

start looking for solution (Friday evening) did not find any.
Updated to 2023.4.4 and went to bed.

Today. I have the problem after “ESPHome in Home Assistant and click on Adopt, Install.”
The device is not conecting anymore to WIFI.

Using ESPHome - 2023.3.2
using the following ESP32: https://www.amazon.de/dp/B07YKBY53C?ref_=pe_27091401_487187591_302_E_DDE_dt_1
(2 devices same problem)

Update 15.04.2023

I solved the problem with:

Conecting ESP32 via USB to Home Assistant.
Adding new device in ESPHome
Edit config and use the one:

substitutions:
  name: esp32-bluetooth-proxy-3c7dd0
  friendly_name: Bluetooth Proxy
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key: #######


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

With this the Bluetooth Proxy is working.

Edit Config with:

i2c:
  sda: 21
  scl: 22
  scan: true



# Example configuration entry YAML
sensor:
  - platform: bme280
    temperature:
      name: "Floor Temperature"
      oversampling: 16x
    pressure:
      name: "Floor Pressure"
    humidity:
      name: "Floor Humidity"
    address: 0x76
    update_interval: 40s

Now I have the values of the sensor connected to ESP32 and the Bluethooth Sensors.

which error you getting?