Page 1 of 1

Why is something simple as this not working, please help...

Posted: Wednesday 09 November 2016 21:44
by DutchHans
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 

Re: Why is something simple as this not working, please help...

Posted: Wednesday 09 November 2016 21:46
by DutchHans
Found it... stupid me A Capital in CommandArray