Skip to content
A plugin for Domoticz, the open source home automation software, which allows it to easily connect to Xiaomi Mi Flower Mate devices
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
miflora First upload of plugin Feb 20, 2018
LICENSE
README.md Update README.md Mar 1, 2018
fakeDomoticz.py
plugin.py Update plugin.py Apr 7, 2019

README.md

Mi_Flower_mate_plugin

A plugin for Domoticz, the open source home automation software, which allows it to easily connect to Xiaomi Mi Flower Mate devices.

These are Bluetooth LE plant monitoring devices which cost about 12 dollars. They last up to a year on a coincell battery, and measure moisture, temperature, light and conductivity. https://wiki.hackerspace.pl/projects:xiaomi-flora

The plugin creates a special switch. Toggle the switch to get fresh data from all sensors. By having a switch to poll for new data, it becomes easy to create timers and other fun integrations in scripts.

The plugin now also has an "automatic" mode, where it will do a bluetooth scan for devices everytime Domoticz starts, and automatically add new devices it finds.

Links

Detailed installation instructions can be found on the Domoticz wiki: https://www.domoticz.com/wiki/Plugins/Mi_flower_mate

Discussion about the plugin can be found here: https://www.domoticz.com/forum/viewtopic.php?f=65&t=22281

Installation (short version)

Install the plugin as usual. See: https://www.domoticz.com/wiki/Using_Python_plugins

You also need the Bluepy library to be installed.

wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
sudo python3 -m pip install bluepy

Alternatively, you can use apt-get, but might install python 3.5 as well. If you are trying to stay on python 3.4, use the wget method above.

sudo apt-get install python3-pip libglib2.0-dev
sudo pip3 install bluepy

In automatic mode, the plugin will do bluetooth scans at startup, and integrate any Mi Flora Devices it finds.

In manual mode you can select which devices to add by entering their mac addresses on the hardware page. To find your Flower Mates' mac-addresses do a bluetooth scan:

sudo hcitool lescan

Thanks to

This plugin builds on the work by Daniel Matuschek, who created a great library for the Flower Mate devices.
https://pypi.python.org/pypi/miflora

It also builds on the original domoticz script created by Tristan:
https://github.com/Tristan79/miflora

You can’t perform that action at this time.