sydspost / Domoticz-WiZ-connected-plugin

Domoticz WiZ connected plugin
MIT License
5 stars 6 forks source link

Plugin crash after changing hardware parameter #20

Open pouilld opened 1 year ago

pouilld commented 1 year ago

After changing a parameter in hardware definition or changing plugin status , the plugin crashes. Restarting domoticz fix the problem. See log:

2022-12-08 17:49:53.951 Status: Domoticz V2022.2 (c)2012-2022 GizMoCuz 2022-12-08 17:49:53.951 Status: Build Hash: eea9db734, Date: 2022-11-05 13:05:35 2022-12-08 17:49:53.951 Status: Startup Path: /home/pi/domoticz/ 2022-12-08 17:49:54.097 Status: PluginSystem: Started, Python version '3.7.3', 8 plugin definitions loaded. 2022-12-08 17:49:54.106 Status: WebServer(HTTP) started on address: :: with port 8087 2022-12-08 17:49:54.119 Status: WebServer(SSL) started on address: :: with port 443 2022-12-08 17:49:54.122 Status: TCPServer: shared server started... 2022-12-08 17:49:54.123 Status: RxQueue: queue worker started... 2022-12-08 17:49:56.124 Status: PI3B TEst: Entering work loop. 2022-12-08 17:49:56.124 Status: PI3B TEst: Started. 2022-12-08 17:49:56.124 Status: Présence MAC: Started. 2022-12-08 17:49:56.124 Status: Présence MAC: Entering work loop. 2022-12-08 17:49:56.124 Status: WiZ: Entering work loop. 2022-12-08 17:49:56.125 Status: WiZ: Started. 2022-12-08 17:49:56.125 Status: NotificationSystem: thread started... 2022-12-08 17:49:56.125 Status: EventSystem: reset all events... 2022-12-08 17:49:56.126 Status: EventSystem: reset all device statuses... 2022-12-08 17:49:56.488 Status: PluginSystem: 3 plugins started. 2022-12-08 17:49:56.553 Status: Python EventSystem: Initializing event module. 2022-12-08 17:49:56.555 Status: EventSystem: Started 2022-12-08 17:49:56.555 Status: EventSystem: Queue thread started... 2022-12-08 17:49:56.704 Status: PI3B TEst: Initialized version 3.1, author 'Xorfor' 2022-12-08 17:49:56.890 Status: Présence MAC: Initialized version 2.0.0, author 'Xorfor' 2022-12-08 17:50:01.547 Status: WiZ: Initialized version 1.0.0, author 'Syds Post' 2022-12-08 17:50:29.150 Status: Incoming connection from: 127.0.0.1 2022-12-08 17:51:22.024 Status: User: Admin (IP: 192.168.7.74) initiated a switch command (74/Lampadaire salon/Set Level) 2022-12-08 17:51:28.541 Status: User: Admin (IP: 192.168.7.74) initiated a switch command (74/Lampadaire salon/Set Level) 2022-12-08 17:51:29.387 WiZ: Acquiring GIL for 'onCommandCallback' 2022-12-08 17:51:29.387 WiZ: Calling message handler 'onCommand' on 'module' type object. 2022-12-08 17:51:29.388 WiZ: onCommand called for Unit 1: Parameter 'Off', Level: 2 2022-12-08 17:51:29.388 WiZ: Sending command for DeviceID=wiz_142d9a.DPX 2022-12-08 17:51:29.404 (Lampadaire salon) Updating device from 1:'2' to have values 0:'Off'. 2022-12-08 17:51:29.423 WiZ: Update 0:'Off' (Lampadaire salon) TimedOut=False 2022-12-08 17:51:29.423 WiZ: Acquiring GIL for 'onCommandCallback' 2022-12-08 17:51:29.370 Status: User: Admin (IP: 192.168.7.74) initiated a switch command (74/Lampadaire salon/Set Level) 2022-12-08 17:51:32.028 WiZ: Pushing 'onHeartbeatCallback' on to queue 2022-12-08 17:51:32.078 WiZ: Processing 'onHeartbeatCallback' message 2022-12-08 17:51:32.078 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:51:32.078 WiZ: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-08 17:51:32.078 WiZ: onHeartbeat called time=1670518292.0788927 2022-12-08 17:51:32.079 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:51:34.281 WiZ: Pushing 'onCommandCallback' on to queue 2022-12-08 17:51:34.283 WiZ: Processing 'onCommandCallback' message 2022-12-08 17:51:34.283 WiZ: Acquiring GIL for 'onCommandCallback' 2022-12-08 17:51:34.283 WiZ: Calling message handler 'onCommand' on 'module' type object. 2022-12-08 17:51:34.283 WiZ: onCommand called for Unit 1: Parameter 'Set Level', Level: 10 2022-12-08 17:51:34.283 WiZ: Sending command for DeviceID=wiz_142d9a.DPX 2022-12-08 17:51:34.279 Status: User: Admin (IP: 192.168.7.74) initiated a switch command (74/Lampadaire salon/Set Level) 2022-12-08 17:51:35.271 (Lampadaire salon) Updating device from 0:'Off' to have values 1:'10'. 2022-12-08 17:51:35.285 WiZ: Update 1:'10' (Lampadaire salon) TimedOut=False 2022-12-08 17:51:35.286 WiZ: Acquiring GIL for 'onCommandCallback' 2022-12-08 17:51:38.873 WiZ: Pushing 'onCommandCallback' on to queue 2022-12-08 17:51:38.892 WiZ: Processing 'onCommandCallback' message 2022-12-08 17:51:38.892 WiZ: Acquiring GIL for 'onCommandCallback' 2022-12-08 17:51:38.892 WiZ: Calling message handler 'onCommand' on 'module' type object. 2022-12-08 17:51:38.892 WiZ: onCommand called for Unit 1: Parameter 'Set Level', Level: 16 2022-12-08 17:51:38.893 WiZ: Sending command for DeviceID=wiz_142d9a.DPX 2022-12-08 17:51:38.911 (Lampadaire salon) Updating device from 1:'10' to have values 1:'16'. 2022-12-08 17:51:38.930 WiZ: Update 1:'16' (Lampadaire salon) TimedOut=False 2022-12-08 17:51:38.930 WiZ: Acquiring GIL for 'onCommandCallback' 2022-12-08 17:51:38.873 Status: User: Admin (IP: 192.168.7.74) initiated a switch command (74/Lampadaire salon/Set Level) 2022-12-08 17:51:41.588 WiZ: Pushing 'onCommandCallback' on to queue 2022-12-08 17:51:41.635 WiZ: Processing 'onCommandCallback' message 2022-12-08 17:51:41.635 WiZ: Acquiring GIL for 'onCommandCallback' 2022-12-08 17:51:41.635 WiZ: Calling message handler 'onCommand' on 'module' type object. 2022-12-08 17:51:41.635 WiZ: onCommand called for Unit 1: Parameter 'Set Level', Level: 20 2022-12-08 17:51:41.636 WiZ: Sending command for DeviceID=wiz_142d9a.DPX 2022-12-08 17:51:41.651 (Lampadaire salon) Updating device from 1:'16' to have values 1:'20'. 2022-12-08 17:51:41.669 WiZ: Update 1:'20' (Lampadaire salon) TimedOut=False 2022-12-08 17:51:41.670 WiZ: Acquiring GIL for 'onCommandCallback' 2022-12-08 17:51:41.587 Status: User: Admin (IP: 192.168.7.74) initiated a switch command (74/Lampadaire salon/Set Level) 2022-12-08 17:51:42.020 WiZ: Pushing 'onHeartbeatCallback' on to queue 2022-12-08 17:51:42.071 WiZ: Processing 'onHeartbeatCallback' message 2022-12-08 17:51:42.071 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:51:42.071 WiZ: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-08 17:51:42.071 WiZ: onHeartbeat called time=1670518302.0712864 2022-12-08 17:51:42.071 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:51:52.038 WiZ: Pushing 'onHeartbeatCallback' on to queue 2022-12-08 17:51:52.089 WiZ: Processing 'onHeartbeatCallback' message 2022-12-08 17:51:52.089 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:51:52.089 WiZ: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-08 17:51:52.089 WiZ: onHeartbeat called time=1670518312.0895731 2022-12-08 17:51:52.089 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:02.006 WiZ: Pushing 'onHeartbeatCallback' on to queue 2022-12-08 17:52:02.056 WiZ: Processing 'onHeartbeatCallback' message 2022-12-08 17:52:02.056 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:02.056 WiZ: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-08 17:52:02.057 WiZ: onHeartbeat called time=1670518322.057008 2022-12-08 17:52:02.057 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:12.028 WiZ: Pushing 'onHeartbeatCallback' on to queue 2022-12-08 17:52:12.079 WiZ: Processing 'onHeartbeatCallback' message 2022-12-08 17:52:12.079 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:12.079 WiZ: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-08 17:52:12.079 WiZ: onHeartbeat called time=1670518332.0793066 2022-12-08 17:52:12.079 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:12.172 Active notification Subsystems: browser (1/13) 2022-12-08 17:52:12.172 WiZ: Pushing 'SettingsDirective' on to queue 2022-12-08 17:52:12.179 WiZ: Processing 'SettingsDirective' message 2022-12-08 17:52:12.179 WiZ: Acquiring GIL for 'SettingsDirective' 2022-12-08 17:52:12.181 WiZ: Acquiring GIL for 'SettingsDirective' 2022-12-08 17:52:22.047 WiZ: Pushing 'onHeartbeatCallback' on to queue 2022-12-08 17:52:22.097 WiZ: Processing 'onHeartbeatCallback' message 2022-12-08 17:52:22.097 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:22.097 WiZ: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-08 17:52:22.097 WiZ: onHeartbeat called time=1670518342.0974784 2022-12-08 17:52:22.097 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:27.701 Status: DOMOPROD: connected to: pouilld.no-ip.org:6144 2022-12-08 17:52:32.014 WiZ: Pushing 'onHeartbeatCallback' on to queue 2022-12-08 17:52:32.064 WiZ: Processing 'onHeartbeatCallback' message 2022-12-08 17:52:32.064 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:32.064 WiZ: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-08 17:52:32.065 WiZ: onHeartbeat called time=1670518352.0650725 2022-12-08 17:52:32.065 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:32.377 DOMOPROD: Temp (Adrets T° ext.) 2022-12-08 17:52:33.350 Status: Rflink2 F150 433,92 Mhz: Using serial port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 2022-12-08 17:52:34.278 Status: Rflink2 F150 433,92 Mhz: Controller Initialized!... 2022-12-08 17:52:34.353 Status: Rflink2 F150 433,92 Mhz: RFLink Detected, Version: 1.1 Revision: 48 Build: 4 2022-12-08 17:52:40.291 DOMOPROD: Temp + Humidity (Availles T° ext.) 2022-12-08 17:52:42.031 WiZ: Pushing 'onHeartbeatCallback' on to queue 2022-12-08 17:52:42.081 WiZ: Processing 'onHeartbeatCallback' message 2022-12-08 17:52:42.081 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:42.081 WiZ: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-08 17:52:42.081 WiZ: onHeartbeat called time=1670518362.0816402 2022-12-08 17:52:42.082 WiZ: in handlethread 2022-12-08 17:52:42.084 WiZ: Acquiring GIL for 'onHeartbeatCallback' 2022-12-08 17:52:44.537 WiZ: Pushing 'onStopCallback' on to queue 2022-12-08 17:52:44.537 WiZ: Processing 'onStopCallback' message 2022-12-08 17:52:44.537 WiZ: Acquiring GIL for 'onStopCallback' 2022-12-08 17:52:44.543 WiZ: Calling message handler 'onStop' on 'module' type object. 2022-12-08 17:52:44.543 WiZ: onStop called 2022-12-08 17:52:44.537 Status: WiZ: Stop directive received. 2022-12-08 17:52:45.853 Rflink2 F150 433,92 Mhz: Temp (St Bernard T° Extérieure) 2022-12-08 17:52:51.827 WiZ: Endpoint 'wiz_142d9a.DPX' found. 2022-12-08 17:52:51.841 (Lampadaire salon) Updating device from 1:'20' to have values 1:'20'. 2022-12-08 17:52:53.145 WiZ: Worker thread started. 2022-12-08 17:52:53.066 Status: WiZ: Exiting work loop. 2022-12-08 17:52:53.145 Status: WiZ: Stopping threads. 2022-12-08 17:52:53.145 Status: WiZ: Stopped. 2022-12-08 17:52:53.145 Status: WiZ: Entering work loop. 2022-12-08 17:52:53.145 Status: WiZ: Started. 2022-12-08 17:52:54.868 DOMOPROD: Temp + Humidity (Availles T° séjour) 2022-12-08 17:52:54.356 Error: Domoticz(pid:3472, tid:3710('WiZ')) received fatal signal 11 (Erreur de segmentation) 2022-12-08 17:52:54.357 Error: siginfo address=0xd90, address=(nil)