I really want to use your custom ESPHome RD200 support but I can’t for the life of me get this thing to work. I trimmed down the config file to this:
esphome:
name: radon
esp32:
board: nodemcu-32s
logger:
level: DEBUG
esp32_ble_tracker:
ble_client:
- mac_address: F4:0C:75:57:64:22
id: radon1
sensor:
- platform: radon_eye_rd200
ble_client_id: radon1
radon:
name: Radon1
No WiFi, no OTA, no API – just the ESP32 definition and the required RD200 support. Here’s the boot looping result:
[D][esp32_ble_client:048]: [0] [F4:0C:75:57:64:22] Found device
[D][esp32_ble_tracker:216]: Pausing scan to make connection...
[I][esp32_ble_client:064]: [0] [F4:0C:75:57:64:22] 0x01 Attempting BLE connection
[I][radon_eye_rd200:015]: Connected successfully!
[D][esp32_ble_tracker:327]: Starting scan...
[D][sensor:127]: 'Radon1': Sending state 49.58000 Bq/m³ with 0 decimals of accuracy
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d546e PS : 0x00060a30 A0 : 0x800d4f29 A1 : 0x3ffc84b0
A2 : 0x00000000 A3 : 0x428e147b A4 : 0x0000008f A5 : 0x3ffbc780
A6 : 0x007bee88 A7 : 0x003fffff A8 : 0x800d54a0 A9 : 0x3ffc8450
A10 : 0x807f40fe A11 : 0x3ffc29d8 A12 : 0x00000000 A13 : 0x3ffc847c
A14 : 0x3ffbc840 A15 : 0x00000000 SAR : 0x0000001f EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000058 LBEG : 0x400906b1 LEND : 0x400906c1 LCOUNT : 0xffffffe7
Backtrace:0x400d546b:0x3ffc84b00x400d4f26:0x3ffc84e0 0x400d50ed:0x3ffc8500 0x400d5105:0x3ffc8580 0x400d1fae:0x3ffc85a0 0x4018d7d1:0x3ffc85d0 0x400d4410:0x3ffc85f0 0x4018d8b5:0x3ffc8700 0x4018d949:0x3ffc8720 0x400d55e4:0x3ffc8740 0x400d7462:0x3ffc8770 0x400d8aa5:0x3ffc8790
ELF file SHA256: 0000000000000000
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
[I][logger:258]: Log initialized
[I][app:029]: Running through setup()...
[D][esp32_ble_tracker:327]: Starting scan...
[I][app:062]: setup() finished successfully!
[W][radon_eye_rd200:141]: Connection in progress
[I][app:102]: ESPHome version 2022.12.8 compiled on Feb 4 2023, 00:08:23
[C][logger:293]: Logger:
[C][logger:294]: Level: DEBUG
[C][logger:295]: Log Baud Rate: 115200
[C][logger:296]: Hardware UART: UART0
[C][radon_eye_rd200:166]: Radon 'Radon1'
[C][radon_eye_rd200:166]: State Class: 'measurement'
[C][radon_eye_rd200:166]: Unit of Measurement: 'Bq/m³'
[C][radon_eye_rd200:166]: Accuracy Decimals: 0
[C][radon_eye_rd200:166]: Icon: 'mdi:radioactive'
[C][esp32_ble_tracker:870]: BLE Tracker:
[C][esp32_ble_tracker:871]: Scan Duration: 300 s
[C][esp32_ble_tracker:872]: Scan Interval: 320.0 ms
[C][esp32_ble_tracker:873]: Scan Window: 30.0 ms
[C][esp32_ble_tracker:874]: Scan Type: ACTIVE
[C][esp32_ble_tracker:875]: Continuous Scanning: True
[C][ble_client:027]: BLE Client:
[C][ble_client:028]: Address: F4:0C:75:57:64:22
[D][esp32_ble_client:048]: [0] [F4:0C:75:57:64:22] Found device
[D][esp32_ble_tracker:216]: Pausing scan to make connection...
[I][esp32_ble_client:064]: [0] [F4:0C:75:57:64:22] 0x01 Attempting BLE connection
[I][radon_eye_rd200:015]: Connected successfully!
[D][esp32_ble_tracker:327]: Starting scan...
[D][sensor:127]: 'Radon1': Sending state 49.58000 Bq/m³ with 0 decimals of accuracy
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d546e PS : 0x00060a30 A0 : 0x800d4f29 A1 : 0x3ffc84b0
A2 : 0x00000000 A3 : 0x428e147b A4 : 0x0000008f A5 : 0x3ffbc780
A6 : 0x007bee88 A7 : 0x003fffff A8 : 0x800d54a0 A9 : 0x3ffc8450
A10 : 0x71f28344 A11 : 0x3ffc29d8 A12 : 0x00000000 A13 : 0x3ffc847c
A14 : 0x3ffbc840 A15 : 0x00000000 SAR : 0x0000001f EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000058 LBEG : 0x400906b1 LEND : 0x400906c1 LCOUNT : 0xffffffe7
Backtrace:0x400d546b:0x3ffc84b00x400d4f26:0x3ffc84e0 0x400d50ed:0x3ffc8500 0x400d5105:0x3ffc8580 0x400d1fae:0x3ffc85a0 0x4018d7d1:0x3ffc85d0 0x400d4410:0x3ffc85f0 0x4018d8b5:0x3ffc8700 0x4018d949:0x3ffc8720 0x400d55e4:0x3ffc8740 0x400d7462:0x3ffc8770 0x400d8aa5:0x3ffc8790
ELF file SHA256: 0000000000000000
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
[I][logger:258]: Log initialized
[I][app:029]: Running through setup()...
[D][esp32_ble_tracker:327]: Starting scan...
[I][app:062]: setup() finished successfully!
[W][radon_eye_rd200:141]: Connection in progress
[I][app:102]: ESPHome version 2022.12.8 compiled on Feb 4 2023, 00:08:23
[C][logger:293]: Logger:
[C][logger:294]: Level: DEBUG
[C][logger:295]: Log Baud Rate: 115200
[C][logger:296]: Hardware UART: UART0
[C][radon_eye_rd200:166]: Radon 'Radon1'
[C][radon_eye_rd200:166]: State Class: 'measurement'
[C][radon_eye_rd200:166]: Unit of Measurement: 'Bq/m³'
[C][radon_eye_rd200:166]: Accuracy Decimals: 0
[C][radon_eye_rd200:166]: Icon: 'mdi:radioactive'
[C][esp32_ble_tracker:870]: BLE Tracker:
[C][esp32_ble_tracker:871]: Scan Duration: 300 s
[C][esp32_ble_tracker:872]: Scan Interval: 320.0 ms
[C][esp32_ble_tracker:873]: Scan Window: 30.0 ms
[C][esp32_ble_tracker:874]: Scan Type: ACTIVE
[C][esp32_ble_tracker:875]: Continuous Scanning: True
[C][ble_client:027]: BLE Client:
[C][ble_client:028]: Address: F4:0C:75:57:64:22
[D][esp32_ble_client:048]: [0] [F4:0C:75:57:64:22] Found device
[D][esp32_ble_tracker:216]: Pausing scan to make connection...
[I][esp32_ble_client:064]: [0] [F4:0C:75:57:64:22] 0x01 Attempting BLE connection
[I][radon_eye_rd200:015]: Connected successfully!
[D][esp32_ble_tracker:327]: Starting scan...
[D][sensor:127]: 'Radon1': Sending state 49.58000 Bq/m³ with 0 decimals of accuracy
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d546e PS : 0x00060c30 A0 : 0x800d4f29 A1 : 0x3ffc84b0
A2 : 0x00000000 A3 : 0x428e147b A4 : 0x0000008f A5 : 0x3ffbc780
A6 : 0x007bee88 A7 : 0x003fffff A8 : 0x800d54a0 A9 : 0x3ffc8450
A10 : 0xa202bf02 A11 : 0x3ffc29d8 A12 : 0x00000000 A13 : 0x3ffc847c
A14 : 0x3ffbc840 A15 : 0x00000000 SAR : 0x0000001f EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000058 LBEG : 0x400906b1 LEND : 0x400906c1 LCOUNT : 0xffffffe7
Backtrace:0x400d546b:0x3ffc84b00x400d4f26:0x3ffc84e0 0x400d50ed:0x3ffc8500 0x400d5105:0x3ffc8580 0x400d1fae:0x3ffc85a0 0x4018d7d1:0x3ffc85d0 0x400d4410:0x3ffc85f0 0x4018d8b5:0x3ffc8700 0x4018d949:0x3ffc8720 0x400d55e4:0x3ffc8740 0x400d7462:0x3ffc8770 0x400d8aa5:0x3ffc8790
ELF file SHA256: 0000000000000000
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
[I][logger:258]: Log initialized
[I][app:029]: Running through setup()...
[D][esp32_ble_tracker:327]: Starting scan...
[I][app:062]: setup() finished successfully!
[W][radon_eye_rd200:141]: Connection in progress
[I][app:102]: ESPHome version 2022.12.8 compiled on Feb 4 2023, 00:08:23
[C][logger:293]: Logger:
[C][logger:294]: Level: DEBUG
[C][logger:295]: Log Baud Rate: 115200
[C][logger:296]: Hardware UART: UART0
[C][radon_eye_rd200:166]: Radon 'Radon1'
[C][radon_eye_rd200:166]: State Class: 'measurement'
[C][radon_eye_rd200:166]: Unit of Measurement: 'Bq/m³'
[C][radon_eye_rd200:166]: Accuracy Decimals: 0
[C][radon_eye_rd200:166]: Icon: 'mdi:radioactive'
[C][esp32_ble_tracker:870]: BLE Tracker:
[C][esp32_ble_tracker:871]: Scan Duration: 300 s
[C][esp32_ble_tracker:872]: Scan Interval: 320.0 ms
[C][esp32_ble_tracker:873]: Scan Window: 30.0 ms
[C][esp32_ble_tracker:874]: Scan Type: ACTIVE
[C][esp32_ble_tracker:875]: Continuous Scanning: True
[C][ble_client:027]: BLE Client:
[C][ble_client:028]: Address: F4:0C:75:57:64:22
I’m using this type of ESP32 device (Chinese), yellow plastic on the bottom side, and 38-pins:
I’m wondering if I have the wrong board or platform or framework selected… I just can’t understand how you determine which one of those to use for these no-name Chinese ESP32s. I have absolutely nothing plugged into it, I’m just trying to use it’s blutooth to connect to the RD200.
Now I’m really up against a wall because the old method of including the rd200.h file doesn’t work with new ESPHome so I’m trying to get this resolved before I lose my data gathering abilities.