![]() |
|
Script humidity and heating - Printable Version +- LogicMachine 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: Script humidity and heating (/showthread.php?tid=6197) |
Script humidity and heating - Danny - 23.11.2025 Good afternoon, I want to create a script with the following options, but I can't figure it out. I have a humidity measurement and a floor/room temperature. The underfloor heating should turn on when the humidity exceeds the set value. However, the floor must not get warmer than 29 degrees Celsius. The underfloor heating should also turn on when the temperature inside reaches 5 degrees Celsius. The ventilation should also turn on when the moisture content exceeds the set value. It's regulated from 1 to 100% and should increase in speed in several steps. Room temperatureĀ 3/1/1 Floor temperature 3/2/1 Humidity 4/1/1 Maximum humidity 4/2/1 Switch underfloor heating 3/4/1 (1-bit) Ventilation 5/1/1 (1-byte) Thanks in advance for your help. RE: Script humidity and heating - admin - 24.11.2025 Are you sure you don't need a setpoint for room temperature? For ventilation you can create a setpoint object for each speed. Use a scheduled script that runs every minute. Code: humidity = grp.getvalue('4/1/1')RE: Script humidity and heating - Danny - 24.11.2025 Thanks, admin, for the setup. It's true that I'm not controlling the room temperature, but the humidity. This is for a pigeon enclosure where the humidity needs to be a certain value. But this is not quite what I mean. I'm missing the floor temperature, which shouldn't exceed 29 degrees Celsius. And the frost protection, which also turns on the heating at 5 degrees Celsius, until the indoor temperature reaches a maximum of 7 degrees Celsius. I don't understand the setup with the setpoint min, med, and max, because I only have one humidity setpoint to control and the ventilation has fixed positions andĀ And are not customizable by the end customer Thanks in advance. RE: Script humidity and heating - admin - 24.11.2025 I suppose it can be simplified a bit. The logic is as follows: 1st priority = turn on heating if room temperature is 6 degrees or lower 2nd priority = turn off heating if floor temperature is 29 degrees or higher 3rd priority = turn on heating if humidity is equal or larger than the setpoint You can use the same scheduled script that runs once a minute. Code: room_temp = grp.getvalue('3/1/1')For ventilation you said there are several speeds hence the 3 different setpoints for each speed. Alternatively you can use a single setpoint and calculate the next setpoint by adding some fixed amount or percentage. |