Could someone point out to me where I am going wrong, I find the dzvents wiki quite hard to understand.
Code: Select all
return {
on = {
timer = { 'every 1 minutes'},
},
execute = function(domoticz,Item)
local Time = require('Time')
local now = Time()
if now == '16:54'
then domoticz.log('PASSED TEST', domoticz.LOG_ERROR)
print(now)
else
domoticz.log('FAILTEST', domoticz.LOG_ERROR)
print(now)
end
end
}