Miflora with Bluetooth/MQTT broken on 0.60?

I upgraded my hass.io to 60.0 this morning and since then my two mifloras that are working over bluetooth/mqtt did not work anymore. I always got the “update took longer than 10 seconds” warning in the logs.

Downgrading to 59.0 fixed it.

I did not find anything concerning either of these components in the changelog or problems with them on the forum

I have no issues in the log but the miflora sensor doesn’t seem to refresh anymore for me too…

I take that back, it’s still updating, so no issue even with 0.60…

I have the same problem on a raspberry pi 3

All 3 sensor stop reporting after updating to 0.60 using raspberry pi 3.

2017-12-21 23:00:58 DEBUG (SyncWorker_0) [homeassistant.components.sensor.miflora] Zamioculcas zamiifolia Battery = 0
2017-12-21 23:00:58 DEBUG (SyncWorker_0) [homeassistant.components.sensor.miflora] Data collected: [0, 0, 0, 0]
2017-12-21 23:00:58 DEBUG (SyncWorker_0) [homeassistant.components.sensor.miflora] Median is: 0
2017-12-21 23:00:58 DEBUG (SyncWorker_15) [homeassistant.components.sensor.miflora] Polling data for Zamioculcas zamiifolia Moisture
2017-12-21 23:00:58 INFO (SyncWorker_15) [homeassistant.components.sensor.miflora] Polling error [Errno Could not read data from Mi Flora sensor %s] XX:XX:XX:XX:XX:XX

Unfortunately I am still stuck at this. I had to go back up to 0.60 to get my IKEA Lights to work but now I am left with broken mifloras…

I searched some more through the forums, checked the debug log but did not get closer to a solution other than that I am pretty sure the Bluetooth part is the problem, not the MQTT.

Maybe we can compare what we have in our setup especially since it is working for @lolouk44 ?

This is my sensor, I did not change anything in forever.

- platform: miflora 
  mac: 'C4:7C:8D:XX:XX:XX'
  name: "Fiederaralie"
  median: 1
  monitored_conditions:
    - temperature
    - moisture
    - battery
    - conductivity

I also added the devicetracker : - platform: bluetooth_tracker in my configuration as I read somewhere it was needed (which at least it wasnt before). This also does not find the mifloras, only added my phone which i used as a test to the “known_devices”.

I thought maybe with 0.60 bluetooth-adapter changed, so I also added “adapter: hci0”, “adapter: hci1” to different sensors but also to no avail…

Can you guys check if your Bluetooth-Log in the Hass.io Addon looks like this as well:

This is what my log looks like

Out of interest, I noticed that my miflora sensor doesn’t work if I have it registered in the Xiaomi app. As soon as I delete the sensor grin the app it works in HA. Also I only have one sensor (for now…)

Yes, I read that when I initially set up the sensors, that you need to have them unpaired from everything else. Which I did back then and never touched any of it again. Since it instantly worked again in 0.59, it can not be about the miflora sensors, but it must be something about the Bluetooth installation.

Do we know who is developing that add on?

And you are using Hass.io on a RPi3 and its working @lolouk44 ? Did you modify anything in the bluetooth settings? Could you check the Bluetooth-Addon log ? Thanks

No I’m not on hass.io I’m on a regular ubuntu 16.04 on an HP server. No idea who developed the sensor in afraid

I just started with Hassio and Miflora didn’t work for me on the 0.60 neither. I downgraded to 0.59 and it works now.

I suspect that this may be related: https://github.com/home-assistant/hassio-build/pull/48/files
That pull request says “merge this because Alpine 3.7 will have the gatttool” but I checked the homassistant image and it doesn’t have it.

thats a nice find!

since its a PR from @sharukins maybe he can help with this whole problem?

package bluez-depricated was not included in hass.io prior to my PR. It has been added but therefore MiFlora does not work at the moment but should be back up and running after the next update.

I can confirm that it is working again in 0.60.1. Thanks!

Hi, my sensors are detected but stop working after some time (a few days). Im on 0.71 now. The logging tells me updating takes more than 10 sec.

Hey, mine are working just fine currently on 0.74. I randomly also get the 10 seconds warning.

How many sensors do you have running simultaniously? I have 8 at the moment which seems a bit too much. I was running 6 or 7 for months without any issues. Since I have 8, none of them work. (perhaps the wireless signals are too much?)

Only two and they are located pretty close to the raspi.

I have 2 flora and 2 temp hygro sensors