Adding xiaomi_mjyd02yla platform

I’ve been using esphome for quite a while now connecting with a few Mi thermometers and lately I’ve set up 2 mjyd02yl-a night ligths, retrived the bindkey with the Xiaomi Cloud Tokens Extractor and the MAC address with some android app and I can’t make it work. I see no information in the logs, like the lamp devices were not connecting at all, while the thermometers are still working fine. Both night lapms are very close to the esp device.

Anything obvious that I missed? Where to start debugging? I can’t even find any tutorials for mjyd02yla anywhere so far.
Any help appreciated.

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

sensor:
  - platform: atc_mithermometer
    mac_address: "A4:C1:38:C6:XX:XX"
    # bindkey: "xxxxf0a2ec874d47af1e5fbc999c7bxx"
    temperature:
      name: "Lounge Temperature"
    humidity:
      name: "Lounge Humidity"
    battery_level:
      name: "Lounge Battery Level"
    signal_strength:
      name: "Lounge Signal"
  - platform: atc_mithermometer
    mac_address: "A4:C1:38:10:XX:XX"
    # bindkey: "xxxx24c5bb2bc933abc9b0567177dexx"
    temperature:
      name: "Office Temperature"
    humidity:
      name: "Office Humidity"
    battery_level:
      name: "Office Battery Level"
    signal_strength:
      name: "Office Signal"
  - platform: atc_mithermometer
    mac_address: "A4:C1:38:52:XX:XX"
    # bindkey: "xxxx92185b71778d818f22dc0e1eadxx"
    temperature:
      name: "Bedroom Temperature"
    humidity:
      name: "Bedroom Humidity"
    battery_level:
      name: "Bedroom Battery Level"
    signal_strength:
      name: "Bedroom Signal"
  - platform: atc_mithermometer
    mac_address: "A4:C1:38:78:XX:XX"
    # bindkey: "xxxx2ca00d5bc901f9a845f8f78496xx"
    temperature:
      name: "Bathroom Temperature"
    humidity:
      name: "Bathroom Humidity"
    battery_level:
      name: "Bathroom Battery Level"
    signal_strength:
      name: "Bathroom Signal"

binary_sensor:
  - platform: xiaomi_mjyd02yla
    name: "Bedroom Night Light 1"
    mac_address: "68:AB:BC:4C:XX:XX"
    bindkey: "xxxx8de7c0c5dxx85727568c07238bxx"
    idle_time:
      name: "Bedroom Night Light 1 Idle Time"
    light:
      name: "Bedroom Night Light 1 Light Status"
    battery_level:
      name: "Bedroom Night Light 1 Battery Level"
    illuminance:
      name: "Bedroom Night Light 1 Illuminance"
  - platform: xiaomi_mjyd02yla
    name: "Bedroom Night Light 2"
    mac_address: "68:AB:BC:4D:XX:XX"
    bindkey: "xxxx348e6xxd58a0beceb1685afea2xx"
    idle_time:
      name: "Bedroom Night Light 2 Idle Time"
    light:
      name: "Bedroom Night Light 2 Light Status"
    battery_level:
      name: "Bedroom Night Light 2 Battery Level"
    illuminance:
      name: "Bedroom Night Light 2 Illuminance"

I found in logs the esp can find both lamp devices but for some reason these devices are not sending any data? I can’t figure this out.

[14:37:29][D][esp32_ble_tracker:803]: Found device 68:AB:BC:4C:XX:XX RSSI=-56
[14:37:29][D][esp32_ble_tracker:824]:   Address Type: PUBLIC
[14:37:29][D][esp32_ble_tracker:826]:   Name: 'MJYD2S'
[14:37:34][D][esp32_ble_tracker:803]: Found device 68:AB:BC:4D:XX:XX RSSI=-84
[14:37:34][D][esp32_ble_tracker:824]:   Address Type: PUBLIC
[14:37:34][D][esp32_ble_tracker:826]:   Name: 'MJYD2S'

these logs show up whenever the lamps see some motion which matches the documentation. I don’t know how to move further with the investigation and why there is no data sent.

Did you check this motion detecting night light tells Home Assistant when you pass by - Roger Frost ?
ESPhome seems to have still support for that lamp Xiaomi Mijia BLE Sensors — ESPHome