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