issues icon indicating copy to clipboard operation
issues copied to clipboard

xiaomi_mjyd02yla not getting any updates

Open ptrsconsulting opened this issue 2 years ago • 1 comments

The problem

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 devices are very close to the esp.

Anything obvious that I missed? Any help appreciated.

Which version of ESPHome has the issue?

2022.8.0

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2022.6.7

What platform are you using?

ESP32

Board

ESP32-WROOM-30PIN

Component causing the issue

No response

Example YAML snippet

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"

Anything in the logs that might be useful for us?

No response

Additional information

No response

ptrsconsulting avatar Oct 10 '22 09:10 ptrsconsulting

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.

ptrsconsulting avatar Oct 15 '22 12:10 ptrsconsulting