Xiaomi LYWSD03MMC sensors have unknown status in HA

Hello,

I have 4 Xiaomi LYWSD03MMC sensors, and by now 3 of them got unknown status in HA. (I was loosing one sensor in about every two months.:)) Now I got to point that it is quite annoying.

I also have 3 LYWSDCGQ they work without a glitch.

Details:
ESP board: Lolin D32
ESPHome version: 2021.12.1
HA Core: 2021.12.5
LYWSD03MMC fw: ATC firmware

ESPHome config:

esphome:
  name: esp32_ble
  platform: ESP32
  board: lolin_d32
  
wifi:
  ssid: ****
  password: ****
  manual_ip: 
    static_ip: 192.168.0.151
    gateway: 192.168.0.1
    subnet: 255.255.255.0

  ap:
    ssid: ****
    password: ****

captive_portal:

logger:

api:

ota:

esp32_ble_tracker:

# All sensors have basically the same config, so it just an example
sensor:
  - platform: xiaomi_lywsd03mmc
    mac_address: A4:C1:38:93:64:AF
    bindkey: 8a97beb0816e8affd5d37d6b9db2c3d8
    temperature:
      name: "Outdoor Temperature"
    humidity:
      name: "Outdoor Humidity"
    battery_level:
      name: "Outdoor Battery Level"

Snippet from the ESPHome log:

[16:58:02][D][esp32_ble_tracker:719]: Found device A4:C1:38:93:64:AF RSSI=-34
[16:58:02][D][esp32_ble_tracker:740]:   Address Type: PUBLIC
[16:58:02][D][esp32_ble_tracker:742]:   Name: 'ATC_9364AF'

The sending state message is missing.

Sensor status:

What I tried so far:

Any suggestions?

Thank you in advance.
David

Use ATC platform

sensor:
  - platform: atc_mithermometer
1 Like

Thank you. Makes sense.
I was following a guide from last year when I was setting these sensors up and I guess this platform option was not available back then.

1 Like