Closed adrianmihalko closed 6 years ago
Hi @adrianmihalko! You need to use the poll command, and append the MAC address of the Bluetooth interface of your sensor, like this: pi@pi3pimatic:~ $ /home/pi/miflora/demo.py --backend gatttool poll C4:7C:8D:61:57:A0
Superb:
Getting data from Mi Flora FW: 2.7.0 Name: Flower care Temperature: 19.8 Moisture: 7 Light: 104 Conductivity: 2 Battery: 100
Now I need to modify code to make it work with Domoticz.
Oh, and I just realised that it's you. β Thanks mate! :)
@adrianmihalko not sure about Domoticz but if you have MQTT, consider: https://github.com/ThomDietrich/miflora-mqtt-daemon
@ThomDietrich I already did it, nothing complicated:
https://gist.github.com/adrianmihalko/6e115ad442fa89a2cb4c529a1a15cddc
I am trying to run demo.py, but I get error: