openmqttgateway works too without custom firmware, the orginal firmware works without bindkey, but it connects to the LYWSD03MMC (just as the Custom fork of the Xiaomi Mija BLE integration with Bind Key ) and that has negative impact on the battery life.
Maybe it’s a stupid question and maybe it was answered already but I need to have 100% certain about it. Will this work with Raspberry Pi 4 (4 or 8gb)? I ask this because of the bluetooth connectivity. When I first saw this sensor, I got the impression that I must have an ESP32. So, is the raspberry pi capable of supporting this?
Yes, this wil work. I have a raspberry 4 and two LYWSD03MMC sensors. They work fine with BLE monitor. Note however that the Bluetooth range of a raspberry is limited. My sensor is at approx 5 meter with 2 walls in between. and works fine. But a sensor at the second floor is not working, probably due to the reinforced concrete floor. So it depends on the location (and structure of your walls/floor)
Thanks for the feedback. I will use the sensor near the pi, for now. If I need, I buy the ESP32 later.
Btw, I don’t have the Pi yet, I was thinking about the 4gb version. From what I see is more than enough for home assistant, right? No need for the 8gb.
Hi Ernst,
How can you connect two LYWSD03MMC sensors to home assistant? Just tried that via Configuration file, but I can only make 1 sensor to communicate with HA successfully. The other one, stays “unknow”.
Here goes the code on the configuration file for the integration of the sensors:
The config looks ok, although it isnt needed to specify all options. Most of them are optional.
So either the mac or encryption key is wrong (the last should give an error in the log) or there is an issue with the signal strength. The faq on github gives some tips on how to improve the communication. Normally it is just too far away or an SSD attached to you pi in blocking the signal.
Thanks Ernst. Actually it were the encryption keys that were wrong. Configure them a long time ago, and now they were different. Didn’t know they changed over time.
Thanks for you guidance
Hi guys! This is my first message . I did the integration with HACS and BLE Monitor… has anyone tried to run automation with this. I cant find a way. I can see the sensor data but it never triggers it . My setup is Xiami sensor → raspberry pi with BT.
I like the Passive BLE Monitor custom component a lot…but Bluetooth coverage from my HA host was not good enough to pick up the BLE updates across my house from the Xiaomi LYWSD03MMC sensors…so I found another inexpensive solution that increased Bluetooth coverage considerably…and now I get reliable updates. Here’s my writeup on the solution: Using Switchbot Mini Plug with Tasmota32 and MQTT as BLE Gateway for Xiaomi LYWSD03MMC Temp Sensors