I have a simple script acting as thermostat, switching the heating on if the temperature is within certain bounds.
For that I am I am using an 8/8/8 InterfaceKit with the dual relay module to switch the heating (which has a control line with 20V on it) and couple of temperature sensors to measure the air temperature
All has been working well but from time to time the relay just switches itself off. When I check the status of the digital out I have set on just a few moments ago, it reads that the out is off.
At the moment I have resulted into a timer checking the status of the digital out and re-switching it on if needed. It works but I do not like the solution as it sometimes causes a little delay in the heating switch (if the heater is full on and then receives off and on signal within a short time, it has internal timeout preventing it from frequent state changes).
I am using python SDK on a linux machine.
Is it possible that the phidget just "crashes" without raising any exceptions and then reconnects again, losing the state of digital outs in the process? I am not watching the detach events, but there is another timer pulling the temperatures and that never raises any exceptions. Also the "reconnect" timer never raises any exception, its call to
Code: Select all
Thank you very much for your advice!