deennoo / domoticz-Xiaomi-Led-Lamp

Domoticz Plugin for Philips ZhiRui E27 bulb aka Xiaomi Philips LED Ball Lamp
9 stars 2 forks source link

Plugin works but constantly throwing an error - dictionary update sequence #8

Closed artgru closed 5 years ago

artgru commented 5 years ago

The plugin works if I send commands to it. On/off/brightness/color works but the status isn't updated in the domoticz and in the logs I am being spammed constantly with just one thing:

Unrecognized error: dictionary update sequence element #0 has length 1; 2 is required

after each action. Do you have any idea what might cause it?

2019-06-16 21:02:41.899 (Sypialnia) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2019-06-16 21:02:41.899 (Sypialnia) 'HardwareID':'9'
2019-06-16 21:02:41.899 (Sypialnia) 'HomeFolder':'/config/plugins/PhilipsE27-Led/'
2019-06-16 21:02:41.899 (Sypialnia) 'StartupFolder':'/var/lib/domoticz/'
2019-06-16 21:02:41.899 (Sypialnia) 'UserDataFolder':'/config/'
2019-06-16 21:02:41.899 (Sypialnia) 'WebRoot':'domoticz'
2019-06-16 21:02:41.899 (Sypialnia) 'Database':'/config/domoticz.db'
2019-06-16 21:02:41.899 (Sypialnia) 'Language':'pl'
2019-06-16 21:02:41.899 (Sypialnia) 'Version':'0.1.2'
2019-06-16 21:02:41.899 (Sypialnia) 'Author':'Deennoo'
2019-06-16 21:02:41.899 (Sypialnia) 'Name':'Sypialnia'
2019-06-16 21:02:41.899 (Sypialnia) 'Address':'192.168.1.15'
2019-06-16 21:02:41.899 (Sypialnia) 'Port':'0'
2019-06-16 21:02:41.899 (Sypialnia) 'Key':'XiaomiPhilipsLEDBallLamp'
2019-06-16 21:02:41.899 (Sypialnia) 'Mode1':'d33e8067b3e224c61397e62195440ee1'
2019-06-16 21:02:41.900 (Sypialnia) 'Mode3':'1'
2019-06-16 21:02:41.900 (Sypialnia) 'Mode6':'Debug'
2019-06-16 21:02:41.900 (Sypialnia) 'DomoticzVersion':'4.10914'
2019-06-16 21:02:41.900 (Sypialnia) 'DomoticzHash':'c0edefe51'
2019-06-16 21:02:41.900 (Sypialnia) 'DomoticzBuildTime':'2019-06-15 17:53:20'
2019-06-16 21:02:41.900 (Sypialnia) Device count: 2
2019-06-16 21:02:41.900 (Sypialnia) Device: 1 - ID: 65, Name: 'Sypialnia - Scenes', nValue: 0, sValue: '0'
2019-06-16 21:02:41.900 (Sypialnia) Device ID: '65'
2019-06-16 21:02:41.900 (Sypialnia) Device Name: 'Sypialnia - Scenes'
2019-06-16 21:02:41.900 (Sypialnia) Device nValue: 0
2019-06-16 21:02:41.900 (Sypialnia) Device sValue: '0'
2019-06-16 21:02:41.900 (Sypialnia) Device LastLevel: 0
2019-06-16 21:02:41.900 (Sypialnia) Device: 2 - ID: 66, Name: 'Sypialnia', nValue: 0, sValue: '0'
2019-06-16 21:02:41.900 (Sypialnia) Device ID: '66'
2019-06-16 21:02:41.900 (Sypialnia) Device Name: 'Sypialnia'
2019-06-16 21:02:41.900 (Sypialnia) Device nValue: 0
2019-06-16 21:02:41.900 (Sypialnia) Device sValue: '0'
2019-06-16 21:02:41.900 (Sypialnia) Device LastLevel: 0
2019-06-16 21:02:41.900 (Sypialnia) Pushing 'PollIntervalDirective' on to queue
2019-06-16 21:02:41.900 (Sypialnia) Device UNIT_SCENES with id 1 exist
2019-06-16 21:02:41.900 (Sypialnia) Device UNIT_CCCW with id 2 exist
2019-06-16 21:02:41.900 (Sypialnia) onHeartbeat called, fetch False
2019-06-16 21:02:41.900 (Sypialnia) sensor_measurement
2019-06-16 21:02:41.737 Status: (Sypialnia) Stop directive received.
2019-06-16 21:02:41.737 Status: (Sypialnia) Stopping threads.
2019-06-16 21:02:41.737 Status: (Sypialnia) Stopped.
2019-06-16 21:02:41.738 Status: (Sypialnia) Started.
2019-06-16 21:02:41.897 Status: (Sypialnia) Initialized version 0.1.2, author 'Deennoo'
2019-06-16 21:02:41.898 Status: (Sypialnia) Entering work loop.
2019-06-16 21:02:42.681 (Sypialnia)
2019-06-16 21:02:42.682 (Sypialnia) onHeartbeat finished
2019-06-16 21:02:42.682 (Sypialnia) Processing 'PollIntervalDirective' message
2019-06-16 21:02:42.682 (Sypialnia) Heartbeat interval set to: 20.
2019-06-16 21:02:42.682 Error: (Sypialnia) Unrecognized error: dictionary update sequence element #0 has length 1; 2 is required 
artgru commented 5 years ago

Ok, solved! :)