I am trying to switch the domoticz security panel in lua.
I tried:
Code: Select all
if (devicechanged['Thuis'] == 'Off') then
print ('testing')
commandArray['Security Panel'] = 'Arm Away'
Code: Select all
if (devicechanged['Thuis'] == 'Off') then
print ('testing')
commandArray['Alarm Panel'] = 'Arm Away'
Code: Select all
if (devicechanged['Thuis'] == 'Off') then
print ('testing')
commandArray['SecPanel'] = 'Arm Away'
anyone any idea what i am doing wrong?