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.

UFH schedule script
#1
Hello guys!
I need your help.
I need a schedule script that does the following:
At 15/10 if the house is at AWAY mode it will turn on the UFH.
At 15/3 if the house is at AWAY mode it will turn on the AC.
It doesnt work for me.

SCRIPT:

-- get value of object with group address 3/0/5 -- 3/0/5 is AWAY MODE STATUS
value = grp.getvalue('3/0/5')


if value == 1 then
  -- write value (e.g. boolean 'true') to object with group address 3/0/18, datatype must be set for this object -- 3/0/18 is HEAT SCENE
  grp.write('3/0/18', true)
 
end


   
Reply
#2
What data type is 3/0/5?
Reply
#3
1 bit
Reply
#4
Use:

Code:
if value == true then

instead of value == 1.
Reply
#5
Works like a charm!
Thank you very much!
Reply


Forum Jump: