Skip to content

Latest commit

 

History

History
 
 

miflora

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Miflora

Version 0.4

Requirements

This plugin requires lib miflora in version 0.4 or above. You can install this lib with:

sudo pip3 install miflora --upgrade

Due to the miflora package, currently all firmwares up to 2.6.6 are supported.

Forum thread to the plugin: https://knx-user-forum.de/forum/supportforen/smarthome-py/1027133-plugin-xiaomi-mi-plant-flowers-tester-light-monitor

Supported Hardware

  • Xiaomi MiFlora Plant Flowers Tester Light Monitor

Configuration

plugin.yaml

miflora:
    class_name: Miflora
    class_path: miflora
    bt_addr: C4:7C:7E:21:F3:2B
    cycle: 300
    instance: miflora

Attributes

  • bt_addr: The Bluetooth address of your xiaomi miflora plant sensor. Find e.g. with hcitool lescan
  • cycle: Cycle interval for data retrieval
  • instance: Instance name in case multi-instance use is needed (one instance can handle one sensor)

items.yaml

miflora_data_type

The miflora_data_type is needed to provide information to the plugin, which values shall be stored in the item. Possible miflora_data_type's are temperature, light, moisture, conductivity, name, firmware and battery.

Example

plants:

    sensor_office:

        temperature:
            type: num
            miflora_data_type@miflora: temperature

        light:
            type: num
            miflora_data_type@miflora: light

        moisture:
            type: num
            miflora_data_type@miflora: moisture

        conductivity:
            type: num
            miflora_data_type@miflora: conductivity

        name:
            type: str
            miflora_data_type@miflora: name

        firmware:
            type: str
            miflora_data_type@miflora: firmware

        battery:
            type: num
            miflora_data_type@miflora: battery