Loxberry plugin for querying Xiaomi MiFlora Flower Sensors
Switch branches/tags
Clone or download
Permalink
Failed to load latest commit information.
bin
config Initial Plugin commit Jun 4, 2018
cron
data
dpkg
icons
templates
webfrontend/htmlauth
.gitattributes
.gitignore Initial Plugin commit Jun 4, 2018
LICENSE.md Initial Plugin commit Jun 4, 2018
README.md
plugin.cfg Fixed postroot.sh Jun 18, 2018
postinstall.sh
postroot.sh
postupgrade.sh Initial Plugin commit Jun 4, 2018
preinstall.sh Initial Plugin commit Jun 4, 2018
prerelease.cfg Initial Plugin commit Jun 4, 2018
preupgrade.sh
release.cfg

README.md

Loxberry Plugin: Xiaomi MiFlora Flower Sensor

This Plugin queries the Xiaomi MiFlora Flower Sensors via bluetooth low energy (btle) and sends the data via UDP to the Loxone Miniserver.

Xiaomi MiFlora Plugin

The Xiaomi MiFlora Plugin supports multiple flower sensors. During each execution a bluetooth scan for Xiaomi MiFlora devices is performed and each found device will be queried. Each received value will be send as an individual UDP packet. The UDP packets will have the following format:

[Device-MAC].[Sensor-Name]=[Value]

Sample:

C47C8D66275B.Moisture=4 C47C8D66275B.Light=136

Sample

The UDP packages will be sent as follows:

UDP-Monitor

With the following command recognition the values can be assigend to a "UDP-Command" / virtual input:

UDP-Befehl

Sensor data

Sensor Name Description Sample value
Name Name of the sensor Flower care
PollTime Date/Time in Loxone format 297370058
PollTimeString Date/Time string 03.06.2018 18:47:38
Firmware Firmware version 2.7.0
Temperature Temperature in Celcius 27.1
Moisture Moisture (unknown unit) 4
Light Light (unknown unit) 136
Conductivity Conductivity (unknown unit) 0
Battery Battery level in percent 86

Troubleshooting and feedback

If you have any issues you can run the plugin manually from the Loxberry command line (SSH) using the following command: /usr/bin/python3 /opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py

This plugin will be improved over time and feedback is appreciated. Therefore I created a thread in the LoxForum:

https://www.loxforum.com/forum/projektforen/loxberry/plugins/156917-plugin-xiaomi-miflora-flower-monitor

Change-Log

  • 2018-06-18 Release 1.0.1 - Fixed typo in postroot.sh install script
  • 2018-06-04 Release 1.0.0 - Initial release of version 1.0.0

Known-Issues

  • No logging