This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

underfloor
#1
Hello guys i want your help with a script.
we have underfloor heating and pwm valves and i need the LM  to send a value (3%) to the heating if the value of the valve Is < 3% 
every 30 minutes. 
can anyone help me with the script ?
Reply
#2
Do you need this to happen instantly or a script which runs every 30 min is fine to check the status and update?
------------------------------
Ctrl+F5
Reply
#3
(08.01.2025, 10:08)Daniel Wrote: Do you need this to happen instantly or a script which runs every 30 min is fine to check the status and update?

i want to happend  instantly..
i made a event base script  base on the valve group address

 if (0) then
value = 6
  sleep(40)
    grp.write('4/1/1', value)
end


but lm send many times the value with result to overload the tp
Reply
#4
Use this:
Code:
value = event.getvalue()
minvalue = 3

if value < minvalue then
  grp.write(event.dst, minvalue)
end
Reply
#5
(08.01.2025, 11:07)admin Wrote: Use this:
Code:
value = event.getvalue()
minvalue = 3

if value < minvalue then
  grp.write(event.dst, minvalue)
end

Thank you it works perfectly !!! 
Is there a way to do it if only the pump is on?
Reply


Forum Jump: