Closed arepih closed 1 year ago
How did you install HA? This error normally means that something is wrong with Bluetooth on the Pi or dongle. Either on hardware level, or on OS level.
I’m not using HA (Home assistant?). Actually someone open same issue previously struct.error: unpack requires a buffer of 2 bytes #40 and it was because the device use custom data structure so I thought maybe Xiaomi beacon format is not supported. I will try changing the thermometer to ATC beacon format and check if same error happen or not.
Ah, sorry, my mistake.
Changed to ATC format, same error. Move the sd card from rpi4 into rpi3B+, same error. Remove and reinsert battery from thermometer still error. Reboot the rpi, uninstall aioblescan then install again, finally no more error.
Installed on RPi 4 and got error below after running a while: sudo aioblescan - m xx:xx:xx:xx:xx:xx Device is ATCMiThermometer with pvvx firmware v4.3 using Xiaomi beacon format (not ATC format) The reason I'm using Xiaomi beacon format beacuse I'm trying to get data from LYWSD03MMC thermometer both with older mi thermometer (circle shape with stock firmware which use Xiaomi beacon format).