Page 10 of 17
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Monday 20 March 2017 20:58
by krizzz
After using it now for some days, i am noticing that 8 out of 10 times the sensor will be timed out with the script. Reason, the distance from the pi to the sensor is apparently to large. I have probably 8 meters in between and 2 doors and I hoped i would be just enough.... To bad!
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 21 March 2017 6:49
by tontze
If you can, moving sensor by 10cm could make a great difference, or moving pi
To see signal strength :
Cancel it, and :
Note the RSSI strength on Flower Care

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 21 March 2017 21:38
by madrian
Hello guys,
Today my Flower Monitor finally arrived, few hours later I want to smash it with a hammer.
I am unable to connect it with my phone (Mi Phone app), I tried with iOS and Android too.
When I hit search for device in the app and I place battery in the Flower Monitor I see it in the app for a few sec and the Flower Monitor blink twice, but when the app tries to connect, all I get is "timeout". I tried everything. What could be wrong?
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 21 March 2017 21:43
by blauwebuis
Read the past two pages: Xiaomi has blocked access.
But it doesn't matter, you can use it with Domoticz without the app.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 21 March 2017 22:12
by madrian
Ahhh, great. Thanks for the answer. Tomorrow I try the Domoticz method.

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Wednesday 22 March 2017 6:46
by tontze
blauwebuis wrote:Read the past two pages: Xiaomi has blocked access.
But it doesn't matter, you can use it with Domoticz without the app.
If it has latest update, it needs to be close to your phone (10cm)
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Wednesday 22 March 2017 7:25
by madrian
It doesn^t work, even for 0cm.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Wednesday 22 March 2017 9:46
by LouiS22
hpapagaj wrote:It doesn^t work, even for 0cm.
Try to replace the battery. But I have a bad news: had a similiar one, it turned to be defected.

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Wednesday 22 March 2017 16:47
by physiker123
tontze wrote:physiker123 wrote:I looked at the app (Flower Care), but when it detects my sensors it wants to make the firmware update. I cannot delete the notification (Nexus 5x with Android 7.1), so I have to restart the app. Therefore, I only have seconds to look at the app
I looked at the FAQ, and it gave as well the values of 500 for the fertility, but 35 for the moisture. I had a look at two different plants, but the values where the same (I hope I looked right, see above).
I will just look, if 35 is too much, and then lower the value.
You can close it via X on the right upper corner.
There is no X. I use the values in my smart home system, so I do not really need the app.

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Wednesday 22 March 2017 17:14
by tontze
physiker123 wrote:tontze wrote:physiker123 wrote:I looked at the app (Flower Care), but when it detects my sensors it wants to make the firmware update. I cannot delete the notification (Nexus 5x with Android 7.1), so I have to restart the app. Therefore, I only have seconds to look at the app
I looked at the FAQ, and it gave as well the values of 500 for the fertility, but 35 for the moisture. I had a look at two different plants, but the values where the same (I hope I looked right, see above).
I will just look, if 35 is too much, and then lower the value.
You can close it via X on the right upper corner.
There is no X. I use the values in my smart home system, so I do not really need the app.

Weird, i do have X what i use to prevent update

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 28 March 2017 21:44
by krizzz
Still having some issues. Since 2 days ago the script stop reading the values from the Miflora sensor.
Today I rebooted my Domoticz Pi and tried to connect manuallyto the mac adress of the sensor Code: Select all
sudo gatttool -b C4:7C:8D:63:18:14 -I
and then tried the
command and received
Code: Select all
Attempting to connect to C4:7C:8D:63:18:14
Error: connect: Connection refused (111)
So, i am now trying to figuring out how this is possible. I am reading some things that downgrading my bluez package could be the solution, but I do not know how to do this

