heggink / domoticz-nuki

python plugin for the nuki locks
MIT License
9 stars 5 forks source link

Bug in domoticz #10

Closed salopette closed 3 years ago

salopette commented 3 years ago

Hello, I've been getting errors in domoticz lately and the door sensor is not being transmitted.

2021-02-08 19:19:12.406 Error: Python Plugin System: (Nuki) 'onMessage' failed 'JSONDecodeError'. 2021-02-08 19:19:12.406 Error: Python Plugin System: (Nuki) ----> Line 419 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage 2021-02-08 19:19:12.406 Error: Python Plugin System: (Nuki) ----> Line 250 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage 2021-02-08 19:19:12.406 Error: Python Plugin System: (Nuki) ----> Line 348 in '/usr/lib/python3.7/json/init.py', function loads 2021-02-08 19:19:12.406 Error: Python Plugin System: (Nuki) ----> Line 340 in '/usr/lib/python3.7/json/decoder.py', function decode 2021-02-08 19:19:33.824 Error: Python Plugin System: (Nuki) 'onMessage' failed 'JSONDecodeError'. 2021-02-08 19:19:33.824 Error: Python Plugin System: (Nuki) ----> Line 419 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage 2021-02-08 19:19:33.824 Error: Python Plugin System: (Nuki) ----> Line 250 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage 2021-02-08 19:19:33.824 Error: Python Plugin System: (Nuki) ----> Line 348 in '/usr/lib/python3.7/json/init.py', function loads 2021-02-08 19:19:33.824 Error: Python Plugin System: (Nuki) ----> Line 340 in '/usr/lib/python3.7/json/decoder.py', function decode

heggink commented 3 years ago

Hey salopette, 2 questions: 1) have you updated anything in your installation (python packages)? 2) can you switch on debug and send the log? The error above is not enough to find the cause H

salopette commented 3 years ago

