diff --git a/README.md b/README.md index d8a71d0..af70512 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,13 @@ Enjoy! ### openHAB +To make further processing of the sensor readings as easy as possible, the program has an integrated generator for openHAB Items definitions. +To generate a complete listing of Items, which you can then copy and adapt to your openHAB setup, execute: + +```shell +python3 /opt/miflora-mqtt-daemon/miflora-mqtt-daemon.py --gen-openhab +``` + The following code snippet shows a simple example of how a Mi Flora openHAB Items file could look like for the above example: ```java @@ -167,9 +174,6 @@ Number Balcony_Petunia_Conductivity "Balcony Petunia Soil Conductivity/Fertility Number Balcony_Petunia_Light "Balcony Petunia Sunlight Intensity [%d lux]" (gBalcony, gLight) {mqtt="<[broker:miflora/petunia:state:JSONPATH($.light)]"} ``` -The daemon includes a function to generate these items definitions for you! -The function is finished but not yet available in the stable version. Please contact me for details. - ---- #### Disclaimer and Legal