Logic Machine Forum
UFH schedule script - 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: UFH schedule script (/showthread.php?tid=3717)



UFH schedule script - d.r soutras - 30.11.2021

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


   


RE: UFH schedule script - FatMax - 30.11.2021

What data type is 3/0/5?


RE: UFH schedule script - d.r soutras - 30.11.2021

1 bit


RE: UFH schedule script - FatMax - 30.11.2021

Use:

Code:
if value == true then

instead of value == 1.


RE: UFH schedule script - d.r soutras - 30.11.2021

Works like a charm!
Thank you very much!