cant seem to poll. I got the BLE mac via android app and added to config but no joy.
> Log Details (WARNING)
> Thu Jul 26 2018 13:35:00 GMT+1000 (Australian Eastern Standard Time)
>
> Polling error Could not read data from Mi Temp sensor 4c:65:a8:d3:d5:ca
Iāve the same issue. No idea what Iām doing wrong. I followed the following steps:
Discovered the MAC address using my Android phone (by pairing with the BLE sensor)
Added the below to my configuration
The error logs show that Hassio is unable to retrieve any values from the sensor.
Placed the BLE sensor within 1m of the Raspberry Pi
Restarted the Raspberry Pi
Iām on Hassio 0.71 btw. Do I need to pair the sensor with the Raspberry Pi? Seems unusual that all one needs is the MAC address and voila, you can read the BLE sensor readouts.
sensor:
- platform: mitemp_bt
mac: '4C:65:A8:D8:7F:58'
name: Xiaomi BLE Sensor
2018-07-28 13:21:32 WARNING (SyncWorker_8) [homeassistant.components.sensor.mitemp_bt] Polling error
2018-07-28 13:21:32 WARNING (SyncWorker_17) [homeassistant.components.sensor.mitemp_bt] Polling error Could not read data from Mi Temp sensor 4C:65:A8:D8:7F:58
2018-07-28 13:21:34 WARNING (SyncWorker_14) [homeassistant.components.sensor.mitemp_bt] Polling error Could not read data from Mi Temp sensor 4C:65:A8:D8:7F:58
I have had no issues apart from taking over 10 seconds sometimes.
From having a look it seems you donāt need to āpairā it. Once the MAC address is found it should be fine.
With the code (just thinking out loud) does it work if you include the āmonitored conditionsā even though itās optional?
Hey all, mine is working now. Turns out the bluetooth range between the raspberry pi and the sensor isnāt great. Iāve to have both in the same room to get the sensor data into Hass
Could it be due the fact, that those sensors are from Aliexpress (region mainland China)? I mean I cant use them in mainland Europe in Android app Mi Home, but I cant successfully use them in region mainland china.
Could be this limitation directly in the firmware of the sensors?
The topic is already discussed here. For Domoticz there is a python script, which by the comments of other looks like, that reading of the sensor can be done. Does it mean, that there is an error in Home Asistant add-on?
Oh manā¦ one of ours is playing up all of a sudden. I put the sensor RIGHT NEXT to the pi but just get the āPolling error Could not read data from Mi Temp sensorā
EDIT: Turns out the program I use to find the Mac address wasnāt showing me the correct one. I had to take the batteries out of all my other devices and then it found it.
Helps when you have the right Mac address huh!
So, if this is still a bug, my 5.43-2 should be a ābug-versionā.
Then I disable pnat plugin, by editing /etc/bluetooth/main.conf with sudo and add + reboot:
DisablePlugins=pnat
Another problem could just be the low rPi3 antenna. A solution could be to attach sma connector to it: