Aeon Keyfob add delay in lua script

Moderator: leecollings

Post Reply
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Aeon Keyfob add delay in lua script

Post 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?
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest