Page 6 of 17
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Friday 03 February 2017 19:40
by JC38
As Deennoo said, the Jeedom plugin blea is a very nice one.
Unfortunately, the linked url in not working and i can't find the working one.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Friday 03 February 2017 20:27
by deennoo
JC38 wrote:As Deennoo said, the Jeedom plugin blea is a very nice one.
Unfortunately, the linked url in not working and i can't find the working one.
Thx to point it out, looks lke they hide it, no probleme, i put all plugon files on a zip and on a drive :
https://drive.google.com/open?id=0B-QCl ... DY5REJGUU0, as i got it will update this zip to each update.
Nice Exemple of Open Source app...
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Sunday 05 February 2017 13:56
by an0key
Nice! Purchased 5 of these from aliexpress a little while back. Sat down and got them setup this morning, using your code and all working well - Thanks.
One thing I did notice is, just using them out the box, without updating or configuring, made the demo.py b0rk with no name set. However commenting that out got it working.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Sunday 05 February 2017 19:30
by remb0
uppercase + latest version is working
deennoo Thanks for the Info, I hope that somebody with the right skill read this and wants to help
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Saturday 11 February 2017 8:48
by tontze
an0key wrote:
Nice! Purchased 5 of these from aliexpress a little while back. Sat down and got them setup this morning, using your code and all working well - Thanks.
One thing I did notice is, just using them out the box, without updating or configuring, made the demo.py b0rk with no name set. However commenting that out got it working.
Could you share how you did it ? Im not skilled in coding and such, but i have few of these sensors, and i think they are brilliant. Now using only mobile app , but would like to get them to domoticz
-T
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Saturday 11 February 2017 13:42
by remb0
deennoo do you think it is hard to get that plugin working?
Re: RE: Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Saturday 11 February 2017 15:10
by deennoo
remb0 wrote:deennoo do you think it is hard to get that plugin working?
Yeap à bit :
- WE have to mâke it run under all distro
- understand how works blue.py
- Create à hardware choice (which ble dongle to use)
- enable device détection
- make a form for each device created (beacon, or miflora, or awox plugin, or payblub device doesn't nées the same "switch"
- Create command for each device
- Stop beacon détection when sending an ordre
- and more and more
Etc etc
À huge job, and note native for me...First have to made the hardware page, with dongle sélection.
Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 14 February 2017 14:10
by krizzz
Getting my flora sensor within a few weeks. Looks like the flora community within domoticz is growing!
Update, sensor received and the pain is real. I do not really get it to work properly. My steps
1. Install Bluez (
http://www.elinux.org/RPi_Bluetooth_LE)
When done with installing just scanned with
and my sensor is getting picked up by the Bluetooth USB I have in my Raspberry1.
Code: Select all
pi@raspberrypi:~/work/bluepy/bluez-5.32 $ sudo hcitool lescan
LE Scan ...
C4:7C:8D:63:18:14 (unknown)
C4:7C:8D:63:18:14 Flower care
2. Clone the repository from
https://github.com/open-homeautomation/miflora into dedicated directory
Code: Select all
pi@raspberrypi:~/miflora $ git clone https://github.com/open-homeautomation/miflora
3. Checked my Bluetooth USB mac adress
Code: Select all
pi@raspberrypi:~/miflora/miflora $ hciconfig
4. Changed the mac dress of the Miflora in the demo.py file
5.Then give the command
to start the script gives me troubles. See the code below:
Code: Select all
Traceback (most recent call last):
File "demo.py", line 1, in <module>
from miflora.miflora_poller import MiFloraPoller, \
File "/home/pi/miflora/miflora/miflora/miflora_poller.py", line 12, in <module>
from subprocess import PIPE, Popen, TimeoutExpired
ImportError: cannot import name TimeoutExpired
5. So, TimeoutExpires should be installed if I understand correctly. So let's try:
Code: Select all
pi@raspberrypi:~/miflora/miflora $ pip install TimeoutExpired
But it's not downloding anything...... What to do next?
Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Monday 06 March 2017 21:21
by krizzz
Also I have issues trying to add the mi flora sensor to the Flower Care iOS app. It sees the sensor but cannot connect because "the connect decive is not available for your country" en does not pair. Anyone know a way to pair?
Verzonden vanaf mijn iPhone met Tapatalk
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Monday 06 March 2017 22:12
by LouiS22
Bad news: our chinese friends decided to release an international and a china only sensor (according to a post read at 4pda.ru).
But I found a solution: find a vpn service with a china based ip. Connect it. Then download a fake gps app from play store (sorry this one is for android only). Set your location to somewhere china. Then enable developer settings on your phone, choose mock location and ser it to the fake gps app.
Now you can add your sensor into mi flower app as before.
Update: forgot to mention a step: set your location to GPS ONLY.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 07 March 2017 9:02
by LouiS22
Justinb81 wrote:Any suggestion for a China VPN service? I thought VPN was blocked in China.. I can use the kids android tablet to temporarily change location to add the new ones 1x
Personally I used PureVPN. Be aware, you have to pay for their services (4 or 5 USD for 30 days). Then you can choose a China based server, and connect it via VPN. That way you'll have a chinese IP. I'm sure there are other services (maybe a free one as well), but I was lazy to google further
One more thing: there was a firmware update popped today. Version number will be 2.9.2.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 07 March 2017 16:10
by deennoo
LouiS22 wrote:
One more thing: there was a firmware update popped today. Version number will be 2.9.2.
I think that since we got a script who work, maybe it's not necessary to update fw, this update maybe loose all our benefice.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 07 March 2017 16:24
by LouiS22
Justinb81 wrote:I updated all to 2.9.2, the script continues to work. The connection is more reliable now compared to previous release (less strange values)
+1 the update indeed solved bluetooth connection issues. Anyway, deennoo has a point: a future fw update could possible break something what's working now. Hopefully that won't happen soon.
Fun fact: our topic is monitored by our fellow iot fans at 4pda.ru
Was a bit funny to read my solution in russian
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 07 March 2017 16:43
by blauwebuis
I've created a page on the Wiki about this. Please help to streamline it
https://www.domoticz.com/wiki/Mi_Flora_Bluetooth_LE
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 07 March 2017 17:11
by deennoo
Next step is to made à python plugin for domoticz guys !
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Thursday 09 March 2017 10:40
by Gargy
I buy one Miflora sensor 2 weeks ago, no problem, run OK with Android App. So I ordered another two, couldn't get them to pair with my phone, different Country.
I started to look how to implement those Sensor into my Domoticz system and I found some guidelines on the web. Playing a little bit around and got them working - even those two with wrong Country!
My Domoticz Server runs on RPI 2, but data grabbing from MiFlora sensor runs on RPi3 (because of BT and RPi should be near the plants). Here is my screenshot:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Thursday 09 March 2017 21:21
by krizzz
Nice!!! I will try the wiki tomorrow
Verzonden vanaf mijn iPhone met Tapatalk
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Thursday 09 March 2017 22:15
by JC38
@LouiS22 and Justinb81
So, do you succeed using your "china only" sensor. I've got a VPN but I can't go to Mainland China, I've only found servers in Honk-Kong or Macau.
Can you use them with the android Mi Home and Flower Care applications ?
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Thursday 09 March 2017 23:25
by woodtrix
Well, if they broke them, I am going to dispute it with aliexpress. I do not have a china ip and I can not fake my gps location with my iphone... I will call that bricked cuz their official app does not work anymore. Money back please...
I will update the github to show a warning...
Re: RE: Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Friday 10 March 2017 7:10
by deennoo
woodtrix wrote:Well, if they broke them, I am going to dispute it with aliexpress. I do not have a china ip and I can not fake my gps location with my iphone... I will call that bricked cuz their official app does not work anymore. Money back please...
I will update the github to show a warning...
Lol just remeber that Xiaomi officially only sell to China market.
You made import, this your risk !