ChristianKuehnel / plantgateway

Bluetooth to mqtt gateway for Xiaomi Mi plant sensors
Apache License 2.0
271 stars 43 forks source link

Error on firmware 3.2.1 #33

Open greetoz opened 5 years ago

greetoz commented 5 years ago

Hello,

I just received two mi flora’s with firmware 3.2.1 even though the mi home app says 3.1.9 is the newest. I have 4 mi floras on 3.1.9 and they work great. The two new ones give bluepy.py and base.py errors. And don’t update moisture and temperature.

21:12 Mon 2 Apr -11 93% 4 on, 22 Apr 2019 20:11:19 INFO Getting data from sensor Pachira_macrocarpa on, 22 Apr 2019 20:11:28 INFO sent data to topic plantgateway/plants/pachira_macrocarpa/ on, 22 Apr 2019 20:11:28 INFO Getting data from sensor Asparagus Mon, 22 Apr 2019 20:12:08 INFO sent data to topic plantgateway/plants/Asparagus/ on, 22 Apr 2019 20:12:08 INFO Getting data from sensor Bush_lily exception ignored in: <bound method Bluetoothlnterf ace.del of <btlewrap.base.Bluetoothlnterface object at 0xb69a6f10>> racetrack (most recent ca11 last) : File "/usr/local/lib/python3.5/dist-packages/btlewrap/base.py", line 17, in del self. backend.disconnect() File "/usr/local/lib/python3.5/dist-packages/btlewrap/b1uepy.py", line 26, in func _wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/btlewrap/b1uepy.py", line 60, in disconnect self. _peripheral.disconnect() A ttributeError: 'No reType' object has no attribute 'disconnect' on, 22 Apr 2019 20:12:10 INFO sent data to topic p1antgateway/plants/Bush_lily/ on, 22 Apr 2019 20:12:10 INFO Disconnected MOTT connection 1 pi@pizerodownstairs:~ $