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.
Yes, sure, they all work fine, 4 gb should be enough for normal installations.
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:
ble_monitor:
hci_interface: 0
discovery: True
active_scan: False
report_unknown: False
batt_entities: False
decimals: 1
period: 60
log_spikes: False
use_median: False
restore_state: False
devices:
- mac: 'A4:C1:38:ED:55:97'
name: 'WineSensor'
encryption_key: '1b74335c4fad14e3e7897************'
temperature_unit: C
decimals: 2
use_median: False
restore_state: default
- mac: 'A4:C1:38:4A:A4:04'
name: 'Clarinha'
encryption_key: 'ffcfb7ac0377fd3deb31c1ab**********'
temperature_unit: C
decimals: 2
use_median: False
restore_state: default
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
Normally they only change when you re-add them to MiHome. But good to know it is solved.
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.
Maybe post what you tried. Then we can see what is wrong.
Did you enter your encryption key in the configuration options of the device?
Sorry, misunderstood your question. Show us what you have now. You can trigger automations on a state change (e.g. humidity above xx).
HI guys! Thanks for help here. I was able to make it work! There was misconfiguration. .
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
Nice. I have the same issue in my place so I have a couple of pi zeros doing the same thing.