but only START TEST is displayed on log
tried few things but cant figure out what could be wrong
thanks
Code: Select all
return {
active = true,
on = {
timer = {'at 23:09'}
},
execute = function(domoticz)
domoticz.log('START_TEST', domoticz.LOG_FORCE)
if (domoticz.devices(472).state == 'on') then
domoticz.log('on', domoticz.LOG_FORCE)
elseif (domoticz.devices(472).state == 'off') then
domoticz.log('off', domoticz.LOG_FORCE)
end
end
}
Code: Select all
domoticz.log(domoticz.devices(472).state, domoticz.LOG_FORCE)