In many scripts i have local variables to define devices.
Maybe its a idea to have 1 lua file that keeps all de local variables collection you use in all your scripts.
Then every script will have only 1 line to have the locals
include "locallist.lua" or include "/home/pi/domoticz/scripts/dzVents/scripts/local.lua"
i tried the include and require but get lot of errors
Cheers,
Peter