Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Moderator: leecollings
-
- 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
So why didn't you change the wiki after finding the mistake in it?
-
- 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
Oh, can i ? I didnt knew i can edit themblauwebuis wrote:So why didn't you change the wiki after finding the mistake in it?

-----------------------------------------
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: 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
Yes you can
Feel free to change things when you find a mistake.

-
- 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
Guys, help me out.
I tested the setup on my "test"-Pi and it worked. It seemed that on my Domoticz Pi i already installed a previous version of Bluez (5.32). I noticed this before walking through the wiki and i though I removed everything that came with installing Bluez version 5.32.
Now, I did the wiki and I seem to be stuck. When executing the domoticz.py script I receive an error so it seems that the gattool is not correctly installed. I googled and found the gattool is installed by installing pygatt which was mentioned in the wiki. So I try to install pygatt again and I receive the following
Ok, so maybe it is partially installed or I removed only half earlier. I will try and upgrade
Ok, now I am stuck. Anybody?
*Edit*
I tried again, and now with to remove the bluez stack and succeeded. Then did the whole wiki page again. Same error.
I tested the setup on my "test"-Pi and it worked. It seemed that on my Domoticz Pi i already installed a previous version of Bluez (5.32). I noticed this before walking through the wiki and i though I removed everything that came with installing Bluez version 5.32.
Now, I did the wiki and I seem to be stuck. When executing the domoticz.py script
Code: Select all
sudo python3 domoticz.py
Code: Select all
/bin/sh: 1: /usr/bin/gatttool: not found
Code: Select all
Requirement already satisfied (use --upgrade to upgrade): pygatt in /usr/local/lib/python3.4/dist-packages
Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/local/lib/python3.4/dist-packages (from pygatt)
Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/local/lib/python3.4/dist-packages (from pygatt)
Cleaning up...
Code: Select all
sudo pip3 install pygatt --upgrade
Requirement already up-to-date: pygatt in /usr/local/lib/python3.4/dist-packages
Requirement already up-to-date: pyserial in /usr/local/lib/python3.4/dist-packages (from pygatt)
Requirement already up-to-date: enum34 in /usr/local/lib/python3.4/dist-packages (from pygatt)
Cleaning up...
*Edit*
I tried again, and now with
Code: Select all
sudo apt-get purge bluez
Code: Select all
/bin/sh: 1: gatttool: not found
-
- 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
Actually, I reread the Script. It is written, That you should place the miflora folder in the domoticz python folder. So it was my mistake, I placed it in the domoticz scripts folder.tontze wrote:Actually, wiki´s crontab part doesnt correspond to instructions earlier. I had same mistake as user before ..
an extra /python/ in the path, and missing /home from the path startCode: Select all
And then add this line: 0 0,12 * * * python3 /pi/domoticz/scripts/python/miflora/domoticz.py
![]()
-T
The wiki article Should be precise as it is now.
-
- 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
Did you try installing latest bluez via sources(not apt-get).? At some versions of bluez gatttool isn't installed and it won't be installed via apt-get
-----------------------------------------
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
How do I do this via sources? Thanks!tontze wrote:Did you try installing latest bluez via sources(not apt-get).? At some versions of bluez gatttool isn't installed and it won't be installed via apt-get
Verzonden vanaf mijn iPhone met Tapatalk
-
- 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
It is in the wiki :krizzz wrote:How do I do this via sources? Thanks!tontze wrote:Did you try installing latest bluez via sources(not apt-get).? At some versions of bluez gatttool isn't installed and it won't be installed via apt-get
Verzonden vanaf mijn iPhone met Tapatalk
Code: Select all
cd /
sudo mkdir bluez
cd bluez
sudo wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.44.tar.xz
sudo tar -xJf bluez-5.44.tar.xz
cd bluez-5.44
sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-tools --disable-test --disable-systemd
sudo make all
sudo apt-get install python-bluez python-requests
Code: Select all
sudo cp attrib/gatttool /usr/local/bin/ [b]or[/b] sudo cp attrib/gatttool /usr/bin/
-----------------------------------------
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
Thanks for pointing me into the right direction. I spend my evening trying and compiling again and again the 5.44 Bluez install. And I keept getting the same message, that gattool was not find. And then I noticed 1 small line in the wikitontze wrote:It is in the wiki :krizzz wrote:How do I do this via sources? Thanks!tontze wrote:Did you try installing latest bluez via sources(not apt-get).? At some versions of bluez gatttool isn't installed and it won't be installed via apt-get
Verzonden vanaf mijn iPhone met Tapatalk
Also do (depending where your bins are);Code: Select all
cd / sudo mkdir bluez cd bluez sudo wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.44.tar.xz sudo tar -xJf bluez-5.44.tar.xz cd bluez-5.44 sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-tools --disable-test --disable-systemd sudo make all sudo apt-get install python-bluez python-requests
-TCode: Select all
sudo cp attrib/gatttool /usr/local/bin/ [b]or[/b] sudo cp attrib/gatttool /usr/bin/
Code: Select all
Note: Bluez version 5.44 does not compile gatttool on a Raspberry Pi 3, however version 5.43 does work properly.

Now for the next step. How to find out when to water the plants and if the fertility is good

-
- 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
Indeed, i missed that part as i had bluez allready installed
Thanks for pointing me into the right direction. I spend my evening trying and compiling again and again the 5.44 Bluez install. And I keept getting the same message, that gattool was not find. And then I noticed 1 small line in the wikiSo I tried compiling Bluez 5.43, and works flawlesslyCode: Select all
Note: Bluez version 5.44 does not compile gatttool on a Raspberry Pi 3, however version 5.43 does work properly.
. So not only does the 5.44 Bluez not install gatttool on a Raspberry Pi3, also not on a Raspberry Pi2 and Pi1.
Now for the next step. How to find out when to water the plants and if the fertility is good

If you can pair your mi flora with phone(have not updated it to latest fw), you can allways add plant to it and check from there whats good moisture/fert for your plant

-----------------------------------------
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: 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
Can anyone post perhaps the values for the different plants? I do not really want to change something now that everything works.


-
- 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
You can safely use phone app, just dont update when it asks you tophysiker123 wrote:Can anyone post perhaps the values for the different plants? I do not really want to change something now that everything works.

-----------------------------------------
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: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
For all plants?physiker123 wrote:Can anyone post perhaps the values for the different plants? I do not really want to change something now that everything works.

I use 20% as moisture trigger. I defined thus by just feeling the soil at which I normally give water to the plant
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
-
- 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
In the android app it says about fertilizing :pvm wrote:For all plants?physiker123 wrote:Can anyone post perhaps the values for the different plants? I do not really want to change something now that everything works.
I use 20% as moisture trigger. I defined thus by just feeling the soil at which I normally give water to the plant
Normally when fertility is under 500, you need to add fertility, so i quess they use that same threshold for every plant ?
And also about soil moisture, 20%
I quess those are good guidelines.
-T
-----------------------------------------
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: 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
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.

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.
- 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
The firmware update won't break anything IMHO.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.
- 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
The firmware update won't break anything IMHO.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.
-
- 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
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.
-----------------------------------------
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: 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
PPL say that they wont work with flower care app after upgrade, they added regions to it. In domotics it works even after update.LouiS22 wrote:The firmware update won't break anything IMHO.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.
-----------------------------------------
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]
- 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 know, but you can solve this easily, I've even provided a how-to beforetontze wrote:PPL say that they wont work with flower care app after upgrade, they added regions to it. In domotics it works even after update.LouiS22 wrote:The firmware update won't break anything IMHO.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.

Who is online
Users browsing this forum: No registered users and 1 guest