Thomas Thaler

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in 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

    in reply to: Tip: Integrate Xiaomi Mi Flora Plant Sensor #32033
    Thomas Thaler
    Participant

    Raspberry Pi 3 Model B Plus Rev 1.3, BCM2835, Revisiona020d3, Debian GNU/Linux 11 (bullseye) 64bit

    The specified command “Instead should be “sudo bluetoothctl scan le” ” is not correct.
    To search for Bluetooth you can either use “sudo bluetoothctl scan on” or “sudo hcitool lescan”. Worked for me with both commands.

Viewing 2 posts - 1 through 2 (of 2 total)