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

Moderator: leecollings

Post Reply
DutchHans
Posts: 230
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany (near dutch border)
Contact:

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

Post 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 
DutchHans
Posts: 230
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany (near dutch border)
Contact:

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

Post by DutchHans »

Found it... stupid me A Capital in CommandArray
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest