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.

Help me creat feedbacks
#1
Hello, I have a problem with Logic Machine 5 Lite. The devices I have in my KNX bus system are very old and do not have group addresses for feedbacks. As a result, the objects I create do not have feedbacks. This means that the status of a luminaire or other switch object is not updated, so I do not have in my management the actual condition of the house. If I am in a remote area I can not know what the real condition of my house is. Is there a way to create virtual feedbacks?
Reply
#2
You should do it in ETS and configure your knx devices to send feedback. After that you can import it to LM.
------------------------------
Ctrl+F5
Reply
#3
You can make simple status mapping via a single script. Add feedback tag to all control objects and map an event script to this tag.
Fill mapping table as needed. Table key (1/1/1, 1/1/3 etc) is the control address, key value is either a single status object address or a table containing multiple addresses.
Code:
mapping = {
  ['1/1/1'] = { '1/1/2', '1/1/9' },  
  ['1/1/3'] = '1/1/4',
  ['1/1/5'] = '1/1/6',
}

status = mapping[ event.dst ]
if type(status) == 'string' then
  status = { status }
end

if type(status) == 'table' then
  value = event.getvalue()
  
  for _, addr in ipairs(status) do
    grp.checkupdate(addr, value)    
  end
end

You will need additional scripts for more complex situations like setting light value to 0% should set binary status to Off.
Reply


Forum Jump: