Page 1 of 1

Aeon Keyfob add delay in lua script

Posted: Tuesday 23 July 2019 11:15
by AllesVanZelf
Hello,
I use domoticz on a raspberry pi as alarm system. A lot of fine tunung, but it working well.
But now I notice when I push a button on the remote, the security panel is switched to the right state, but without the delay set in settings.
When I use the security panel I get a countdown from X seconds, but not if I change the security panel state using the remote.
Is there a way to add a delay when switching to Arm Away and Arm Home? Using a sleep, of wait, pause or something?

Code: Select all

commandArray = {}
 if (devicechanged['Remote-1'] == 'On') then
    commandArray['Domoticz Security Panel'] = 'Arm Away'
 end
 if (devicechanged['Remote-2'] == 'On') then
    commandArray['Domoticz Security Panel'] = 'Arm Home'
 end
 if (devicechanged['Remote-3'] == 'On') then
    commandArray['Domoticz Security Panel'] = 'Disarm'
 end

return commandArray
Can anyone advise me on this?