miflora
                                
                                 miflora copied to clipboard
                                
                                    miflora copied to clipboard
                            
                            
                            
                        Mi Flora Max Support
I tried to get data from the new Mi Flora Max with firmware version 3.6.6. Unfortunately, it did not work. Is this new version supported or have I done something wrong?
LOG: Sat, 06 Aug 2022 15:17:42 ERROR could not read data from C4:7C:8D:6D:59:3F (flora_1) with reason: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/btlewrap/bluepy.py", line 27, in _func_wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/btlewrap/bluepy.py", line 75, in read_handle return self._peripheral.readCharacteristic(handle) File "/usr/local/lib/python3.9/dist-packages/bluepy/btle.py", line 529, in readCharacteristic self._writeCmd("rd %X\n" % handle) File "/usr/local/lib/python3.9/dist-packages/bluepy/btle.py", line 302, in _writeCmd raise BTLEInternalError("Helper not started (did you call connect()?)") bluepy.btle.BTLEInternalError: Helper not started (did you call connect()?)
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/plantgw/plantgw.py", line 263, in process_all self.process_mac(sensor) File "/usr/local/lib/python3.9/dist-packages/plantgw/plantgw.py", line 241, in process_mac self._publish(sensor_config, poller) File "/usr/local/lib/python3.9/dist-packages/plantgw/plantgw.py", line 213, in _publish MQTTAttributes.BATTERY.value: poller.parameter_value(MI_BATTERY), File "/usr/local/lib/python3.9/dist-packages/miflora/miflora_poller.py", line 149, in parameter_value return self.battery_level() File "/usr/local/lib/python3.9/dist-packages/miflora/miflora_poller.py", line 119, in battery_level self.firmware_version() File "/usr/local/lib/python3.9/dist-packages/miflora/miflora_poller.py", line 128, in firmware_version res = connection.read_handle(_HANDLE_READ_VERSION_BATTERY) # pylint: disable=no-member File "/usr/local/lib/python3.9/dist-packages/btlewrap/bluepy.py", line 33, in _func_wrapper raise BluetoothBackendException() from last_error btlewrap.base.BluetoothBackendException
Example with demo.py:
pi@plantgateway:~ $ sudo python demo.py --backend bluepy poll XX:XX:XX:XX:XX:XX
Getting data from Mi Flora
DEBUG:miflora.miflora_poller:Received result for handle 56: 64 53 33 2E 36 2E 36
FW: 3.6.6
Name: Grow care garden
DEBUG:miflora.miflora_poller:Filling cache with new sensor data.
DEBUG:miflora.miflora_poller:Received result for handle 53: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Traceback (most recent call last):
File "/home/pi/demo.py", line 142, in 
Could you clarify which device you are talking about? https://www.google.com/search?q=Mi+Flora+Max
Xiaomi HHCC Mi Flower Care Plant Sensor Max https://www.techpunt.nl/en/xiaomi-hhcc-mi-flower-care-plant-sensor-max.html?gclid=Cj0KCQjworiXBhDJARIsAMuzAux9hI_KRIh2B7IK5UOW0pzWWzLLExTK75GUVELdgqPfJwyu7irxemIaAmhdEALw_wcB