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.

Range thermostat and common setpoint writer
#13
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()
objects = grp.tag('my_tag_name')

for _, object in ipairs(objects) do
  object:write(value)
  os.sleep(0.1)
end
Reply


Messages In This Thread
RE: Range thermostat and common setpoint writer - by admin - 28.03.2022, 11:10

Forum Jump: