27.01.2017, 07:57
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
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