Page 1 of 1

2x Zipato mini RFiD TagKey for On and Off alarm.

Posted: Friday 22 February 2019 16:36
by VeldmDomo
Dear Form members,

The following problem occurs.
I started with 1x Zipato mini RFiD TagKey signed on Domoticz. After some problems this works well now.
However, I have door contacts both in the house and in the barn.
When I want to go into the shed and turn off the alarm, I have to go into the house first to turn off the alarm.
For this I bought a 2nd Zipato mini RFiD TagKey.
This works well, but not in combination with the first Zipato RFiD.

This works.
With the 1st I can turn the alarm on and off.
With the 2nd I can turn the alarm on and off.

This does not work.
I turn on the alarm with the 1st and with the 2nd off then this does not.
Also the other way around when I switch the alarm on with the 2nd and I want to off with the 1st.

To get the Zipato RFiD working, I use a lua script.

Is there anyone who can help me get this working?
Below the used lua script.

Code: Select all

 commandArray = {}
 if ((devicechanged['AlarmRFIDpaneel-2']) or (devicechanged['AlarmRFIDpaneel-1'])) then
        if ((otherdevices['AlarmRFIDpaneel-2'] == 'On') or (otherdevices['AlarmRFIDpaneel-1'] == 'On')) then
                print('AlarmPanel Arm Away')
                commandArray['Domoticz Security Panel'] = 'Arm Away'
                       else
                print('AlarmPanel Disarmed')
                commandArray['Domoticz Security Panel'] = 'Disarm'
                commandArray['AlarmSituatieUitV0.1'] = 'Off'
				commandArray['Keypad Ack'] = 'On'
	end			
end        
return commandArray