How Activate armed away by remote controller
Posted: Saturday 22 April 2017 15:16
How to activate Armed Away by trigged a remote controller with on/off buttons
Open source Home Automation System
https://forum.domoticz.com/
Code: Select all
if(devicechanged['remotecontrollerbutton']=='Off') then
commandArray['Domoticz Security Panel']='Disarm'
elseif (devicechanged['remotecontrollerbutton']=='On') then
commandArray['Domoticz Security Panel']='Arm Away'
end
That would work but create a loop as long as the button is off or on.Cornholio1234 wrote:do you mean something like
Code: Select all
if(devicechanged['remotecontrollerbutton']=='Off') then commandArray['Domoticz Security Panel']='Disarm' elseif (devicechanged['remotecontrollerbutton']=='On') then commandArray['Domoticz Security Panel']='Arm Away' end
Code: Select all
if (devicechanged['remotecontrollerbutton']=='Off') and globalvariables['Security'] ~='Disarmed' then
commandArray['Domoticz Security Panel']='Disarm'
end