esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

LYWSD03MMC with custom pvvx advertisements not received on Xiaomi Mijia BLE component #2155

Closed TFhdKi95ae8L closed 3 years ago

TFhdKi95ae8L commented 3 years ago

5 pcs LYWSD03MMC with custom pvvx firmware version 3.2 and advertisement type custom do not get received by the ESP32. I have 1 MiFlora, 2 CGDK2 and 1 LYWSD02 working on the ESP32. I can also see the 5 LYWSD03MMC in the logs now and then; "found device MAC_ADDRESS, address type: PUBLIC, name: UNIT_NAME. The units send data, it can be received by the telink flasher webpage.

Operating environment/Installation (Hass.io/Docker/pip/etc.): HA OS on RPi 4

ESP (ESP32/ESP8266, Board/Sonoff): ESP32-WROOM-32

ESPHome version (latest production, beta, dev branch) Latest

Affected component: https://esphome.io/components/sensor/xiaomi_ble.html#lywsd03mmc

Description of problem: See intro

Problem-relevant YAML-configuration entries:

sensor:
  - platform: atc_mithermometer
    mac_address: "A4:C1:38:xx:xx:xx"
    temperature:
      name: "Keuken Temperature"
    humidity:
      name: "Keuken Humidity"
    battery_level:
      name: "Keuken Battery-Level"

Logs (if applicable):

Additional information and things you've tried:

Reflashing the units with v3.2, changing advertising type to mi-like and adding dummy bindkey.

probot-esphome[bot] commented 3 years ago

atc_mithermometer source atc_mithermometer issues atc_mithermometer recent changes (message by IssueLinks)

TFhdKi95ae8L commented 3 years ago

I have changed the advertisement type to atc1441 and it works flawlessly now. Might be worth to mention this in the docs? The firmware is custom, but the advertisement type shouldn't be "custom"