Hello, I actually always update my system, almost every day. Also domoticz and debian packages. The error only seems to happen with the door sensor.2021-02-09 15:23:19.513 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:23:19.520 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:23:19.521 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:23:19.521 Python Plugin System: (Nuki) onHeartbeat called 7 2021-02-09 15:23:29.543 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:23:29.550 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:23:29.551 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:23:29.551 Python Plugin System: (Nuki) onHeartbeat called 8 2021-02-09 15:23:39.632 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:23:39.637 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:23:39.637 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:23:39.637 Python Plugin System: (Nuki) onHeartbeat called 9 2021-02-09 15:23:49.653 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:23:49.697 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:23:49.697 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:23:49.697 Python Plugin System: (Nuki) onHeartbeat called 10 2021-02-09 15:23:59.657 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:23:59.675 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:23:59.675 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:23:59.675 Python Plugin System: (Nuki) onHeartbeat called 11 2021-02-09 15:24:04.209 Python Plugin System: (Nuki) Pushing 'ProtocolDirective' on to queue 2021-02-09 15:24:04.209 Python Plugin System: (Nuki) Pushing 'onConnectCallback' on to queue 2021-02-09 15:24:04.213 Python Plugin System: (Nuki) Pushing 'ReadEvent' on to queue 2021-02-09 15:24:04.246 (Nuki) Processing 'ProtocolDirective' message 2021-02-09 15:24:04.246 Python Plugin System: (Nuki) Protocol set to: 'HTML'. 2021-02-09 15:24:04.246 (Nuki) Processing 'onConnectCallback' message 2021-02-09 15:24:04.246 Python Plugin System: (Nuki) Calling message handler 'onConnect'. 2021-02-09 15:24:04.246 Python Plugin System: (Nuki) Connected successfully to: 192.168.178.126:53222 2021-02-09 15:24:04.246 Python Plugin System: (Nuki) Name: '192.168.178.126:53222', Transport: 'TCP/IP', Protocol: 'HTML', Address: '192.168.178.126', Port: '53222', Baud: 0, Bytes: 0, Connected: True, Last Seen: 2021-02-09 15:24:04, Parent: 'Server Connection' 2021-02-09 15:24:04.246 (Nuki) Processing 'ReadEvent' message 2021-02-09 15:24:04.246 Python Plugin System: (Nuki) Received 389 bytes of data 2021-02-09 15:24:04.246 Python Plugin System: (Nuki) 54 79 70 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 Type:.application/js 2021-02-09 15:24:04.246 Python Plugin System: (Nuki) 6f 6e 3b 63 68 61 72 73 65 74 3d 75 74 66 2d 38 0d 0a 43 6f on;charset=utf-8..Co 2021-02-09 15:24:04.246 Python Plugin System: (Nuki) 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 31 37 35 0d 0a 0d ntent-Length:.175... 2021-02-09 15:24:04.246 Python Plugin System: (Nuki) 0a 7b 22 63 61 6c 6c 62 61 63 6b 73 22 3a 20 5b 7b 22 69 64 .{"callbacks":.[{"id 2021-02-09 15:24:04.246 Python Plugin System: (Nuki) 22 3a 20 30 2c 20 22 75 72 6c 22 3a 20 22 68 74 74 70 3a 2f ":.0,."url":."http:/ 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 2f 31 39 32 2e 31 36 38 2e 31 37 38 2e 33 37 3a 38 30 30 38 /192.168.178.37:8008 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 22 7d 2c 7b 22 69 64 22 3a 20 31 2c 20 22 75 72 6c 22 3a 20 "},{"id":.1,."url":. 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 22 68 74 74 70 3a 2f 2f 31 39 32 2e 31 36 38 2e 31 37 38 2e "http://192.168.178. 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 37 34 3a 38 30 30 38 22 7d 2c 7b 22 69 64 22 3a 20 32 2c 20 74:8008"},{"id":.2,. 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 22 75 72 6c 22 3a 20 22 68 74 74 70 3a 2f 2f 31 39 32 2e 31 "url":."http://192.1 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 36 38 2e 31 37 38 2e 31 32 36 3a 36 33 37 39 38 2f 6e 75 6b 68.178.126:63798/nuk 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 69 2d 61 70 69 2d 62 72 69 64 67 65 22 7d 5d 7d 20 3a 20 5c i-api-bridge"}]}.:.\ 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 22 30 36 3a 33 31 5c 22 2c 5c 6e 5c 74 5c 22 53 65 72 76 65 "06:31\",\n\t\"Serve 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 72 54 69 6d 65 5c 22 20 3a 20 5c 22 32 30 32 31 2d 30 32 2d rTime\".:.\"2021-02- 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 30 39 20 31 35 3a 32 32 3a 30 39 5c 22 2c 5c 6e 5c 74 5c 22 09.15:22:09\",\n\t\" 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 53 75 6e 41 74 53 6f 75 74 68 5c 22 20 3a 20 5c 22 31 32 3a SunAtSouth\".:.\"12: 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 33 35 5c 22 2c 5c 6e 5c 74 5c 22 53 75 6e 72 69 73 65 5c 22 35\",\n\t\"Sunrise\" 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 20 3a 20 5c 22 30 37 3a 34 37 5c 22 2c 5c 6e 5c 74 5c 22 53 .:.\"07:47\",\n\t\"S 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 75 6e 73 65 74 5c 22 20 3a 20 5c 22 31 37 3a 32 33 5c 22 2c unset\".:.\"17:23\", 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) 5c 6e 5c 74 5c 22 61 70 70 .. .. .. .. .. .. .. .. .. .. .. \n\t\"app 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) Pushing 'onMessageCallback' on to queue 2021-02-09 15:24:04.247 (Nuki) Processing 'onMessageCallback' message 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) Calling message handler 'onMessage'. 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) onMessage called for connection: :8008 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) Lock message received Type: application/json;charset=utf-8 2021-02-09 15:24:04.247 {"callbacks": [{"id": 0, "url": "http://192.168.178.37:8008"},{"id": 1, "url": "http://192.168.178.74:8008"},{"id": 2, "url": "http://192.168.178.126:63798/nuki-api-bridge"}]} : \"06:31\",\n\t\"ServerTime\" : \"2021-02-09 15:22:09\",\n\t\"SunAtSouth\" : \"12:35\",\n\t\"Sunrise\" : \"07:47\",\n\t\"Sunset\" : \"17:23\",\n\t\"app 2021-02-09 15:24:04.247 Python Plugin System: (Nuki) JSON is {"callbacks": [{"id": 0, "url": "http://192.168.178.37:8008"},{"id": 1, "url": "http://192.168.178.74:8008"},{"id": 2, "url": "http://192.168.178.126:63798/nuki-api-bridge"}]} : \"06:31\",\n\t\"ServerTime\" : \"2021-02-09 15:22:09\",\n\t\"SunAtSouth\" : \"12:35\",\n\t\"Sunrise\" : \"07:47\",\n\t\"Sunset\" : \"17:23\",\n\t\"app 2021-02-09 15:24:04.248 Error: Python Plugin System: (Nuki) 'onMessage' failed 'JSONDecodeError'. 2021-02-09 15:24:04.248 Error: Python Plugin System: (Nuki) ----> Line 419 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage 2021-02-09 15:24:04.248 Error: Python Plugin System: (Nuki) ----> Line 250 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage 2021-02-09 15:24:04.248 Error: Python Plugin System: (Nuki) ----> Line 348 in '/usr/lib/python3.7/json/__init__.py', function loads 2021-02-09 15:24:04.248 Error: Python Plugin System: (Nuki) ----> Line 340 in '/usr/lib/python3.7/json/decoder.py', function decode 2021-02-09 15:24:09.681 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:24:09.688 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:24:09.688 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:24:09.688 Python Plugin System: (Nuki) onHeartbeat called 12 2021-02-09 15:24:22.820 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:24:22.849 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:24:22.850 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:24:22.850 Python Plugin System: (Nuki) onHeartbeat called 13 2021-02-09 15:24:25.962 Python Plugin System: (Nuki) Pushing 'ProtocolDirective' on to queue 2021-02-09 15:24:25.962 Python Plugin System: (Nuki) Pushing 'onConnectCallback' on to queue 2021-02-09 15:24:25.965 Python Plugin System: (Nuki) Pushing 'ReadEvent' on to queue 2021-02-09 15:24:26.008 (Nuki) Processing 'ProtocolDirective' message 2021-02-09 15:24:26.008 Python Plugin System: (Nuki) Protocol set to: 'HTML'. 2021-02-09 15:24:26.008 (Nuki) Processing 'onConnectCallback' message 2021-02-09 15:24:26.008 Python Plugin System: (Nuki) Calling message handler 'onConnect'. 2021-02-09 15:24:26.008 Python Plugin System: (Nuki) Connected successfully to: 192.168.178.126:53225 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) Name: '192.168.178.126:53225', Transport: 'TCP/IP', Protocol: 'HTML', Address: '192.168.178.126', Port: '53225', Baud: 0, Bytes: 0, Connected: True, Last Seen: 2021-02-09 15:24:25, Parent: 'Server Connection' 2021-02-09 15:24:26.009 (Nuki) Processing 'ReadEvent' message 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) Received 389 bytes of data 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 54 79 70 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 Type:.application/js 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 6f 6e 3b 63 68 61 72 73 65 74 3d 75 74 66 2d 38 0d 0a 43 6f on;charset=utf-8..Co 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 31 37 35 0d 0a 0d ntent-Length:.175... 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 0a 7b 22 63 61 6c 6c 62 61 63 6b 73 22 3a 20 5b 7b 22 69 64 .{"callbacks":.[{"id 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 22 3a 20 30 2c 20 22 75 72 6c 22 3a 20 22 68 74 74 70 3a 2f ":.0,."url":."http:/ 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 2f 31 39 32 2e 31 36 38 2e 31 37 38 2e 33 37 3a 38 30 30 38 /192.168.178.37:8008 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 22 7d 2c 7b 22 69 64 22 3a 20 31 2c 20 22 75 72 6c 22 3a 20 "},{"id":.1,."url":. 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 22 68 74 74 70 3a 2f 2f 31 39 32 2e 31 36 38 2e 31 37 38 2e "http://192.168.178. 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 37 34 3a 38 30 30 38 22 7d 2c 7b 22 69 64 22 3a 20 32 2c 20 74:8008"},{"id":.2,. 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 22 75 72 6c 22 3a 20 22 68 74 74 70 3a 2f 2f 31 39 32 2e 31 "url":."http://192.1 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 36 38 2e 31 37 38 2e 31 32 36 3a 36 33 37 39 38 2f 6e 75 6b 68.178.126:63798/nuk 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 69 2d 61 70 69 2d 62 72 69 64 67 65 22 7d 5d 7d 20 3a 20 5c i-api-bridge"}]}.:.\ 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 22 30 36 3a 33 31 5c 22 2c 5c 6e 5c 74 5c 22 53 65 72 76 65 "06:31\",\n\t\"Serve 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 72 54 69 6d 65 5c 22 20 3a 20 5c 22 32 30 32 31 2d 30 32 2d rTime\".:.\"2021-02- 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 30 39 20 31 35 3a 32 32 3a 30 39 5c 22 2c 5c 6e 5c 74 5c 22 09.15:22:09\",\n\t\" 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 53 75 6e 41 74 53 6f 75 74 68 5c 22 20 3a 20 5c 22 31 32 3a SunAtSouth\".:.\"12: 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 33 35 5c 22 2c 5c 6e 5c 74 5c 22 53 75 6e 72 69 73 65 5c 22 35\",\n\t\"Sunrise\" 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 20 3a 20 5c 22 30 37 3a 34 37 5c 22 2c 5c 6e 5c 74 5c 22 53 .:.\"07:47\",\n\t\"S 2021-02-09 15:24:26.009 Python Plugin System: (Nuki) 75 6e 73 65 74 5c 22 20 3a 20 5c 22 31 37 3a 32 33 5c 22 2c unset\".:.\"17:23\", 2021-02-09 15:24:26.010 Python Plugin System: (Nuki) 5c 6e 5c 74 5c 22 61 70 70 .. .. .. .. .. .. .. .. .. .. .. \n\t\"app 2021-02-09 15:24:26.010 Python Plugin System: (Nuki) Pushing 'onMessageCallback' on to queue 2021-02-09 15:24:26.010 (Nuki) Processing 'onMessageCallback' message 2021-02-09 15:24:26.010 Python Plugin System: (Nuki) Calling message handler 'onMessage'. 2021-02-09 15:24:26.010 Python Plugin System: (Nuki) onMessage called for connection: :8008 2021-02-09 15:24:26.010 Python Plugin System: (Nuki) Lock message received Type: application/json;charset=utf-8 2021-02-09 15:24:26.010 {"callbacks": [{"id": 0, "url": "http://192.168.178.37:8008"},{"id": 1, "url": "http://192.168.178.74:8008"},{"id": 2, "url": "http://192.168.178.126:63798/nuki-api-bridge"}]} : \"06:31\",\n\t\"ServerTime\" : \"2021-02-09 15:22:09\",\n\t\"SunAtSouth\" : \"12:35\",\n\t\"Sunrise\" : \"07:47\",\n\t\"Sunset\" : \"17:23\",\n\t\"app 2021-02-09 15:24:26.010 Python Plugin System: (Nuki) JSON is {"callbacks": [{"id": 0, "url": "http://192.168.178.37:8008"},{"id": 1, "url": "http://192.168.178.74:8008"},{"id": 2, "url": "http://192.168.178.126:63798/nuki-api-bridge"}]} : \"06:31\",\n\t\"ServerTime\" : \"2021-02-09 15:22:09\",\n\t\"SunAtSouth\" : \"12:35\",\n\t\"Sunrise\" : \"07:47\",\n\t\"Sunset\" : \"17:23\",\n\t\"app 2021-02-09 15:24:26.010 Error: Python Plugin System: (Nuki) 'onMessage' failed 'JSONDecodeError'. 2021-02-09 15:24:26.010 Error: Python Plugin System: (Nuki) ----> Line 419 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage 2021-02-09 15:24:26.010 Error: Python Plugin System: (Nuki) ----> Line 250 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage 2021-02-09 15:24:26.010 Error: Python Plugin System: (Nuki) ----> Line 348 in '/usr/lib/python3.7/json/__init__.py', function loads 2021-02-09 15:24:26.010 Error: Python Plugin System: (Nuki) ----> Line 340 in '/usr/lib/python3.7/json/decoder.py', function decode 2021-02-09 15:24:32.821 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:24:32.869 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:24:32.869 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:24:32.869 Python Plugin System: (Nuki) onHeartbeat called 14 2021-02-09 15:24:43.617 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:24:43.620 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:24:43.620 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:24:43.620 Python Plugin System: (Nuki) onHeartbeat called 15 2021-02-09 15:24:53.653 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:24:53.657 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:24:53.657 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:24:53.657 Python Plugin System: (Nuki) onHeartbeat called 16 2021-02-09 15:25:06.604 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:25:06.620 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:25:06.620 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:25:06.620 Python Plugin System: (Nuki) onHeartbeat called 17 2021-02-09 15:25:16.646 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:25:16.651 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:25:16.652 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:25:16.652 Python Plugin System: (Nuki) onHeartbeat called 18 2021-02-09 15:25:26.655 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:25:26.692 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:25:26.692 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:25:26.693 Python Plugin System: (Nuki) onHeartbeat called 19 2021-02-09 15:25:36.660 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:25:36.686 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:25:36.686 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:25:36.686 Python Plugin System: (Nuki) onHeartbeat called 20 2021-02-09 15:25:46.690 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:25:46.727 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:25:46.727 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:25:46.727 Python Plugin System: (Nuki) onHeartbeat called 21 2021-02-09 15:25:56.697 Python Plugin System: (Nuki) Pushing 'onHeartbeatCallback' on to queue 2021-02-09 15:25:56.701 (Nuki) Processing 'onHeartbeatCallback' message 2021-02-09 15:25:56.701 Python Plugin System: (Nuki) Calling message handler 'onHeartbeat'. 2021-02-09 15:25:56.701 Python Plugin System: (Nuki) onHeartbeat called 22

salopette commented 3 years ago

sshot-1

heggink commented 3 years ago

I am not sure I fully understand what's going on. 2 things that are weird:

  1. the debug trace shows the message received on the startup when it checks for lock callbacks. That should have been as a synchornous request on urllib.request and should not be in the onMessage
  2. there seem to be a lot of extra characters at the end of the message that I have not seen so something has changed and the decode statement needs to remove these. The challenge is that the log is a lot more readable if you insert it as code (the <> above) instead of a copy of plain text. Now all the lines are concatenated making it really hard to read. What would help is to get the entire log from startup of the plugin (just restart it by clicking update after selecting the plugin) to these error messages. Do you use the python plugin manager?
salopette commented 3 years ago

Hello, I have now recalibrated the door sensor and the error has not recurred until now!

I will close for now, should we happen again, I will write!

Many thanks for the plugin!