Hi
The below errors happen after one or two calculation cycles of logread's thermostat plugin. Can someone help me? I'm not sure if it's bug with how outside temp. gets set to "none" (line 332 in plugin.py) in the internals or a problem with my system.
System: raspberry pi model B, raspian jessie lite, python 3.4.2, Domoticz beta Version: 3.8755
Log:
Code: Select all
2017-11-29 19:18:31.937 1Wire: Added Device: 28-041661aae7ff
2017-11-29 19:18:32.858 Sysfs GPIO: Startup - polling:no interrupts:no debounce:50msec inputs:0 outputs:2
2017-11-29 19:18:32.859 (Thermostat) Started.
2017-11-29 19:18:32.860 EventSystem: reset all events...
2017-11-29 19:18:32.862 EventSystem: reset all device statuses...
2017-11-29 19:18:33.216 PluginSystem: Entering work loop.
2017-11-29 19:18:33.285 Python EventSystem: Initalizing event module.
2017-11-29 19:18:33.296 EventSystem: Queue thread started...
2017-11-29 19:18:33.296 EventSystem: Started
2017-11-29 19:18:33.838 (Dallas) Temp (Living room)
2017-11-29 19:18:33.848 (Dallas) Temp (Living room)
2017-11-29 19:18:35.370 (Thermostat) Initialized version 0.3.5, author 'logread'
2017-11-29 19:18:35.370 (Thermostat) Entering work loop.
2017-11-29 19:18:35.437 (Thermostat) Debug log level set to: 'true'.
2017-11-29 19:18:35.437 (Thermostat) 'Port':'8080'
2017-11-29 19:18:35.438 (Thermostat) 'Mode6':'Debug'
2017-11-29 19:18:35.438 (Thermostat) 'Mode3':'16'
2017-11-29 19:18:35.438 (Thermostat) 'Name':'Thermostat'
2017-11-29 19:18:35.438 (Thermostat) 'Version':'0.3.5'
2017-11-29 19:18:35.438 (Thermostat) 'Mode1':'13'
2017-11-29 19:18:35.439 (Thermostat) 'Author':'logread'
2017-11-29 19:18:35.439 (Thermostat) 'Mode5':'15,0,2,1,60'
2017-11-29 19:18:35.439 (Thermostat) 'HomeFolder':'/home/pi/domoticz/plugins/SVT/'
2017-11-29 19:18:35.439 (Thermostat) 'HardwareID':'10'
2017-11-29 19:18:35.439 (Thermostat) 'Address':'127.0.0.1'
2017-11-29 19:18:35.440 (Thermostat) 'Key':'SVT'
2017-11-29 19:18:35.440 (Thermostat) Device count: 6
2017-11-29 19:18:35.440 (Thermostat) Device: 1 - ID: 17, Name: 'Thermostat - Thermostat Control', nValue: 1, sValue: '10'
2017-11-29 19:18:35.440 (Thermostat) Device ID: '17'
2017-11-29 19:18:35.440 (Thermostat) Device Name: 'Thermostat - Thermostat Control'
2017-11-29 19:18:35.441 (Thermostat) Device nValue: 1
2017-11-29 19:18:35.441 (Thermostat) Device sValue: '10'
2017-11-29 19:18:35.441 (Thermostat) Device LastLevel: 10
2017-11-29 19:18:35.441 (Thermostat) Device: 2 - ID: 18, Name: 'Thermostat - Thermostat Mode', nValue: 0, sValue: '10'
2017-11-29 19:18:35.441 (Thermostat) Device ID: '18'
2017-11-29 19:18:35.442 (Thermostat) Device Name: 'Thermostat - Thermostat Mode'
2017-11-29 19:18:35.442 (Thermostat) Device nValue: 0
2017-11-29 19:18:35.442 (Thermostat) Device sValue: '10'
2017-11-29 19:18:35.442 (Thermostat) Device LastLevel: 0
2017-11-29 19:18:35.443 (Thermostat) Device: 3 - ID: 19, Name: 'Thermostat - Thermostat Pause', nValue: 0, sValue: ''
2017-11-29 19:18:35.443 (Thermostat) Device ID: '19'
2017-11-29 19:18:35.443 (Thermostat) Device Name: 'Thermostat - Thermostat Pause'
2017-11-29 19:18:35.443 (Thermostat) Device nValue: 0
2017-11-29 19:18:35.443 (Thermostat) Device sValue: ''
2017-11-29 19:18:35.444 (Thermostat) Device LastLevel: 0
2017-11-29 19:18:35.444 (Thermostat) Device: 4 - ID: 20, Name: 'Thermostat - Setpoint Normal', nValue: 0, sValue: '18.700000762939453'
2017-11-29 19:18:35.444 (Thermostat) Device ID: '20'
2017-11-29 19:18:35.444 (Thermostat) Device Name: 'Thermostat - Setpoint Normal'
2017-11-29 19:18:35.444 (Thermostat) Device nValue: 0
2017-11-29 19:18:35.445 (Thermostat) Device sValue: '18.700000762939453'
2017-11-29 19:18:35.445 (Thermostat) Device LastLevel: 0
2017-11-29 19:18:35.445 (Thermostat) Device: 5 - ID: 21, Name: 'Thermostat - Setpoint Economy', nValue: 0, sValue: '20'
2017-11-29 19:18:35.445 (Thermostat) Device ID: '21'
2017-11-29 19:18:35.445 (Thermostat) Device Name: 'Thermostat - Setpoint Economy'
2017-11-29 19:18:35.446 (Thermostat) Device nValue: 0
2017-11-29 19:18:35.446 (Thermostat) Device sValue: '20'
2017-11-29 19:18:35.446 (Thermostat) Device LastLevel: 0
2017-11-29 19:18:35.446 (Thermostat) Device: 6 - ID: 22, Name: 'Thermostat - Thermostat temp', nValue: 0, sValue: '18.2'
2017-11-29 19:18:35.446 (Thermostat) Device ID: '22'
2017-11-29 19:18:35.447 (Thermostat) Device Name: 'Thermostat - Thermostat temp'
2017-11-29 19:18:35.447 (Thermostat) Device nValue: 0
2017-11-29 19:18:35.447 (Thermostat) Device sValue: '18.2'
2017-11-29 19:18:35.447 (Thermostat) Device LastLevel: 0
2017-11-29 19:18:35.448 (Thermostat) Inside Temperature sensors = [13]
2017-11-29 19:18:35.448 (Thermostat) Outside Temperature sensors = []
2017-11-29 19:18:35.449 (Thermostat) Heaters = [16]
2017-11-29 19:18:35.555 Incoming connection from: 127.0.0.1
2017-11-29 19:18:44.896 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:18:44.897 (Thermostat) Thermostat temperature update called
2017-11-29 19:18:44.897 (Thermostat) Next calculation time will be : 2017-11-29 19:33:44.896876
2017-11-29 19:18:44.937 (Thermostat) device: 13-Living room = 18.1
2017-11-29 19:18:45.036 (Thermostat - Thermostat temp) Updating device from 0:'18.2' to have values 0:'18.1'.
2017-11-29 19:18:45.040 (Thermostat) No Outside Temperature found...
2017-11-29 19:18:45.040 (Thermostat) Inside Temperature = 18.1
2017-11-29 19:18:45.040 (Thermostat) Outside Temperature = None
2017-11-29 19:18:45.041 Error: (Thermostat) 'onHeartbeat' failed 'TypeError':'unorderable types: float() > NoneType()'.
2017-11-29 19:18:45.041 Error: (Thermostat) ----> Line 503 in /home/pi/domoticz/plugins/SVT/plugin.py, function onHeartbeat
2017-11-29 19:18:45.041 Error: (Thermostat) ----> Line 288 in /home/pi/domoticz/plugins/SVT/plugin.py, function onHeartbeat
2017-11-29 19:18:45.042 Error: (Thermostat) ----> Line 306 in /home/pi/domoticz/plugins/SVT/plugin.py, function AutoMode
2017-11-29 19:18:45.042 Error: (Thermostat) ----> Line 362 in /home/pi/domoticz/plugins/SVT/plugin.py, function AutoCallib
2017-11-29 19:18:54.917 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:18:54.918 (Thermostat - Setpoint Normal) Updating device from 0:'18.700000762939453' to have values 0:'18.700000762939453'.
2017-11-29 19:18:54.924 (Thermostat - Setpoint Economy) Updating device from 0:'20' to have values 0:'20'.
2017-11-29 19:19:04.904 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:19:14.930 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:19:24.905 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:19:32.299 Incoming connection from: 192.168.2.2
2017-11-29 19:19:33.840 (Dallas) Temp (Living room)
2017-11-29 19:19:34.935 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:19:44.911 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:19:54.937 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:20:04.913 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:20:14.939 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:20:24.916 (Thermostat) Calling message handler 'onHeartbeat'.
2017-11-29 19:20:33.848 (Dallas) Temp (Living room)
2017-11-29 19:20:34.942 (Thermostat) Calling message handler 'onHeartbeat'.
stored internals:
Code: Select all
{'ConstC': 60, 'LastPwr': 12.0, 'ConstT': 1, 'LastInT': 18.5, 'nbCC': 0, 'LastSetPoint': 18.700000762939453, 'LastOutT': None, 'nbCT': 0, 'ALStatus': 1}