Completely agree with this. I have been using miflora for more than a year with a bluetooth dongle and command line readings from a linux script. I changed battery two months ago and that happens at the same time I was migrating to home assistant with an ESP32 reading with ESPHome the miflora unit. It has last for only two months with that config.
Also note that I upgraded the miflora firmware with the updated version which says in the release notes something about ‘fixing issues with battery’.
If fixing issues with battery makes the battery last for two months now, I prefer when it was ‘broken’ and lasts one year for sure.
I was about to create bug report, but then checked the documentation, which states that it defaults to active scanning.
Now I added this to my esphome sketch:
esp32_ble_tracker:
scan_parameters:
active: false
This should turn off active scanning. All my Mi floras are out of battery, so I will do a test with one mi flora and hope it’s battery lasts longer.
Well yes, it states that for the sensor type, but the parenting tracker type defaults to active scanning, which is the piece of code you abmantis linked to. If you search for it a bit, people are using the combo of switching the BLE tracker to passive plus the flora sensor.
Edit: But feel free to create a bug report if you feel it is one.
…I updated to 3.2.2 too. (don’t remember from which version, I suppose the previous one). Updating and high levels of battery consumption matches with firmware upgrade.
I’m using an esp32 board with bluetooth and ESPHome firmware on it. At the same time I change battery I change the way of reading miflora info. Thats why I’m not sure which is the culprit. Previously I used a bluetooth dongle on a raspberry pi.
Maybe the firmware upgrade was the culprit. It will be nice if there is someway of downgrading our units. To test.
I’ve had two uncovered on the balcony running pretty well for about two years. In recent months, the battery of one that gets more rain exposure now keeps getting a flat quickly (a month or so). So I thought I’d try this as a hopeful and easy trouble shooting attempt. They’re both on the same firmware/configuration etc.
I have stopped paying attention to the battery sensor and just decided to let them fail before I change the battery. So far so good. I guess they could have changed the algorithm for battery level percentage.
Hi @Gymnae How are your mi flora sensor batteries doing?
I’m on the verge of ordering some and trying to see if the 2mo battery life has been solved.
There’s a myriad of options on aliexpress and who knows what i’l actually get. Some say green is the CN version, some dont.
I’m also wondering about using them in larger planters. ~10-12" deep. There was a larger version but it seems to have fallen off the face of the earth, and never worked right from what I can find.