Initial connection to Mi Flora sensor [...] failed (was working previously on a pi zero)
See original GitHub issueHi, I had miflora-mqtt-daemon correctly setup on a pi zero - everything was working perfectly well. Today, I decided to replace my pi zero with a raspberry pi 3b+ so I installed everything again on the new pi, including miflora-mqtt-daemon.
I got the same exact configuration than on the pizero but I can’t get my miflora sensor detected though - I have the feeling like if it still binded to the pizero and can’t be binded again with another setup ? Any ideas ? I’ve been completely stucked for hours…
Here is the error showing up when launching python3 /opt/miflora-mqtt-daemon/miflora-mqtt-daemon.py (FYI config.ini is correctly setup, mac-adresses are correctly defined, again - same configuration than the working pizero)
Initial connection to Mi Flora sensor "miflora_plant" (xx:xx:xx:xx:xx:xx) failed.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (1 by maintainers)
New user to miflora here and had same issue trying to get miflora working in a docker container on a rpi. Turns out the
--net host
is necessary (at least in my case) for it to work. The empty error message is not too useful, so poking at the exception in a debug session revealed a bit more info:Then I used
gatttool
both inside and outside the container and it failed in the container without--network=host
.Hope that helps someone 😃
Same here. I’m new to the story, and installed it on a Raspberry 4. At first, everything worked fine. But suddenly, after about 2 hours, I noticed that the data wasn’t coming in anymore. After digging a bit deeper, I’m getting the same error:
At the end, I think it has something to do with the distance. When my sensor is about 3 meters from the RP4 in a straight line, it works. When I move to about 4m, just in line with a door jamb (?), I’m getting the error above?