Exemple script lua Domoticz
commandArray = {}
if (devicechanged['Lison_Globe']=="On" ) then
commandArray['Lison globe_ON'] = "On"
elseif (devicechanged['Lison_Globe']=="Off" ) then
commandArray['Lison globe_OFF'] = "Off"
end
return commandArray