Logic Machine Forum
Thermostat script - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Thermostat script (/showthread.php?tid=4497)



Thermostat script - almoisey - 13.01.2023

Hello, can you please  suggest   how to create   thermostat script with 3 thermo sensors in zone?

There are  3 thermosensors in 1 room- current temperaturete  at a height of 1 meter ,  current temperaturete  at a height of 2 meters, floor temperature to protect against overheating, setpoint temperature and control valve (1 bit output). Can I use the average temperature of the sensors at 1 and 2 meters? At what temperature should the overheating protection of the floor be activated? How to make the right heating control algorithm for underfloor heating / for radiators?
Best regards
A


RE: Thermostat script - admin - 19.01.2023

For several temperature sensors you can calculate the average and use it as a source temperature for PID regulator.
PID example: https://openrb.com/example-pid-thermostat-with-lm2/
It requires minor modifications to work with 1 bit output instead of 1 byte: https://forum.logicmachine.net/showthread.php?tid=386
To prevent overheating you can make a separate script that activates PID "manual" object and turns off the valve if the temperature raises above a certain level. The temperature limit depends on many factors like the sensor placement and flooring material.