moroen / ZWave-MQTT-plugin

A domoticz plugin for zwave over MQTT
4 stars 2 forks source link

Errors in dz log at the start of the plugin #20

Open hestiap opened 3 years ago

hestiap commented 3 years ago

I've got this in the log at the start:

2021-08-29 19:26:43.431 Status: ZwaveMQTT4: (ZwaveMQTT4) Entering work loop. 2021-08-29 19:26:43.431 Status: ZwaveMQTT4: (ZwaveMQTT4) Started. 2021-08-29 19:26:43.800 Status: ZwaveMQTT4: (ZwaveMQTT4) Initialized version 0.0.1, author 'moroen / heggink' 2021-08-29 19:26:44.715 Error: ZwaveMQTT4: (ZwaveMQTT4) 'onMessage' failed 'AttributeError':''str' object has no attribute 'get''. 2021-08-29 19:26:44.721 Error: ZwaveMQTT4: (ZwaveMQTT4) Exception traceback: 2021-08-29 19:26:44.722 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 238 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/plugin.py', function onMessage 2021-08-29 19:26:44.723 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 161 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/plugin.py', function onMessage 2021-08-29 19:26:44.724 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 59 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/api/devices.py', function onMessage 2021-08-29 19:26:44.725 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 139 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/api/devices.py', function registerDevice 2021-08-29 19:26:44.740 Error: ZwaveMQTT4: (ZwaveMQTT4) 'onMessage' failed 'TypeError':'string indices must be integers'. 2021-08-29 19:26:44.741 Error: ZwaveMQTT4: (ZwaveMQTT4) Exception traceback: 2021-08-29 19:26:44.742 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 238 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/plugin.py', function onMessage 2021-08-29 19:26:44.743 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 161 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/plugin.py', function onMessage 2021-08-29 19:26:44.744 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 63 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/api/devices.py', function onMessage 2021-08-29 19:26:44.746 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 308 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/api/devices.py', function updateDevice

heggink commented 3 years ago

Can you switch on full debug and post the log here? I need to see what message is received to understand what went wrong.

hestiap commented 3 years ago

With log on 'all' on the plugin

2021-08-30 23:06:29.871 Status: Domoticz V2021.1 (build 13434) (c)2012-2021 GizMoCuz 2021-08-30 23:06:29.873 Status: Build Hash: 61a52564e, Date: 2021-08-20 08:27:35 2021-08-30 23:06:29.874 Status: Startup Path: /home/pi/PROD_domoticz/ 2021-08-30 23:06:30.047 Status: PluginSystem: Started, Python version '3.7.3'. 2021-08-30 23:06:30.060 Status: WebServer(HTTP) startup failed on address :: with port: 8080: resolve: Host not found (authoritative), trying :: 2021-08-30 23:06:30.062 Status: WebServer(HTTP) startup failed on address :: with port: 8080: resolve: Host not found (authoritative), trying 0.0.0.0 2021-08-30 23:06:30.063 Status: WebServer(HTTP) started on address: 0.0.0.0 with port 8080 2021-08-30 23:06:30.077 Status: WebServer(SSL) startup failed on address :: with port: 443: resolve: Host not found (authoritative), trying :: 2021-08-30 23:06:30.082 Status: WebServer(SSL) startup failed on address :: with port: 443: resolve: Host not found (authoritative), trying 0.0.0.0 2021-08-30 23:06:30.087 Status: WebServer(SSL) started on address: 0.0.0.0 with port 443 2021-08-30 23:06:30.094 Status: Camera: settings (re)loaded 2021-08-30 23:06:30.097 Status: RxQueue: queue worker started... 2021-08-30 23:06:30.132 Status: TCPServer: shared server started... 2021-08-30 23:06:32.101 Status: ZwaveMQTT4: (ZwaveMQTT4) Started. 2021-08-30 23:06:32.101 Status: ZwaveMQTT4: (ZwaveMQTT4) Entering work loop. 2021-08-30 23:06:32.127 Status: System: System: Raspberry Pi 2021-08-30 23:06:32.147 Status: System: Hardware Monitor: Started (OStype Raspberry Pi Linux) 2021-08-30 23:06:32.147 Status: NotificationSystem: thread started... 2021-08-30 23:06:32.151 Status: EventSystem: reset all events... 2021-08-30 23:06:32.155 Status: EventSystem: reset all device statuses... 2021-08-30 23:06:32.478 Status: PluginSystem: 1 plugins started. 2021-08-30 23:06:33.096 Status: Python EventSystem: Initializing event module. 2021-08-30 23:06:33.097 Status: EventSystem: Started 2021-08-30 23:06:33.097 Status: EventSystem: Queue thread started... 2021-08-30 23:06:33.103 Status: mqtt: MQTT: Connecting to localhost:1883 2021-08-30 23:06:33.308 Status: mqtt: MQTT: connected to: localhost:1883 2021-08-30 23:06:33.510 Status: mqtt: MQTT: Subscribed 2021-08-30 23:06:33.487 Error: ZwaveMQTT4: (ZwaveMQTT4) 'onMessage' failed 'TypeError':'string indices must be integers'. 2021-08-30 23:06:33.487 Error: ZwaveMQTT4: (ZwaveMQTT4) Exception traceback: 2021-08-30 23:06:33.487 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 238 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/plugin.py', function onMessage 2021-08-30 23:06:33.487 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 161 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/plugin.py', function onMessage 2021-08-30 23:06:33.487 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 63 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/api/devices.py', function onMessage 2021-08-30 23:06:33.487 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 308 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/api/devices.py', function updateDevice 2021-08-30 23:06:33.517 Error: ZwaveMQTT4: (ZwaveMQTT4) 'onMessage' failed 'TypeError':'string indices must be integers'. 2021-08-30 23:06:33.517 Error: ZwaveMQTT4: (ZwaveMQTT4) Exception traceback: 2021-08-30 23:06:33.517 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 238 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/plugin.py', function onMessage 2021-08-30 23:06:33.517 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 161 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/plugin.py', function onMessage 2021-08-30 23:06:33.517 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 63 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/api/devices.py', function onMessage 2021-08-30 23:06:33.517 Error: ZwaveMQTT4: (ZwaveMQTT4) ----> Line 313 in '/home/pi/PROD_domoticz/plugins/ZWave-MQTT/api/devices.py', function updateDevice

image

Perhaps, that's not what you'd like as full log... give me some more info to do it again

moroen commented 3 years ago

Looks like you're using one of the latest betas of domoticz. The changes made to the plugin framework, doesn't allways play nice with plugins written for the old framework (i.e. latest stable)...

hestiap commented 3 years ago

Yes Version: 2021.1 (build 13434) Build Hash: 61a52564e Compile Date: 2021-08-20 08:27:35 And it's not going possible to go back with Dz...