Hi guys,
been following the thread for some time. Actually being able to access the MiFlora data remotely, was the sole (or final) reason to jump into the RasPi adventure in the first place (with no prior knowledge of Linux other the Ubuntu-GUI). After an interesting learning curve, I’ve now managend to set-up mi Pi Zero W headless with HA, Samba, Influx-DB and Grafana running. The two MiFlora sensors also show up in HA (0.41), unfortuntely I don’t get any readings.
Similar issues here as well… I have 2 sensors, they worked fine in the beginning until all of a sudden, one of them doesn’t want to update anymore.
Below is what I tried with like 5 minutes in between… So not a consistent error message I would say…
pi@hassbian:~ gatttool --device=C4:7C:8D:62:E2:66 --char-read -a 0x35
connect error: Transport endpoint is not connected (107)
pi@hassbian:~ $ gatttool --device=C4:7C:8D:62:E2:66 --char-read -a 0x35
Characteristic value/descriptor: aa bb cc dd ee ff 99 88 77 66 00 00 00 00 00 00
I replaced the battery, deactived the other (working) sensor, all without succes…
For the record, sudo hcitool lescan shows me both sensors. One thing ‘strange’ is that the name is different for both of them but it worked before, so no clue what may be causing this…
C4:7C:8D:62:3F:FA Flower mate
C4:7C:8D:62:E2:66 Flower care
What else… I put these on the built-in bluetooth controller of my RPI3. I did add another one (ASUS BT400) as I also wanted to implement flic-buttons and various sources (+ own experience) already showed that that was going to be an issue. For what it’s worth, the built-in was HCI0 first but become HCI1 after I started using the ASUS dongle as well. But in the configuration.yaml file, I made sure to have the right adapter mentioned.
Pretty sure this is due to the firmware version of the sensor. 2.6.(something) shows up as “flower mate”, once you update to 2.7 or higher it is listed as flower care. Could you figure out, which one is the faulty one?
When setting up HA it took me some time to figure out the .yaml-thing, and I played around quite a bit with the code in the yaml-validator because I could not get HA to boot initially. Apparently I added a backspace in the field for the mac address> ( " XX:XX…") at some point. Still proper yaml-code but HA doesn’t any read the sensor data with this extra backspace.
Long story short: IT WORKS! HOLY SMOKES IT WORKS. The data also shows up on Grafana! Suddenly everything falls into place. My very first Pi Project!
Thanks for everything ( software, forum, tutorials) !
Nota bene: I can confirm that the Mi Flora Sensors does run with the latest firmware in the sensor (2.9.something) and the latest version of HA (0.41) on a PI ZERO W. Rasbian was installed with PiBakery and only runs HA, Samba, InfluxDB and Grafana so far.
@farstreet i have no idea what changed but now i get data from mine the temp is 0 so that is totally wrong but its better than the dummy values i was getting before.