
the remote control (COCO) is visible in the switches and works. I have the following LUA script in events:
commandArray = {}
-- if (devicechanged['Remote1'] == 'On') then
-- commandArray['SecPanel'] = 'Armed Home'
-- end
-- if (devicechanged['Remote1'] == 'Off') then
-- commandArray['SecPanel'] = 'Disarmed'
-- end
end
return commandArray
Now my question: What did I wrong?

Thanks for comments!