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

Moderator: leecollings

Post Reply
pecora
Posts: 12
Joined: Monday 13 July 2015 12:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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!
pecora
Posts: 12
Joined: Monday 13 July 2015 12:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by pecora »

All the names (Remote 1 and SecPanel) are correct
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest