moroen / IKEA-Tradfri-plugin

A Python plugin for Domoticz to controll IKEA Gateway
68 stars 23 forks source link

Error: (IKEA TRADFRI) 'onMessage' failed 'KeyError'. #80

Closed redfirebrooks closed 4 years ago

redfirebrooks commented 4 years ago

Hello After reseting 2 bulbs I have this message now in the Domoticz Logs I don't know what to do, the Group created for this bulbs does not show up in Domoticz

2019-07-24 20:04:29.291 Error: (IKEA TRADFRI) 'onMessage' failed 'KeyError'.
2019-07-24 20:04:29.291 Error: (IKEA TRADFRI) ----> Line 335 in '/home/pi/domoticz/plugins/IKEA-Tradfri/plugin.py', function onMessage
2019-07-24 20:04:29.291 Error: (IKEA TRADFRI) ----> Line 243 in '/home/pi/domoticz/plugins/IKEA-Tradfri/plugin.py', function onMessage
2019-07-24 20:04:29.291 Error: (IKEA TRADFRI) ----> Line 168 in '/home/pi/domoticz/plugins/IKEA-Tradfri/plugin.py', function updateDeviceState
2019-07-24 20:04:29.291 Error: (IKEA TRADFRI) 'onMessage' failed 'KeyError'.
2019-07-24 20:04:29.291 Error: (IKEA TRADFRI) ----> Line 335 in '/home/pi/domoticz/plugins/IKEA-Tradfri/plugin.py', function onMessage
2019-07-24 20:04:29.291 Error: (IKEA TRADFRI) ----> Line 243 in '/home/pi/domoticz/plugins/IKEA-Tradfri/plugin.py', function onMessage
2019-07-24 20:04:29.291 Error: (IKEA TRADFRI) ----> Line 168 in '/home/pi/domoticz/plugins/IKEA-Tradfri/plugin.py', function updateDeviceState
moroen commented 4 years ago

Could you please run the adapter from the command line and post the output?

redfirebrooks commented 4 years ago

Sorry but I managed somehow to make it work. I resented every buld one more time, stopped domoticz, rebooted. Then I ran the tac to note the ID of the group. I restarted again domoticz and managed to see bulbs groups without any error.

moroen commented 4 years ago

Ok, glad it worked out!