But one problem that I haven’t been able to sort out with the ESP32 connection is that I only get one device despite that everyone is set-up. I don’t know why, probably some fundamental thing that isn’t set correctly. Will have to look into that when I start adding sensors outside. There have also been a lot of talks about BLE to MQTT. Thing is, when adding the one sensor through ESPhome I get it into HA, why do I need MQTT?
Don’t hesitate to ask if there is anything I can help with!!!
Passive BLE Monitor takes care of the communication over Bluetooth. In more detail, it makes an HCIDUMP of all the messages, and uses the ones that use the “mibeacon” format from Xiaomi. It uses the internal bluetooth of the system (e.g. a raspberry pi) or can use an external dongle, for better reception.
Our FAQ gives some tips for better bluetooth range, bottom line is using an external dongle, preferably with antenna, and avoid placing SSD drives close to the bluetooth radio. SSD’s are known to interfere with bluetooth.
I had them all in the same area and I got them setup in plant monitor, they worked fine there.
Ill try that link from Ernst - I think its newer than what I was reading and using…
I get connection issues too on occasion, but only when it’s like foreseeable. I.e. the far away window on the second floor. You shouldn’t have any connection issues with the built in RPI if it works comfortably with other devices. With the caveat that some kind of disturbances of course can be hard to rule out.
Turning an ESP32 into a BLE to WiFi bridge is super easy following the right instructions. I wonder if it can’t be done in under 2 minutes from start to finish. Let me know if you want me to walk you through it.
That sounds like a better route than I was trying. If you have a link for that I would definitely give that a go. I gave up on them because of the bluetooth.
You need a ESP32 board and a USB A to USB Micro (not USB Mini) cable that can carry data communication. I.e. I have a bunch of USB A/USB Micro cables that don’t work because they are only for loading. If they have the USB symbol ( ) its a start but not a gurantee. Any cheap development board option from Amazon should work, I got mine for 8 EUR.
Just go to the Add-on Store under the Superviser tab:
Under Home Assistant Community Add-ons, install: ESPHome. I am not sure if I had to make any changes to the configuration. But maybe you have to enable advanced mode to be able to download community add-ons?
Upload, make sure that you select the correct port – instead of OTA – up in the right corner (it should be a 3rd option under the OTA and the Conbee port (if you have conbee) shown in the picture above).
Here comes a bit of a tricky part. The ESP32 has two buttons. I think they differ a bit, but on mine I have to press boot and EN at the same time for a few seconds, then release EN. Some said just boot or boot for 3 sec and then EN once. I also had to do it during the upload, like I couldn’t just press the buttons and then hit upload, but had to wait for the upload to compile most things, then hit the buttons, and it would upload.
Its of course optimal to have some kind of 3rd printer and print a box for the ESP 32 and then either connect it to an USB power outlet somewhere suitable between your RPI and Mi Plant, but I just got my hanging hidden under a shelf loading. THere is also batteries to get.
I’ve noticed that the moisture reader isn’t a one size fit all. It varies grately what kind of earth you are using and how big the pot is. A sensor that goes down to the bottom of the pot (i.e. if its a small pot) will read higher moisture levels much longer. In some gigantic pots I have, it goes down towards 15-20 just days after watering it. Also, I have some orchides, and the earth in their pots is very lofty with pieces of woods in it etc. I don’t get any good moisture readings from them.
I think its best to water your plant to a proper level, and then just follow how it progress.
On the conductivity levels, you seem to have really fine earth in yours. Keep it at least above 4-500.
To the eye, the light is perfectly even. But since three different devices show that its all over the place all the time, I recon it must be pulsating outside wave lengths the eyes can’t see…