mvzut wrote: ↑Friday 26 October 2018 23:27
AurelioF wrote:2018-10-26 23:06:49.300 Error: (Rad) 'onHeartbeat' failed 'ValueError':'invalid literal for int() with base 10: 'None''.
2018-10-26 23:06:49.300 Error: (Rad) ----> Line 330 in '/home/pi/domoticz/plugins/MaxCube/plugin.py', function onHeartbeat
2018-10-26 23:06:49.300 Error: (Rad) ----> Line 288 in '/home/pi/domoticz/plugins/MaxCube/plugin.py', function onHeartbeat
2018-10-26 23:06:49.300 Error: (Rad) ----> Line 146 in '/home/pi/domoticz/plugins/MaxCube/plugin.py', function UpdateDevice
Mmm... strange. It's working fine here. It seems it's reading "None" as your valve position, don't know why. I've updated the code again with one minor edit, may help to make it at least not crash in those situations. Can you try this, and put debugging on? This will show more status updates in the log.
2018-10-26 23:58:10.888 Status: (Rad) Started.
2018-10-26 23:58:11.167 (Rad) Debug logging mask set to: PYTHON
2018-10-26 23:58:11.167 (Rad) Debugging mode activated
2018-10-26 23:58:11.167 (Rad) Reading e-Q3 MAX! devices from Cube...
2018-10-26 23:58:11.153 Status: (Rad) Entering work loop.
2018-10-26 23:58:11.154 Status: (Rad) Initialized version 0.6.0, author 'mvzut'
2018-10-26 23:58:13.939 (Rad) Number of rooms found: 9 (highest number: 9)
2018-10-26 23:58:23.461 (Rad) Reading e-Q3 MAX! devices from Cube...
2018-10-26 23:58:26.239 (Rad) Checking device 'WC-Bajo' in room 1
2018-10-26 23:58:26.242 (Rad) Checking device 'Despa' in room 2
2018-10-26 23:58:26.245 (Rad) Checking device 'Pasillo-Superior' in room 3
2018-10-26 23:58:26.247 (Rad) Checking device 'WC-Superior' in room 4
2018-10-26 23:58:26.250 (Rad) Checking device 'Dormitorio' in room 5
2018-10-26 23:58:26.253 (Rad) Checking device 'Invitados-' in room 6
2018-10-26 23:58:26.255 (Rad) Checking device 'Rad-Libreria' in room 7
2018-10-26 23:58:26.258 (Rad) Checking device 'Rad-mesacomedor' in room 7
2018-10-26 23:58:26.261 (Rad) Checking device 'Hall' in room 8
2018-10-26 23:58:26.263 (Rad) Checking device 'Cocina-' in room 9
2018-10-26 23:58:26.264 Error: (Rad) 'onHeartbeat' failed 'TypeError':'unorderable types: NoneType() > int()'.
2018-10-26 23:58:26.264 Error: (Rad) ----> Line 330 in '/home/pi/domoticz/plugins/MaxCube/plugin.py', function onHeartbeat
2018-10-26 23:58:26.264 Error: (Rad) ----> Line 288 in '/home/pi/domoticz/plugins/MaxCube/plugin.py', function onHeartbeat
2018-10-26 23:58:26.264 Error: (Rad) ----> Line 146 in '/home/pi/domoticz/plugins/MaxCube/plugin.py', function UpdateDevice
2018-10-26 23:58:55.815 (Rad) Skipping heartbeat: 1
2018-10-26 23:59:25.816 (Rad) Skipping heartbeat: 2
.....
....
2018-10-27 00:00:28.866 Error: (Rad) 'onHeartbeat' failed 'TypeError':'unorderable types: NoneType() > int()'.
2018-10-27 00:00:28.866 Error: (Rad) ----> Line 330 in '/home/pi/domoticz/plugins/MaxCube/plugin.py', function onHeartbeat
2018-10-27 00:00:28.866 Error: (Rad) ----> Line 288 in '/home/pi/domoticz/plugins/MaxCube/plugin.py', function onHeartbeat
2018-10-27 00:00:28.866 Error: (Rad) ----> Line 146 in '/home/pi/domoticz/plugins/MaxCube/plugin.py', function UpdateDevice