Hello,
At the outset, sorry for my English, I’m learning it but I’m at the beginning of this adventure
I have a problem reading data from Xiaomi lywsd03mmc thermometers. For this purpose, I used ESP32, which is to read data via Bluetooth and communicate with the Home Assistant. The problem is the VERY slow reading from the thermometers. Sometimes it is once every three minutes, sometimes 50 minutes.
I have two lywsd03mmc. Usually it collects only the temperature from one of them, after a few minutes it collects the moisture from the other, and then again collects another sample after some time, etc.
Is the problem with WiFi enabled in ESP32 and it has a problem with Bluetooth communication? The distance between the devices doesn’t really matter. The same is true for thermometers 1 meter or 5 meters away.
I also used the program: https://github.com/karolkalinski/esp32-snippets/blob/b2cea6d6a8b8c0a191dcd07bcfd246a1370362eb/Mijia-LYWSD03MMC-Client/Mijia-LYWSD03MMC-Client.ino
to check if my ESP32 is broken. Conclusions:
Reading is hassle free and immediate.
No bindkey is needed.
Please help me with the configuration in ESPHome or the optional troubleshooting options.
As I understand it the collection time in esphome is governed by the lywsd03mmc. When the ziaomi device reports something, esphome reads it and reports it.
Perhaps the temp and humidity is not changing very oftrn?
I wrote in the first post: https://github.com/karolkalinski/esp32-snippets/blob/b2cea6d6a8b8c0a191dcd07bcfd246a1370362eb/Mijia-LYWSD03MMC-Client/Mijia-LYWSD03MMC-Client.ino