State is never changed. I am certain that the command below is executed. Any ideas? What might I have missed?
lua:
Code: Select all
commandArray['Security Panel'] = 'Arm Away'
Code: Select all
domoticz.sendCommand('Security Panel', 'Arm Away')
Moderator: leecollings
Code: Select all
commandArray['Security Panel'] = 'Arm Away'
Code: Select all
domoticz.sendCommand('Security Panel', 'Arm Away')
Code: Select all
-- Title: script_device_AlarmPanel.lua
-- Date: 3-8-2016 (updated)
-- this script switches the Alarm Status according to the (Zipato/Schlage Link Mini) RFID Keypad.
--
commandArray = {}
if (devicechanged['RFID Alarm Level']) then
if (otherdevices['RFID Alarm Level'] == 'On') then
print('AlarmPanel Arm Away')
commandArray['Domoticz Security Panel'] = 'Arm Away'
else
print('AlarmPanel Disarm')
commandArray['Domoticz Security Panel'] = 'Disarm'
commandArray['Keypad Ack'] = 'On'
end
end
return commandArray
Code: Select all
2016-08-03 16:48:39.809 (ZWave) Light/Switch (RFID Alarm Type)
2016-08-03 16:48:40.265 LUA: AlarmPanel Disarm
2016-08-03 16:48:40.265 EventSystem: Script event triggered: Alarm RFID
2016-08-03 16:48:40.259 (ZWave) Light/Switch (RFID Alarm Level)
2016-08-03 16:48:40.265 (ZWave) Light/Switch (RFID Access Control)
2016-08-03 16:48:40.291 Is it disarmed?
2016-08-03 16:48:40.291 EventSystem: Event triggered: Check_2
2016-08-03 16:48:40.292 (Domoticz Internal) Security (Domoticz Security Panel)
Code: Select all
2016-08-03 16:50:03.975 OpenZWave: Alarm Level: Tamper
2016-08-03 16:50:04.420 EventSystem: Script event triggered: System HUE
2016-08-03 16:50:03.975 (ZWave) Light/Switch (RFID Alarm Type)
2016-08-03 16:50:04.429 LUA: AlarmPanel Arm Away
2016-08-03 16:50:04.429 EventSystem: Script event triggered: Alarm RFID
2016-08-03 16:50:04.423 (ZWave) Light/Switch (RFID Alarm Level)
2016-08-03 16:50:04.430 (ZWave) Light/Switch (RFID Access Control)
...
2016-08-03 16:50:34.626 Is it armed?
Code: Select all
2016-08-03 17:04:08.223 Error: OpenZWave: Received new User Code/Tag, but we are not in Enrollment mode!
Users browsing this forum: No registered users and 1 guest