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.

Problem with Function grp.update
#1
Hello,

I am having a problem with the function grp.update in the latest firmware version. I am using the following script:

lux300 = grp.getvalue('0/6/3')
lux500 = grp.getvalue('0/7/3')
if lux300 == true then
 grp.write('5/0/3/', 300)
   os.sleep(0.2)
    grp.update('0/6/3', false)
    grp.update('0/7/3', false)
elseif lux500 == true then
 grp.write('5/0/3/', 500)
   os.sleep(0.2)
     grp.update('0/7/3', false)
     grp.update('0/6/3', false)
end

When the script is executed the G.A. 0/6/3 and 0/7/3 are sent to the knx bus and I just want to update the value internaly. 

What I am trying to do is to write two different values on the same G.A. when input G.A. 1 or 2 comes with ON on the knx bus. The two input G.A.s have the same tag so that whatever comes first to trigger the execution of the script. 

Is this correct or is there a better way to do it? And why is the grp.update function writes the value to the knx bus? 

Regards,
Reply


Messages In This Thread
Problem with Function grp.update - by manos@dynamitec - 23.01.2019, 16:51

Forum Jump: