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.

Recurrent control
#2
I would do it in two scripts. One event with os.sleep to turn on and after delay turn off the valve. The delay time can be parameter as object to modify. Make sure to set event script to run first instance only.
Resident script which will check if valve is off and then by use grp.find() and updatetime field to check when the last telegram was sent to this specific object. Then use os.time() to calculate the delta. If delta is bigger then 20 min then you send On to object attached to your event script Again the delta can be as object to be modified by the user.
------------------------------
Ctrl+F5
Reply


Messages In This Thread
Recurrent control - by gtsamis - 30.05.2024, 09:01
RE: Recurrent control - by Daniel - 30.05.2024, 11:55
RE: Recurrent control - by admin - 30.05.2024, 13:07

Forum Jump: