if (logging.level == domoticz.LOG_DEBUG) then
-- Print something / send Telegram notification.
end
But logging variable is not known, I get the following error:
Code: Select all
2021-05-17 08:00:00.353 Error: dzVents: Error: (3.0.2) ControlDoorLock: ...cz/scripts/dzVents/generated_scripts/ContolDoorLocks.lua:57: attempt to index a nil value (global 'logging')