Bluetooth + MiFlora

Hey,

I installed the Bluetooth BCM43xx addon (running on a fully updated raspberrypi3).
Now I want to enable the MiFlora sensor. I scanned the Bluetooth mac address with my phone and entered it, however the sensors are not updating (I waited around an hour). I guess the Bluetooth addon is using a different adaptername than the default hci0 from the MiFlora platform.

How can I check which adapter is used with the bluetooth addon?

This is what comes up in the addon log when I restart it:
starting version 3.2.1
bcm43xx_init
Patch not found for hassio, continue anyway
Set Controller UART speed to 115200 bit/s
Device setup complete

And this shows up in the homeassistant error log:
2017-07-27 14:03:13 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.citrus_limon_battery is taking over 10 seconds
2017-07-27 14:03:44 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.citrus_limon_moisture is taking over 10 seconds

I’m in the same boat. Also BLE wouldn’t install for me.

Haven’t found a fix yet.

Anyone got a clue?

I’m also interested in this…

I am trying to build an addon that runs https://github.com/janwh/miflora-mqtt-daemon
The problem I am facing is that I don’t really know how to install gatttool in a container and let it talk to bluez in the BCM43xx container.

I am not sure what’s going on in your case.

I used the All-in-one installer, after, I just followed the instructions on the Miflora module page. That’s all I did. I also run HA on an RPi3.

https://home-assistant.io/components/sensor.miflora/

Since the interaction with Bluetooth calls for certain additional steps, it’s not clear how they can be achieved with hassio where a lot of the functionality and components are encapulated with docker which you are not supposed to touch or change.

It works very well for me in my all in one installation but when I moves Hassio I can’t seem to get the same rpi3 to read off the same mi-flora units

You use this installer? https://home-assistant.io/hassio/installation/ Or a other?

Having the same issues as described by the author of this thread.
I used https://www.home-assistant.io/hassio/installation/ (image for RPI3).

MAC-adress was found and pulled from my iPhone (since I didnt found a way to check this within the HASSIO).

1 Like

I think BT on HASS has some problems. That’s why I found this BT to MQTT gateway: https://github.com/zewelor/bt-mqtt-gateway/

I just recently added a PR for MiFlora support. Works great for me and resolved my BT issues using HASS.

2 Likes

I also have this issue. following

Is this using MQTT discovery on HA side ?

Lars

Sorry for the late reply. No, there is no autodiscovery… yet! When I have some time and my interest returns, perhaps out of need, I will try implementing that.