. I will report back when I have more info.[/s]
Never mind, unplugging the bluetooth USB dongle was enough to connect. Weird.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Tuesday 28 March 2017 22:24
by tontze
Rebooting or shutting Raspberry down really not disconnect power everywhere, sometimes it's needed to replug peripherals or disconnect usb power from Raspberry

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Friday 31 March 2017 9:07
by Dlanor
After seeing this topic i wanted to have one myself. I am getting an SyntaxError and am unable to sort it out.. What am i doing wrong?
Code: Select all
sudo python3 domoticz.py
File "domoticz.py", line 31
def update("C4:7C:8D:62:30:1E","0005","0003","0004","0006")
^
SyntaxError: invalid syntax
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Friday 31 March 2017 9:26
by LouiS22
Dlanor wrote:After seeing this topic i wanted to have one myself. I am getting an SyntaxError and am unable to sort it out.. What am i doing wrong?
Code: Select all
sudo python3 domoticz.py
File "domoticz.py", line 31
def update("C4:7C:8D:62:30:1E","0005","0003","0004","0006")
^
SyntaxError: invalid syntax
I think the problem is with "0005" and so on. That really should be only "5" - without the 0s. Also, I think you replaced the values in the wrong place.
you have to replace the IDs later, somewhere around line 90.
Code: Select all
# format address, moist (%), temp (°C), lux, fertility
print("\n1: Vrouwentong (sansevieria trifasciata)")
update("C4:7C:8D:62:42:88","470","138","140","141")
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Friday 31 March 2017 10:48
by Dlanor
LouiS22 wrote:
I think the problem is with "0005" and so on. That really should be only "5" - without the 0s. Also, I think you replaced the values in the wrong place.
you have to replace the IDs later, somewhere around line 90.
Code: Select all
# format address, moist (%), temp (°C), lux, fertility
print("\n1: Vrouwentong (sansevieria trifasciata)")
update("C4:7C:8D:62:42:88","470","138","140","141")
Have changed it but no change.
Code: Select all
sudo python3 domoticz.py
File "domoticz.py", line 31
def update("C4:7C:8D:62:30:1E","5","3","4","6")
^
SyntaxError: invalid syntax
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Friday 31 March 2017 10:53
by LouiS22
Dlanor wrote:LouiS22 wrote:
I think the problem is with "0005" and so on. That really should be only "5" - without the 0s. Also, I think you replaced the values in the wrong place.
you have to replace the IDs later, somewhere around line 90.
Code: Select all
# format address, moist (%), temp (°C), lux, fertility
print("\n1: Vrouwentong (sansevieria trifasciata)")
update("C4:7C:8D:62:42:88","470","138","140","141")
Have changed it but no change.
Code: Select all
sudo python3 domoticz.py
File "domoticz.py", line 31
def update("C4:7C:8D:62:30:1E","5","3","4","6")
^
SyntaxError: invalid syntax
you have to replace the IDs later, somewhere around
line 90. You're changing the ids in the wrong place now!!!!!!!!
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Friday 31 March 2017 11:24
by Dlanor
LouiS22 wrote:
you have to replace the IDs later, somewhere around line 90. You're changing the ids in the wrong place now!
Works! Thanks!
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Sunday 02 April 2017 13:04
by LouiS22
https://www.aliexpress.com/item/Origina ... 0b040a4239
INTERNATIONAL VERSION is up. Price is 50% higher.
Also there's hint on aliexpress's review for those who have Chinese version of Mi flower.
Dear friend, sorry, This is Chinese version device, but you can use this device in your country, please log out the "Mi home" APP, then log in the APP and set the timezone to China, you can connect it with APP. other customers can used it in your country.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Monday 03 April 2017 22:35
by deennoo
got a probleme with mine fw is still on 2.7.0 and app doesn't want to connect because fw is to old.
No probleme with this as i didn't plan to reuse app.
Looking for a flora, Tree database with an api, does any one know ones ? goal is to start making a python plugin for user with flora or parrot flower power, who can act as the app but with domoticz.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Monday 03 April 2017 23:49
by devros
i have problems with Mi Flora, sensor works only when is really near with script (1-2m) and event then reading is often with timeout,
but when is about 5 meters and one window
but with hcitool lescan is visible
Code: Select all
LE Scan ...
C4:7C:8D:61:B4:DA (unknown)
C4:7C:8D:61:B4:DA Flower mate
any idea what wrong, is really BE really so poor with signal?
tried to check singal, but dunno what numbers to check
Code: Select all
> HCI Event: LE Meta Event (0x3e) plen 35 [hci0] 115.727966
LE Advertising Report (0x02)
Num reports: 1
Event type: Connectable undirected - ADV_IND (0x00)
Address type: Public (0x00)
Address: C4:7C:8D:61:B4:DA (OUI C4-7C-8D)
Data length: 23
Flags: 0x06
C4:7C:8D:61:B4:DA Flower mate
LE General Discoverable Mode
BR/EDR Not Supported
16-bit Service UUIDs (partial): 1 entry
Xiaomi Inc. (0xfe95)
Service Data (UUID 0xfe95): 3102980006dab4618d7cc40d
RSSI: -77 dBm (0xb3)