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

Issue creating new entry #5

Open criscaru opened 5 years ago

criscaru commented 5 years ago

I installed the plugin and when I start it I can see this in the logs (debugging on):

2018-09-16 12:17:58.558 (MIF2) Number of devices found via bluetooth scan = 1
2018-09-16 12:17:58.559 (MIF2) Creating new sensors
2018-09-16 12:17:58.559 (MIF2) Creating new sensors for Mi Flower Mate at C4:7C:8D:66:17:56
2018-09-16 12:17:58.559 (MIF2) Creating first sensor, #2
2018-09-16 12:17:58.560 (MIF2) Creating first sensor, name: #0 Moisture
2018-09-16 12:17:58.560 (MIF2) Creating device '#0 Moisture'.
2018-09-16 12:17:58.560 Error: (MIF2) 'onStart' failed 'KeyError'.
2018-09-16 12:17:58.560 Error: (MIF2) ----> Line 238 in '/home/cristiano/domoticz/plugins/MIFlower/plugin.py', function onStart
2018-09-16 12:17:58.560 Error: (MIF2) ----> Line 68 in '/home/cristiano/domoticz/plugins/MIFlower/plugin.py', function onStart
2018-09-16 12:17:58.560 Error: (MIF2) ----> Line 230 in '/home/cristiano/domoticz/plugins/MIFlower/plugin.py', function floraScan
2018-09-16 12:17:58.561 Error: (MIF2) ----> Line 127 in '/home/cristiano/domoticz/plugins/MIFlower/plugin.py', function createSensors

Sensors are not created.

Can you please help?

flatsiedatsie commented 5 years ago

Please try the latest version.