Why is something simple as this not working, please help...
Posted: Wednesday 09 November 2016 21:44
Much simpeler as this is hardly thinkable... why isn't working?
Code: Select all
commandArray = {}
if devicechanged["Myself"] == 'On' then
commandarray["testpresence"] = 'On'
elseif devicechanged["Myself"] == 'Off' then
commandarray["testpresence"] = 'Off AFTER 60'
end
return commandArray