Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Moderator: leecollings
-
- Posts: 200
- Joined: Wednesday 20 November 2013 20:36
- Target OS: Linux
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
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!
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
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 

To see signal strength :
Code: Select all
sudo btmon & hcitool lescan
Code: Select all
sudo hcitool lescan

-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
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?
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?
-
- Posts: 331
- Joined: Wednesday 21 December 2016 9:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: current
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Read the past two pages: Xiaomi has blocked access.
But it doesn't matter, you can use it with Domoticz without the app.
But it doesn't matter, you can use it with Domoticz without the app.
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Ahhh, great. Thanks for the answer. Tomorrow I try the Domoticz method. 

-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
If it has latest update, it needs to be close to your phone (10cm)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.
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
It doesn^t work, even for 0cm.
- LouiS22
- Posts: 433
- Joined: Friday 27 February 2015 13:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Budapest, Hungary
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Try to replace the battery. But I have a bad news: had a similiar one, it turned to be defected.hpapagaj wrote:It doesn^t work, even for 0cm.

-
- Posts: 37
- Joined: Wednesday 25 November 2015 18:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany / France
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
tontze wrote:You can close it via X on the right upper corner.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.
There is no X. I use the values in my smart home system, so I do not really need the app.

-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Weird, i do have X what i use to prevent updatephysiker123 wrote:tontze wrote:You can close it via X on the right upper corner.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.
There is no X. I use the values in my smart home system, so I do not really need the app.

- Attachments
-
- Screenshot_20170322-181148[114].png (141.61 KiB) Viewed 5209 times
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
-
- Posts: 200
- Joined: Wednesday 20 November 2013 20:36
- Target OS: Linux
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
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 and then tried the command and received
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.
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
Code: Select all
connect
Code: Select all
Attempting to connect to C4:7C:8D:63:18:14
Error: connect: Connection refused (111)

Never mind, unplugging the bluetooth USB dongle was enough to connect. Weird.
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Rebooting or shutting Raspberry down really not disconnect power everywhere, sometimes it's needed to replug peripherals or disconnect usb power from Raspberry 

-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
-
- Posts: 67
- Joined: Sunday 22 March 2015 16:18
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
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
Domoticz| Zigbee | SONOFF
- LouiS22
- Posts: 433
- Joined: Friday 27 February 2015 13:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Budapest, Hungary
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
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.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
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")
-
- Posts: 67
- Joined: Sunday 22 March 2015 16:18
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Have changed it but no change.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")
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
Domoticz| Zigbee | SONOFF
- LouiS22
- Posts: 433
- Joined: Friday 27 February 2015 13:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Budapest, Hungary
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
you have to replace the IDs later, somewhere around line 90. You're changing the ids in the wrong place now!!!!!!!!Dlanor wrote:Have changed it but no change.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")
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
-
- Posts: 67
- Joined: Sunday 22 March 2015 16:18
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Works! Thanks!LouiS22 wrote: you have to replace the IDs later, somewhere around line 90. You're changing the ids in the wrong place now!
Domoticz| Zigbee | SONOFF
- LouiS22
- Posts: 433
- Joined: Friday 27 February 2015 13:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Budapest, Hungary
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
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.
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.
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
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.
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.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
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 windowbut with hcitool lescan is visible
any idea what wrong, is really BE really so poor with signal?
tried to check singal, but dunno what numbers to check
but when is about 5 meters and one window
Code: Select all
connect: No route to host (113)
Code: Select all
LE Scan ...
C4:7C:8D:61:B4:DA (unknown)
C4:7C:8D:61:B4:DA Flower mate
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)
Who is online
Users browsing this forum: No registered users and 1 guest