the built-in Off Delay option doesn't work, so i wrote a lua script for putting off the switch called "cancello" after 7 seconds:
Code: Select all
commandArray = {}
if (devicechanged['cancello'] == 'On') then
commandArray['cancello']='Off AFTER 7'
end
return commandArray
I wrote it in the built-in section Setup>more>events and flagged as active but nothing happens.
So I put a copy in ~/domoticz/scripts/lua/script_time_sette.lua and wrote "script://script_time_sette.lua" into "On Action" setting of the switch but nothing happens.
So i tried writing "script://domoticz/scripts/lua/script_time_sette.lua" but nothing happens.
Where is the mistake?
Thank you for support
