Code: Select all
return {
active = function(domoticz)
return (domoticz.globalData.variablename ~= '')
end,
on = ...
Code: Select all
2019-04-13 22:16:00.503 Error: EventSystem: in /home/pi/domoticz/dzVents/runtime/dzVents.lua: /home/pi/domoticz/scripts/dzVents/scripts/test.lua:4: attempt to index field 'globalData' (a nil value)Thanks