Esphome sensors xiaomi_lywsd03mmc go unavailable

Hi all,

My Esphome esp32_ble_tracker sensors based on xiaomi_lywsd03mmc go “unavailable” in home assistant when the ESP32 board disconnects from Wifi in order to listen for BLE devices.

Is there any way to workaround that ?

esphome:
  name: esp32_ble_tracker
  platform: ESP32
  board: esp-wrover-kit

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_key
  manual_ip:
    static_ip: 192.168.3.14
    gateway: 192.168.3.254
    subnet: 255.255.255.0

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

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: !secret ota_passwd

ota:
  password: !secret ota_passwd

esp32_ble_tracker:

sensor:
  - platform: xiaomi_lywsd03mmc
    mac_address: "A4:C1:38:AC:AA:BB"
    bindkey: "05e04076be48f427f3d90e166d0fbd5e"
    temperature:
      name: "Bathroom Temperature"
    humidity:
      name: "Bathroom Humidity"
    battery_level:
      name: "Bathroom Battery Level"
  - platform: xiaomi_lywsd03mmc
    mac_address: "A4:C1:38:00:CC:DD"
    bindkey: "05e04076be48f427f3d90e166d0fbd5e"
    temperature:
      name: "Kitchen Temperature"
    humidity:
      name: "Kitchen Humidity"
    battery_level:
      name: "Kitchen Battery Level"

Well, maybe the workaround for this is to publish the sensors values to mqtt?