Alarm Trigger Event via LUA (solved)
Posted: Saturday 18 March 2017 1:29
Hi everybody,
My LUA-intruder-alarm-event seems to contain a small mistake.
Protocol says:
Can anyone help me to find the mistake? Where is the bracket missing?
Thanks in advance!
My LUA-intruder-alarm-event seems to contain a small mistake.
Protocol says:
Here's the event-code:Error: EventSystem: in Alarmfall Einbruch: [string "commandArray = {} ..."]:4: ')' expected near '='
Code: Select all
commandArray = {}
if (devicechanged['FensterOderTuerOffen']) then
if (otherdevices['FensterOderTuerOffen'] == 'On') then
if (otherdevices['Domoticz Security Panel'] = 'Arm Away') then
commandArray['Group:Alarmmelder']='On FOR 60'
print('Einbruch! Alarmmelder angeschaltet für 60 Minuten!')
elseif (otherdevices['Domoticz Security Panel'] = 'Disarm') then
print('Tür oder Fenster wurde geöffnet')
end
else
print('Alle Türen und Fenster geschlossen')
end
end
return commandArray
Thanks in advance!