Reply To: Tip: Integrate Xiaomi Mi Flora Plant Sensor

Homepage Forums OSPi Tip: Integrate Xiaomi Mi Flora Plant Sensor Reply To: Tip: Integrate Xiaomi Mi Flora Plant Sensor

#32057
Thomas Thaler
Participant

In OpenSprinkler you simply set up an MQTT sensor and link it to the topic “miflora/<sensor name>”,

I was hoping that after configuring the MQTT broker settings, somewhere in the OSPI UI there would be a way to integrate the MiFlora sensor set up above into the OS. Unfortunately, I didn't find any entries about this and I didn't find any instructions anywhere that explain how to integrate MQTT sensor data into the OS and make it visible and usable in the UI.

The sonsor is successfully recognized by the miflora-mqtt-daemon.

python3 /opt/miflora-mqtt-daemon/miflora-mqtt-daemon.py
Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon
Source: https://github.com/ThomDietrich/miflora-mqtt-daemon
[2024-05-10 10:57:41] Connecting to MQTT broker…
[2024-05-10 10:57:41] MQTT connection established
Adding sensor to device list and testing connection...
Name:          “TEST”
Internal name: “TEST”
Device name: “Flower care”
MAC address: 5C:85:7E:12:D2:27
Firmware:      3.3.6
[2024-05-10 10:57:44] Initial connection to Mi Flora sensor “TEST” (5C:85:7E:12:D2:27) successful
[2024-05-10 10:57:44] Announcing Mi Flora devices to MQTT broker for auto-discovery …
[2024-05-10 10:57:44] Retrieving data from sensor “TEST” …
[2024-05-10 10:57:45] Result: {“light”: 1042, “temperature”: 22.9, “moisture”: 0, “conductivity”: 0, “battery”: 100}
[2024-05-10 10:57:45] Publishing to MQTT topic “miflora/TEST”
[2024-05-10 10:57:45] Sleeping (300 seconds) …

Thanks for the feedback, as I now have the sensors and would like to integrate them into OSPI
Best regards
Thomas