Page 17 of 17

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

Posted: Thursday 18 July 2019 13:51
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:~ $ 

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

Posted: Sunday 04 August 2019 21:21
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

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

Posted: Tuesday 13 August 2019 22:17
by gropi
Does it work stable?
How do You connect to Domoticz? Over MQTT?

Thanks,

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

Posted: Tuesday 20 August 2019 13:22
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.

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

Posted: Monday 21 October 2019 23:42
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?

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

Posted: Friday 18 November 2022 11:59
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