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

Others (MiLight, Hue, Toon etc...)
IDANIT
Posts: 85
Joined: Saturday 07 November 2015 11:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Poland
Contact:

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

Post by IDANIT » Wednesday 17 January 2018 9:33

joostnl wrote:
Sunday 14 January 2018 8:37
The present Xiaomi Gateway does not handle Bluetooth so it is not possible. The reason you see the Flower sensors in the Xiaomi app is because your phone or pad has a direct connection to it (try turning off BT and you will find out).

However I heard there was a new Xiaomi Gateway coming supporting BT so maybe with that one.
Well I have Yeelight Ceiling Light wich after last firmware update become BlueTooth bridge. Same thing with Xiaomi Yeelight Bedside Lamp v2.
My problem with Flower Sensors is more complex. I've got RPi3 with RaZberry Daughter card. So if I switch on BT on Raspberry my Z-wave network stops working, if I want to use z-wave devices I have to switch off BT on RPi (well known problem), so no more Flower Care support.
Maybe this is the way to add BT devices to Domoticz.

Torin42
Posts: 2
Joined: Sunday 18 February 2018 11:19
Target OS: -
Domoticz version:
Contact:

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

Post by Torin42 » Sunday 18 February 2018 11:35

Hey all,

I have create an Android app that helps you register your Chinese Flower Care Monitor worldwide. The app adds the device to your account through a Chinese proxy, so that afterwards you can use it with the official Flower Care app. Check out the app on Google Play: https://play.google.com/store/apps/deta ... reregister

Here is how it works:


User avatar
Mediacj
Posts: 101
Joined: Wednesday 11 February 2015 17:09
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

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

Post by Mediacj » Sunday 18 February 2018 11:59

Torin42 wrote:
Sunday 18 February 2018 11:35
Hey all,

I have create an Android app that helps you register your Chinese Flower Care Monitor worldwide. The app adds the device to your account through a Chinese proxy, so that afterwards you can use it with the official Flower Care app. Check out the app on Google Play: https://play.google.com/store/apps/deta ... reregister

Here is how it works:

Thanks this works perfect!

pavelbor
Posts: 38
Joined: Sunday 18 December 2016 13:18
Target OS: Raspberry Pi
Domoticz version: LastBeta
Location: Tallinn / Estonia
Contact:

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

Post by pavelbor » Tuesday 27 February 2018 14:29

Hello,
cant login to proxy
photo_2018-02-27_14-28-57.jpg
photo_2018-02-27_14-28-57.jpg (121.78 KiB) Viewed 584 times

Torin42
Posts: 2
Joined: Sunday 18 February 2018 11:19
Target OS: -
Domoticz version:
Contact:

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

Post by Torin42 » Tuesday 27 February 2018 18:19

pavelbor wrote:
Tuesday 27 February 2018 14:29
Hello,
cant login to proxy
That's might be because proxies sometimes are not working correctly. Can you retry a few times, as it will get a random proxy on each trial?

molnaratti
Posts: 11
Joined: Friday 02 February 2018 17:21
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by molnaratti » Thursday 01 March 2018 22:21

EBOOZ wrote:
Monday 25 December 2017 9:56
I got my first Mi Flora yesterday and thanks to the Wiki, installation went (almost) flaweless!

My dummy sensor for logging moisture didn't update to the correct value (was always 0), and when I looked in the domoticz.py script, I noticed the URL was formatted incorrect. I modified the script so it also supports changing the status to Normal, Dry or Wet. Reading through the previous pages I assumed 20 is the right trigger for setting the status to Dry.

Original code:

Code: Select all

    # Update moisture
    val_moist = "{}".format(poller.parameter_value(MI_MOISTURE))
    domoticzrequest("http://" + domoticzserver + "/json.htm?type=command&param=udevice&idx=" + idx_moist + "&svalue=" + val_moist + "&battery=" + val_bat)
Modified to (where svalue 3 is Wet and svalue 2 is Dry):

Code: Select all

    # Update moisture
    val_moist = "{}".format(poller.parameter_value(MI_MOISTURE))
    if int(val_moist) >= 60:
        domoticzrequest("http://" + domoticzserver + "/json.htm?type=command&param=udevice&idx=" + idx_moist + "&nvalue=" + val_moist + "&svalue=3")
    elif int(val_moist) <= 20:
        domoticzrequest("http://" + domoticzserver + "/json.htm?type=command&param=udevice&idx=" + idx_moist + "&nvalue=" + val_moist + "&svalue=2")
    else:
        domoticzrequest("http://" + domoticzserver + "/json.htm?type=command&param=udevice&idx=" + idx_moist + "&nvalue=" + val_moist + "&svalue=0")
Thank you, I was wrong with you too, your solution was good. !

reisub
Posts: 1
Joined: Saturday 21 April 2018 22:48
Target OS: -
Domoticz version:
Contact:

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

Post by reisub » Saturday 21 April 2018 22:53

Hi everybody

Hi have received a new flower care device.
I can't pair in any way the device, the only moment when it communicate is when I put on the battery

I tried the app by Torin42 (thanks) , putting on the battery when the app is searching let me register the device, so I can see it in the flower care app, but there is now way to sync data with it...

It's the device faulty?

bramski
Posts: 30
Joined: Thursday 20 July 2017 16:26
Target OS: -
Domoticz version:
Contact:

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

Post by bramski » Saturday 12 May 2018 12:42

I have 6 Mi Flora sensors right now, and I wanted to get notified when they need water. Otherwise I still have dead plants ;-). I can share a dzVents scripts with you which makes this a breeze: https://github.com/domoticz/domoticz/pull/2385/files. Have fun!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests