07.12.2023, 08:39
hi
i need a code to compare between 2 Temperatures (Actual (4/0/3) , Setpoint(4/0/2) )
i received a actual point from Keypad and set Point Entered to Knx valve actuator ? and if actual == setpoint write 0 to output (4/0/0) and if else write 1 to same Output !
i write this but not run
_________________________________________
value_1 = grp.getvalue('4/0/3')
value_2 = grp.getvalue('4/0/2')
if value_1 == value_2 then
grp.write('4/0/0', true) -- bit to 0
else
grp.write('4/0/0', false) -- bit to 1
end
________________________________________
I Need correct code or FB Edit
i need a code to compare between 2 Temperatures (Actual (4/0/3) , Setpoint(4/0/2) )
i received a actual point from Keypad and set Point Entered to Knx valve actuator ? and if actual == setpoint write 0 to output (4/0/0) and if else write 1 to same Output !
i write this but not run
_________________________________________
value_1 = grp.getvalue('4/0/3')
value_2 = grp.getvalue('4/0/2')
if value_1 == value_2 then
grp.write('4/0/0', true) -- bit to 0
else
grp.write('4/0/0', false) -- bit to 1
end
________________________________________
I Need correct code or FB Edit