Finding sensor MAC address

Dear all,

I am new to HASS and ESPHome, and try to integrate my RadonEye Sensor by following these instructions to discover its MAC address: Radon Eye BLE Sensors — ESPHome

I have an ESP32 controller, which I can integrate into ESPHome, and which also connects and replies when being flashed with the standard configuration. However, when I add the relevant lines to find the MAC address (as suggested in the link above), the controller becomes unresponsive, and I cannot get the logs with the MAC address. The validation in ESPHome seems succesful though.

Do I put the code in the wrong place? Any help is greatly appreciated!

Here is the complete yaml:

esphome:
  name: esphome-test
  friendly_name: esphome-test

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:
  level: DEBUG # Required for the tracker to show the device

esp32_ble_tracker:
radon_eye_ble:


# Enable Home Assistant API
api:
  encryption:
    key: "MYKEY"

ota:
  password: "MYPWD"

wifi:
  ssid: "MYSSID"
  password: "MYWIFIPASS"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esphome-Test Fallback Hotspot"
    password: "MYPWD"

captive_portal:

I have the following HASS versions installed on a Raspberry Pi 5 through the PI Image Tool:

  • Core 2024.3.3
  • Supervisor 2024.03.1
  • Operating System 12.1
  • Frontend 20240307.0

Did you compile upload the firmware?

Yes, I have connected the controller via USB and pressed install. The process did not show any errors, and the ESP Home dashboard shows the controller as online.

So what happens when you press logs at that point.

Nothing (just a blank output) happend when I press the log button. I have now though press the reset button, and now I get the following output when pressing the log button (it still does not contain the MAC address). Do you have any suggestions? Thanks!

INFO ESPHome 2024.3.1
INFO Reading configuration /config/esphome/esphome-test.yaml...
INFO Starting log output from 192.168.0.27 using esphome API
INFO Successfully connected to esphome-test @ 192.168.0.27 in 0.101s
INFO Successful handshake with esphome-test @ 192.168.0.27 in 0.121s
[18:02:01][I][app:102]: ESPHome version 2024.3.1 compiled on Apr  3 2024, 07:12:26
[18:02:01][C][wifi:580]: WiFi:
[18:02:01][C][wifi:408]:   Local MAC: 94:E6:86:3D:71:84
[18:02:01][C][wifi:413]:   SSID: '[redacted]'
[18:02:01][C][wifi:416]:   IP Address: 192.168.0.27
[18:02:01][C][wifi:420]:   BSSID: 38:10:D5:6F:11:D0[redacted]
[18:02:01][C][wifi:421]:   Hostname: 'esphome-test'
[18:02:01][C][wifi:423]:   Signal strength: -54 dB ▂▄▆█
[18:02:01][C][wifi:427]:   Channel: 1
[18:02:01][C][wifi:428]:   Subnet: 255.255.255.0
[18:02:01][C][wifi:429]:   Gateway: 192.168.0.1
[18:02:01][C][wifi:430]:   DNS1: 192.168.0.1
[18:02:01][C][wifi:431]:   DNS2: 0.0.0.0
[18:02:01][C][logger:166]: Logger:
[18:02:01][C][logger:167]:   Level: DEBUG
[18:02:01][C][logger:169]:   Log Baud Rate: 115200
[18:02:01][C][logger:170]:   Hardware UART: UART0
[18:02:01][C][captive_portal:088]: Captive Portal:
[18:02:01][C][mdns:115]: mDNS:
[18:02:01][C][mdns:116]:   Hostname: esphome-test
[18:02:01][C][ota:096]: Over-The-Air Updates:
[18:02:01][C][ota:097]:   Address: esphome-test.local:3232
[18:02:01][C][ota:100]:   Using Password.
[18:02:01][C][ota:103]:   OTA version: 2.
[18:02:01][W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 8 restarts
[18:02:01][C][api:139]: API Server:
[18:02:01][C][api:140]:   Address: esphome-test.local:6053
[18:02:01][C][api:142]:   Using noise encryption: YES

And this is?

The local MAC address of the ESP32, isn’t it!?

Apologies, it is, you are looking for the bluetooth mac address…my mistake…

Are there any bluetooth devices in the vicinity of the device? Just leave the debug log on for a while, and scan for bluetooth with your phone or something ?