I have the m5stamp-c3u working with ESPHome and esp32_ble_tracker tracker. At first it seemed to be switching the antenna between BT and wifi, so it would miss BT broadcasts. OTA updates were also not working. However, when changing the config to that below, it is now working as expected. Having said that, when I move it to where its to belong, it’s not working properly - it doesn’t connect to wifi. If I plug it into my laptop at the same location, it works, so I’m still troubeshooting what’s going on. Consequently, I have not yet tried ESPresence.
board: esp32-c3-devkitm-1
variant: ESP32C3
framework:
type: esp-idf
sdkconfig_options:
CONFIG_BT_BLE_50_FEATURES_SUPPORTED: y
CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y
CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10"
UPDATE: It seems it was working all along. With esp32_ble_tracker it seems to take a minute or two to connect to wifi, and I interpreted this as not working at all. Having the LED go from red (on_boot priority 600), to yellow (priority 260, Wifi connected) to green (once api is connected) made it a lot easier to see what was happening.