Range thermostat and common setpoint writer - 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: Range thermostat and common setpoint writer (/showthread.php?tid=3952) |
Range thermostat and common setpoint writer - ONJ - 23.03.2022 Hello I would have been very grateful if anyone could help me with two scripts Script 1: This script is goint to regulate an outdoor heatingcable (depending on the outdoor temp) between 5 and -10 degrees, the cable is on from 5 to -10 degrees and off over 5 degrees and under -10 degrees, adjustable from groupadresses. And i want the script to be enabled/disabled from an 1 bit object, if its possible. I have tried to make different scrips and even the range check compirator in fb editor without luck. Script 2: I have several virtual objects in my project for writing setpoints to roomthermostats. In this case i need a script so i can change all the virtual setpoints from one virtual object like a collective setpoint adjustment. RE: Range thermostat and common setpoint writer - Daniel - 23.03.2022 1. Resident script with interval 60(no need to run it more often) Change group addresses as needed. PS it will turn off below lower value too. Code: input = grp.getvalue('1/1/1') Code: value = event.getvalue() Code: value = event.getvalue() RE: Range thermostat and common setpoint writer - ONJ - 24.03.2022 Thank you Daniel! Script 1 and 2 works very well, but i cant get the global setpoint script to work, it would not write to the setpoint objects. My setpoint objects is already connected to another script, could that be an issue? If i TAG the global object with the same TAG as my setpoint objects it works if i run the script from the script editor, but not if i change the value of my global setpoint RE: Range thermostat and common setpoint writer - Daniel - 24.03.2022 Can you share what you did? DO NOT ADD TAG to your global object! RE: Range thermostat and common setpoint writer - ONJ - 24.03.2022 Okey, look at the picture RE: Range thermostat and common setpoint writer - Daniel - 24.03.2022 Replace this script with this Code: value = event.getvalue() RE: Range thermostat and common setpoint writer - ONJ - 24.03.2022 Thanks again, it worked ! RE: Range thermostat and common setpoint writer - ONJ - 28.03.2022 I have now tested the collective setpoint script, it makes a massive load on the CPU/KNX TP bus. I think i have to reconsider the use of this function.. RE: Range thermostat and common setpoint writer - admin - 28.03.2022 You've probably created a loop somewhere. Check that the script that triggers this write does not have the same tag as it writes to. RE: Range thermostat and common setpoint writer - Daniel - 28.03.2022 To how many objects do you write at once? RE: Range thermostat and common setpoint writer - ONJ - 28.03.2022 hmm I have checked that, it looks like the CPU/TP load are only high for a few seconds when it writes to the bus and updating the virtual setpoints. It writes to 85 thermostat on the bus and uppdating 170 virtual objects at the same time. Do you think that is to much for the CPU? RE: Range thermostat and common setpoint writer - Daniel - 28.03.2022 You will be better in creating Global group for all thermostats in ETS and just send single telegram there. KNX has its limits. RE: Range thermostat and common setpoint writer - admin - 28.03.2022 Another option is to add a longer delay between each write. It will take longer but there will be lower CPU load overall. You can tune the sleep time as needed. Code: value = event.getvalue() |