Logic Machine Forum
Enable KNX IP functionality with LUA - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Enable KNX IP functionality with LUA (/showthread.php?tid=3867)



Enable KNX IP functionality with LUA - Kilogica - 11.02.2022

Hello,

is it possible to enable or disable KNX IP on W4K or Lm5 by script?

thanks


RE: Enable KNX IP functionality with LUA - Daniel - 11.02.2022

Like this
Code:
require('uci')

-- disable
uci.set('eibd.@eibd[0].knxip=0')
-- enable
uci.set('eibd.@eibd[0].knxip=1')

uci.commit('eibd')
os.execute('/etc/init.d/eibd restart')



RE: Enable KNX IP functionality with LUA - Kilogica - 11.02.2022

Thanks, it works!