I am executing the following LUA script (created via the Domoticz HTML interface):
Code: Select all
commandArray = {}
if (devicechanged['Arm 1 partition'] == 'On') then
if (otherdevices_svalues['Output:Anzeige S-intern'] == 'Off') then
commandArray['Scene:AllesAus']='On'
commandArray['Arbeitszimmer']='On'
commandArray['Badezimmer']='On'
end
end
return commandArray
"Error: EventSystem: in ExternScharf_AllesAus: [string "-- ..."]:28: attempt to index global 'devicechanged' (a nil value)"
Can anyone tell me what I am doing wrong?
Thanks! F.