ESP32 BLE and sensor on one device

Hi everyone,

Maybe a really simple question but i want to do the following: i have an ESP32 with ESPHome and a BME680 sensor running. Runs great. But i have also a couple of bluetooth LYWSD03MMC sensors what i also want to readout by bluetooth. So my idea was to integrate it in one ESP32. But i can’t get it working. I thought about just adding (run pvvx firmware) the pvvx sensor lines and done. But that it’s not working. My last try is below. How could i get this working?

esphome:
  name: esp32-bme680
  platform: ESP32
  board: esp32dev

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: secret

wifi:
  ssid: "secret"
  password: "secret"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "secret"
    password: "secret"

captive_portal:

i2c:
  sda: 19
  scl: 23
  scan: true
  id: bme680

bme680_bsec:
    # i2c address
    # -----------
    # Common values are:
    # - 0x76
    # - 0x77
    # Default: 0x76
    address: 0x76

    # Temperature offset
    # ------------------
    # Useful if device is in enclosure and reads too high
    # Default: 0
    #temperature_offset: 0

    # IAQ calculation mode
    # --------------------
    # Available options:
    # - static (for fixed position devices)
    # - mobile (for on person or other moveable devices)
    # Default: static
    iaq_mode: static
    
    # Interval at which to save BSEC state
    # ------------------------------------
    # Default: 6h
    state_save_interval: 3h

sensor:
  - platform: bme680_bsec
    temperature:
      # Temperature in °C
      name: "BME680 Temperature"
      sample_rate: lp
      filters:
        - median
    pressure:
      # Pressure in hPa
      name: "BME680 Pressure"
      sample_rate: lp
      filters:
        - median
    humidity:
      # Relative humidity %
      name: "BME680 Humidity"
      sample_rate: lp
      filters:
        - median
    gas_resistance:
      # Gas resistance in Ω
      name: "BME680 Gas Resistance"
      filters:
        - median
    iaq:
      # Indoor air quality value
      name: "BME680 IAQ"
      filters:
        - median
    iaq_accuracy:
      # IAQ accuracy as a numeric value of 0, 1, 2, 3
      name: "BME680 Numeric IAQ Accuracy"
    co2_equivalent:
      # CO2 equivalent estimate in ppm
      name: "BME680 CO2 Equivalent"
      filters:
        - median
    breath_voc_equivalent:
      # Volatile organic compounds equivalent estimate in ppm
      name: "BME680 Breath VOC Equivalent"
      filters:
        - median
    battery_level: 
      name: "PVVX Battery-Level"
    battery_voltage: 
      name: "PVVX Battery-Voltage"
    humidity1: 
      name: "PVVX Humidity"
    mac_address: "A4:C1:38:AA:BB:CC"
    platform: pvvx_mithermometer
    temperature1: 
      name: "PVVX Temperature"
text_sensor:
  - platform: bme680_bsec
    iaq_accuracy:
      # IAQ accuracy as a text value of Stabilizing, Uncertain, Calibrating, Calibrated
      name: "BME680 IAQ Accuracy"

You need to add the bluetooth tracker component:

1 Like