Closed khongpt closed 1 year ago
I implemented an initial version to fetch data out of the sensor and push it to mqtt. Will you be able to test it with your sensors while I don't have such type of device?
Thank you for your response and for providing initial support Miflora. I will conduct tests and give feedback
Great, It's been working well with the MiFlora sensor.
2023-08-22 15:47:12 INFO: Starting BLE2MQTT version 0.1.8
2023-08-22 15:47:12 INFO: Connected to localhost
2023-08-22 15:47:22 INFO: Connected to C4:7C:8D:6C:E7:AC
2023-08-22 15:47:23 INFO: [Xiaomi_c47c8d6ce7ac] send state=SensorState(temperature=25, moisture=37, illuminance=81, conductivity=1264, battery=63)
and here is contain of configuration file
{
"mqtt_host": "localhost",
"mqtt_port": 1883,
"mqtt_user": "",
"mqtt_password": "",
"log_level": "INFO",
"hci_adapter": "hci1",
"devices": [
{
"address": "C4:7C:8D:6C:E7:AC",
"type": "miflora"
}
]
}
Nice, I released it as version 0.1.9
Thank you for creating ble2mqtt. I have successfully installed and run it on openwrt-23.05. I wish you could support adding the Xiaomi Mi Flora (Flower Care) sensor with the HHCCJCY01 code. I'm not very familiar with Python, so please take a moment to refer to the link below.
https://github.com/ThomDietrich/miflora-mqtt-daemon
Have a great day!