MiFlora showing data unknown

No errors in the logs about it.

Any other outputs in the log from the component?

Sorry. I missed your link in your first message.
Debug log:
2017-06-11
10:33:09 DEBUG (Thread-3) [homeassistant.components.sensor.miflora]
Polling data for PeaceLily Battery
2017-06-11 10:33:09 DEBUG (Thread-3) [miflora.miflora_poller] Enter
read_ble (<Thread(Thread-3, started daemon 139940477736704)>)
2017-06-11 10:33:09 DEBUG (Thread-3) [miflora.miflora_poller] Created
lock in thread <Thread(Thread-3, started daemon 139940477736704)>
2017-06-11 10:33:09 DEBUG (Thread-3) [miflora.miflora_poller] Running
gatttool with a timeout of 20
2017-06-11 10:33:09 DEBUG (Thread-3) [miflora.miflora_poller] Finished
gatttool
2017-06-11 10:33:09 DEBUG (Thread-3) [miflora.miflora_poller] Released
lock in thread <Thread(Thread-3, started daemon 139940477736704)>
2017-06-11 10:33:09 DEBUG (Thread-3) [miflora.miflora_poller] Got from
gatttool
2017-06-11 10:33:09 DEBUG (Thread-3) [miflora.miflora_poller] Waiting
for 10 seconds before retrying
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Created
lock in thread <Thread(Thread-3, started daemon 139940477736704)>
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Running
gatttool with a timeout of 20
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Finished
gatttool
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Released
lock in thread <Thread(Thread-3, started daemon 139940477736704)>
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Got from
gatttool
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Waiting
for 20 seconds before retrying
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Created
lock in thread <Thread(Thread-3, started daemon 139940477736704)>
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Running
gatttool with a timeout of 20
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Finished
gatttool
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Released
lock in thread <Thread(Thread-3, started daemon 139940477736704)>
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Got from
gatttool
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Waiting
for 20 seconds before retrying
2017-06-11 10:33:19 DEBUG (Thread-3) [miflora.miflora_poller] Exit
read_ble, no data (<Thread(Thread-3, started daemon
139940477736704)>)
2017-06-11 10:33:19 DEBUG (Thread-3)
[homeassistant.components.sensor.miflora] PeaceLily Battery = 0
2017-06-11 10:33:19 DEBUG (Thread-3)
[homeassistant.components.sensor.miflora] Data collected: [0]
2017-06-11 10:33:19 DEBUG (Thread-3)
[homeassistant.components.sensor.miflora] Not yet enough data for median
calculation
2017-06-11 10:33:19 DEBUG (Thread-10)
[homeassistant.components.sensor.miflora] Polling data for PeaceLily
Light intensity
2017-06-11 10:33:19 DEBUG (Thread-10) [miflora.miflora_poller] Enter
read_ble (<Thread(Thread-10, started daemon 139940067260160)>)
2017-06-11 10:33:19 DEBUG (Thread-10) [miflora.miflora_poller] Created
lock in thread <Thread(Thread-10, started daemon 139940067260160)>
2017-06-11 10:33:19 DEBUG (Thread-10) [miflora.miflora_poller] Running
gatttool with a timeout of 20
2017-06-11 10:33:19 DEBUG (Thread-10) [miflora.miflora_poller] Finished
gatttool
2017-06-11 10:33:19 DEBUG (Thread-10) [miflora.miflora_poller] Released
lock in thread <Thread(Thread-10, started daemon 139940067260160)>
2017-06-11 10:33:19 DEBUG (Thread-10) [miflora.miflora_poller] Got from
gatttool
2017-06-11 10:33:19 DEBUG (Thread-10) [miflora.miflora_poller] Waiting
for 10 seconds before retrying
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Created
lock in thread <Thread(Thread-10, started daemon 139940067260160)>
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Running
gatttool with a timeout of 20
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Finished
gatttool
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Released
lock in thread <Thread(Thread-10, started daemon 139940067260160)>
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Got from
gatttool
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Waiting
for 20 seconds before retrying
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Created
lock in thread <Thread(Thread-10, started daemon 139940067260160)>
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Running
gatttool with a timeout of 20
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Finished
gatttool
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Released
lock in thread <Thread(Thread-10, started daemon 139940067260160)>
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Got from
gatttool
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Waiting
for 20 seconds before retrying
2017-06-11 10:33:29 DEBUG (Thread-10) [miflora.miflora_poller] Exit
read_ble, no data (<Thread(Thread-10, started daemon
139940067260160)>)
2017-06-11 10:33:29 INFO (Thread-10)
[homeassistant.components.sensor.miflora] Polling error [Errno Could not
read data from Mi Flora sensor %s] C4:7C:8D:63:5B:D8
2017-06-11 10:33:29 DEBUG (Thread-6)
[homeassistant.components.sensor.miflora] Polling data for PeaceLily
Moisture
2017-06-11 10:33:29 DEBUG (Thread-6) [miflora.miflora_poller] Using
cache (0:15:00.002963 < 0:20:00)
2017-06-11 10:33:29 INFO (Thread-6)
[homeassistant.components.sensor.miflora] Polling error [Errno Could not
read data from Mi Flora sensor %s] C4:7C:8D:63:5B:D8
2017-06-11 10:33:29 DEBUG (Thread-11)
[homeassistant.components.sensor.miflora] Polling data for PeaceLily
Conductivity
2017-06-11 10:33:29 DEBUG (Thread-11) [miflora.miflora_poller] Using
cache (0:15:00.004187 < 0:20:00)
2017-06-11 10:33:29 INFO (Thread-11)
[homeassistant.components.sensor.miflora] Polling error [Errno Could not
read data from Mi Flora sensor %s] C4:7C:8D:63:5B:D8
2017-06-11 10:33:29 DEBUG (Thread-3)
[homeassistant.components.sensor.miflora] Polling data for PeaceLily
Temperature
2017-06-11 10:33:29 DEBUG (Thread-3) [miflora.miflora_poller] Using
cache (0:15:00.005430 < 0:20:00)
2017-06-11 10:33:29 INFO (Thread-3)
[homeassistant.components.sensor.miflora] Polling error [Errno Could not
read data from Mi Flora sensor %s] C4:7C:8D:63:5B:D8
2017-06-11 10:33:39 DEBUG (Thread-4)
[homeassistant.components.sensor.miflora] Polling data for PeaceLily
Battery
2017-06-11 10:33:39 DEBUG (Thread-4) [miflora.miflora_poller] Enter
read_ble (<Thread(Thread-4, started daemon 139940469344000)>)
2017-06-11 10:33:39 DEBUG (Thread-4) [miflora.miflora_poller] Created
lock in thread <Thread(Thread-4, started daemon 139940469344000)>
2017-06-11 10:33:39 DEBUG (Thread-4) [miflora.miflora_poller] Running
gatttool with a timeout of 20
2017-06-11 10:33:39 DEBUG (Thread-4) [miflora.miflora_poller] Finished
gatttool
2017-06-11 10:33:39 DEBUG (Thread-4) [miflora.miflora_poller] Released
lock in thread <Thread(Thread-4, started daemon 139940469344000)>
2017-06-11 10:33:39 DEBUG (Thread-4) [miflora.miflora_poller] Got from
gatttool
2017-06-11 10:33:39 DEBUG (Thread-4) [miflora.miflora_poller] Waiting
for 10 seconds before retrying
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Created
lock in thread <Thread(Thread-4, started daemon 139940469344000)>
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Running
gatttool with a timeout of 20
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Finished
gatttool
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Released
lock in thread <Thread(Thread-4, started daemon 139940469344000)>
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Got from
gatttool
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Waiting
for 20 seconds before retrying
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Created
lock in thread <Thread(Thread-4, started daemon 139940469344000)>
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Running
gatttool with a timeout of 20
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Finished
gatttool
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Released
lock in thread <Thread(Thread-4, started daemon 139940469344000)>
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Got from
gatttool
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Waiting
for 20 seconds before retrying
2017-06-11 10:33:49 DEBUG (Thread-4) [miflora.miflora_poller] Exit
read_ble, no data (<Thread(Thread-4, started daemon
139940469344000)>)
2017-06-11 10:33:49 DEBUG (Thread-4)
[homeassistant.components.sensor.miflora] PeaceLily Battery = 0
2017-06-11 10:33:49 DEBUG (Thread-4)
[homeassistant.components.sensor.miflora] Data collected: [0, 0]
2017-06-11 10:33:49 DEBUG (Thread-4)
[homeassistant.components.sensor.miflora] Not yet enough data for median
calculation
2017-06-11 10:33:49 DEBUG (Thread-8)
[homeassistant.components.sensor.miflora] Polling data for PeaceLily
Light intensity
2017-06-11 10:33:49 DEBUG (Thread-8) [miflora.miflora_poller] Using
cache (0:15:19.929089 < 0:20:00)
2017-06-11 10:33:49 INFO (Thread-8)
[homeassistant.components.sensor.miflora] Polling error [Errno Could not
read data from Mi Flora sensor %s] C4:7C:8D:63:5B:D8
2017-06-11 10:33:49 DEBUG (Thread-7)
[homeassistant.components.sensor.miflora] Polling data for PeaceLily
Moisture
2017-06-11 10:33:49 DEBUG (Thread-7) [miflora.miflora_poller] Using
cache (0:15:19.931578 < 0:20:00)
2017-06-11 10:33:49 INFO (Thread-7)
[homeassistant.components.sensor.miflora] Polling error [Errno Could not
read data from Mi Flora sensor %s] C4:7C:8D:63:5B:D8
2017-06-11 10:33:49 DEBUG (Thread-6)
[homeassistant.components.sensor.miflora] Polling data for PeaceLily
Conductivity
2017-06-11 10:33:49 DEBUG (Thread-6) [miflora.miflora_poller] Using
cache (0:15:19.934432 < 0:20:00)
2017-06-11 10:33:49 INFO (Thread-6)
[homeassistant.components.sensor.miflora] Polling error [Errno Could not
read data from Mi Flora sensor %s] C4:7C:8D:63:5B:D8
2017-06-11 10:33:49 DEBUG (Thread-5)
[homeassistant.components.sensor.miflora] Polling data for PeaceLily
Temperature
2017-06-11 10:33:49 DEBUG (Thread-5) [miflora.miflora_poller] Using
cache (0:15:19.937217 < 0:20:00)
2017-06-11 10:33:49 INFO (Thread-5)
[homeassistant.components.sensor.miflora] Polling error [Errno Could not
read data from Mi Flora sensor %s] C4:7C:8D:63:5B:D8
2017-06-11 10:33:55 ERROR (Thread-11)
[homeassistant.components.sensor.qnap] Failed to fetch QNAP stats from
the NAS
Traceback (most recent call last):
File
"/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py",
line 386, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File
"/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py",
line 382, in _make_request
httplib_response = conn.getresponse()
File “/usr/lib/python3.5/http/client.py”, line 1198, in getresponse
response.begin()
File “/usr/lib/python3.5/http/client.py”, line 297, in begin
version, status, reason = self._read_status()
File “/usr/lib/python3.5/http/client.py”, line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”)
File “/usr/lib/python3.5/socket.py”, line 576, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out

Lescan says thats the MAC:
A4:77:33:FD:F6:63 (unknown)
A4:77:33:FD:F6:63 (unknown)
C4:7C:8D:63:5B:D8 (unknown)
C4:7C:8D:63:5B:D8 Flower care
08:66:98:B2:89:7E (unknown)
08:66:98:B2:89:7E (unknown)
A4:77:33:F2:E6:01 (unknown)
A4:77:33:FD:F6:63 (unknown)
A4:77:33:F2:E6:01 (unknown)
A4:77:33:F2:E6:01 (unknown)
A4:77:33:F2:E6:01 (unknown)
A4:77:33:F2:E6:01 (unknown)
A4:77:33:FD:F6:63 (unknown)
08:66:98:B2:89:7E (unknown)
C4:7C:8D:63:5B:D8 (unknown)
C4:7C:8D:63:5B:D8 Flower care
08:66:98:B2:89:7E (unknown)
08:66:98:B2:89:7E (unknown)
A4:77:33:F2:E6:01 (unknown)
08:66:98:B2:89:7E (unknown)
08:66:98:B2:89:7E (unknown)
A4:77:33:F2:E6:01 (unknown)
A4:77:33:F2:E6:01 (unknown)
A4:77:33:FD:F6:63 (unknown)
A4:77:33:FD:F6:63 (unknown)
A4:77:33:F2:E6:01 (unknown)
A4:77:33:F2:E6:01 (unknown)
A4:77:33:FD:F6:63 (unknown)
A4:77:33:FD:F6:63 (unknown)
08:66:98:B2:89:7E (unknown)
39:52:45:51:4E:6A (unknown)
C4:7C:8D:63:5B:D8 (unknown)
C4:7C:8D:63:5B:D8 Flower care

gatttool --device=C4:7C:8D:63:5B:D8 --char-read -a 0x35

Produced:
Characteristic value/descriptor: aa bb cc dd ee ff 99 88 77 66 00 00 00 00 00 00

SOLVED: After downloading the Xioami app, I realized that the seller sold me a Mainland China version and not the International. I’ve since bought an international one and works well.

did you return the “xiaomi miplant mainland china” version and exchange it for the international version, or did you somehow managed to get it running, despite being located outside China? I’d be very interested to know if/how you managed since I have the same problem…

I bought an international one and tossed the Chinese one.

is there any way to use this values to run flower power 602 from parrot?
at the end this device get the same info of values, light, temperature, moisture…
please, help me to run this device with hass.

How can you tell if it’s an international version or a chinese version?

i ordered about 5 of these and they came only with chinese instructions so i guess im in the same boat. i only see “unknown” for the entity values. i am able to use them with the “Flower Care” app from the android play store.

Sorry. Yeah, you have to specifically look for and purchase the international version.

What is actually preventing the Chinese version from working if the app can work with it?

Edit: After installing and connecting to the Flower Care app using Mainland China region, I’ve been able to get the data via python as well (I use https://github.com/zewelor/bt-mqtt-gateway).

Let’s see if this works reliably.

Do you guys know what the difference between conductivity and moisture is?

1 Like

my understanding is that they are in fact different domains of measurement. Soil electrical conductivity (EC) is a measure of the amount of salts in the soil. i.e. soil salinity.

I’m running hass.io but i can spin up a linux vm with python installed to test anything if it is helpful. I’d rather not return these sensors… I bought them cheap on a random website and I am assuming the shipped from somewhere in asia…

edit: to be clear, i dont see any errors in the log but i just receive “unknown” for all entity values after configuring the sensors with the correct mac addresses.

Hi all!

I have some international version and some chinese versions Mi floras, but none of them are giving me information. They all show uknown data.

Anyone knows what is the internal (hardware or software) difference between the int and chinese versions?

Is there any difference between using the BT to MQTT software instead of connecting the bluetooth directly to the Hass machine?

I’m having the same problem - my four Mi Flora sensors are all showing unknown. However, I can see the info if I use this project on a different pi: https://github.com/ThomDietrich/miflora-mqtt-daemon

What’s going on here? Why can one project find it, but the component doesn’t work?

not sure, I gave up and just started using an esp32 and im using esphome via hass.io which works well with my MiFlora devices.

Odd discovery - if I restart the supervisor, all my plant sensors come back. That seems to have resolved my issue, and the Chinese variant of the sensors (of which I have four) are all working again.

Hope this helps.

What kind of range could I expect with these since they’re Bluetooth? I’d like to pick up the garden which is 100’ from the house. I’m reading various distance depending on which class of BT they are.

Thanks.

Hi,
Could you confirm that Chinese version are working with hassio directly without using ESPHome?