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.

Show control inline in PC/Tablet
#5
Try this script, it will enable show control for all elements mapped to group address 1/1/14. No guarantees that it will work though Smile
Code:
addr = '1/1/14'

require('json')
object = knxlib.encodega(addr)
items = db:getall('SELECT id, params FROM visobjects WHERE object=?', object)
for _, item in ipairs(items) do
  params = json.pdecode(item.params)
  if type(params) == 'table' then
    params.showcontrol = 1
    params = json.encode(params)
    db:update('visobjects', { params = params }, { id = item.id })
  end
end
Reply


Messages In This Thread
Show control inline in PC/Tablet - by Mirco - 26.01.2017, 06:51
RE: Show control inline in PC/Tablet - by admin - 27.01.2017, 07:57

Forum Jump: