flatsiedatsie / Mi_Flower_mate_plugin

A plugin for Domoticz, the open source home automation software, which allows it to easily connect to Xiaomi Mi Flower Mate devices
GNU General Public License v3.0
13 stars 5 forks source link

Error in log when polling sensor for data #1

Closed bramstroker closed 6 years ago

bramstroker commented 6 years ago

I added the MAC addresses of my Flower Mates to the configuration and set the device selection to manual. However when the plugin is trying to get sensor data the following error appears in the log:

2018-05-10 06:59:47.415 (Xiaomi Mi Flower) getting data from sensor: C4:7C:8D:66:31:E9
2018-05-10 06:59:47.430 Error: (Xiaomi Mi Flower) 'onHeartbeat' failed 'ImportError'.
2018-05-10 06:59:47.430 Error: (Xiaomi Mi Flower) ----> Line 247 in /home/pi/domoticz/plugins/Mi_Flower/plugin.py, function onHeartbeat
2018-05-10 06:59:47.430 Error: (Xiaomi Mi Flower) ----> Line 99 in /home/pi/domoticz/plugins/Mi_Flower/plugin.py, function onHeartbeat
2018-05-10 06:59:47.430 Error: (Xiaomi Mi Flower) ----> Line 154 in /home/pi/domoticz/plugins/Mi_Flower/plugin.py, function getPlantData
2018-05-10 06:59:47.430 Error: (Xiaomi Mi Flower) ----> Line 103 in /home/pi/domoticz/plugins/Mi_Flower/miflora/miflora_poller.py, function firmware_version
2018-05-10 06:59:47.430 Error: (Xiaomi Mi Flower) ----> Line 47 in /home/pi/domoticz/plugins/Mi_Flower/miflora/backends/__init__.py, function __enter__
2018-05-10 06:59:47.430 Error: (Xiaomi Mi Flower) ----> Line 48 in /home/pi/domoticz/plugins/Mi_Flower/miflora/backends/bluepy.py, function connect
bramstroker commented 6 years ago

Nevermind, figured it out already. Forgot to install bluepy lib.