Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

krizzz
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

Post 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!
tontze
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

Post by tontze »

If you can, moving sensor by 10cm could make a great difference, or moving pi :)

To see signal strength :

Code: Select all

sudo btmon & hcitool lescan
Cancel it, and :

Code: Select all

sudo hcitool lescan
Note the RSSI strength on Flower Care :)
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor

Post by madrian »

Hello guys,

Today my Flower Monitor finally arrived, few hours later I want to smash it with a hammer. :lol:

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?
blauwebuis
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

Post 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.
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor

Post by madrian »

Ahhh, great. Thanks for the answer. Tomorrow I try the Domoticz method. ;)
tontze
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

Post 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)
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor

Post by madrian »

It doesn^t work, even for 0cm.
User avatar
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

Post 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. :(
physiker123
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

Post 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 :D

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.

Image
tontze
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

Post 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 :D

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.

Image
Weird, i do have X what i use to prevent update :D
Attachments
Screenshot_20170322-181148[114].png
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]
krizzz
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

Post 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

Code: Select all

connect
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.
tontze
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

Post 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 :)
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Dlanor
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

Post 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
Domoticz| Zigbee | SONOFF
User avatar
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

Post 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")
Dlanor
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

Post 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
Domoticz| Zigbee | SONOFF
User avatar
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

Post 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!!!!!!!!
Dlanor
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

Post 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!
Domoticz| Zigbee | SONOFF
User avatar
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

Post 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.
deennoo
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

Post 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.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor

Post 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

Code: Select all

connect: No route to host (113)
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)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest