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

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

Moderator: leecollings

terrorsource
Posts: 67
Joined: Wednesday 10 May 2017 17:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by terrorsource »

I'm getting an error on a Pi 4, i could however run it manually yesterday but not today. nothing changed in between.

Code: Select all

pi@raspberrypi:~ $ sudo /usr/bin/python3 /home/pi/domoticz/scripts/python/miflora/domoticz.py
/home/pi/domoticz/scripts/python/miflora/domoticz.py:25: DeprecationWarning: encodestring() is a deprecated alias since 3.1, use encodebytes()
  base64string = base64.encodestring(('%s:%s' % (domoticzusername, domoticzpassword)).encode()).decode().replace('\n', '')

1: Palm
Patched: Error reading value retry after 5 seconds...

Patched: Error reading value retry after 5 seconds...

Patched: Error reading value

pi@raspberrypi:~ $
While on a Pi 3b it works:

Code: Select all

pi@raspberrypi:~ $ /usr/bin/python3 /home/pi/domoticz/scripts/python/miflora/domoticz.py
/home/pi/domoticz/scripts/python/miflora/domoticz.py:25: DeprecationWarning: encodestring() is a deprecated alias since 3.1, use encodebytes()
  base64string = base64.encodestring(('%s:%s' % (domoticzusername, domoticzpassword)).encode()).decode().replace('\n', '')

1: Palm
connect error: Function not implemented (38)
Mi Flora: C4:7C:8D:66:CB:FB
Firmware: 3.1.9
Name: Flower care
Temperature: 23.2°C
Moisture: 82%
Light: 280 lux
Fertility: 2131 uS/cm?
Battery: 99%
pi@raspberrypi:~ $ 
lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

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

Post by lwolf »

From today the RPIEasy has a new experimental plugin for Mi Flora support. (Either with Domoticz MQTT/HTTP method)
https://github.com/enesbcs/rpieasy
gropi
Posts: 13
Joined: Thursday 26 April 2018 20:03
Target OS: Linux
Domoticz version: 4.11786
Location: Germany
Contact:

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

Post by gropi »

Does it work stable?
How do You connect to Domoticz? Over MQTT?

Thanks,
Domoticz Version: 2023.1
Platform: Openmediavault 6; Docker; HP Microserver Gen8
Plugin/Hardware: MySensors Gateway; Philips HUE Bridge; OMG; ZigBee;
lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

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

Post by lwolf »

gropi wrote: Tuesday 13 August 2019 22:17 Does it work stable?
How do You connect to Domoticz? Over MQTT?
Thanks,
I am using it since a week continously with 5 minutes interval. I am monitoring moisture with Domoticz, and until now, i did not find any problem.
Either HTTP or MQTT is selectable in the webGUI of RPIEasy.
tOmki
Posts: 9
Joined: Monday 02 February 2015 12:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Poland
Contact:

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

Post by tOmki »

I have a problem with one sensor that I have for over 1 year.
I have an empty history for some time and I cannot synchronize data.
Sync progress goes, but finally I get the message "sync failed ..."
I replaced the battery - it didn't help.

Real-time data work fine.

I found some information how the data is exchanged:
https://github.com/vrachieru/xiaomi-flower-care-api

Anyone know how to manually clean the sensor memory?
Raspberry Pi B+, 4x DS18B20, RFLink Gateway, UPS APC Back-UPS CS 650VA,
tonbor
Posts: 153
Joined: Monday 17 February 2014 9:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by tonbor »

With rasp bulsseye and python 3.9 the script is not working.
Download and install python 3.7 and start it with this extra python installation like: /home/tonbor/Python-3.7.13/python /home/tonbor/domoticz/scripts/python/miflora/domoticz.py
and it is working (again).
Got 18 sensors all working with domoticz
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest