Page 1 of 1

How to get my remote control arm and disarm my security panel

Posted: Thursday 21 April 2016 15:28
by pecora
I try using a lua script my remote control (on / off switch) to turn the alarm on and off, but it just will not work. :?

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? :cry:

Thanks for comments!

Re: How to get my remote control arm and disarm my security panel

Posted: Thursday 21 April 2016 17:07
by pecora
All the names (Remote 1 and SecPanel) are correct