Here is the whole script, in case you wonder: return { on = { devices = { 'ZW-Deur_1' } }, logging = { level = domoticz.LOG_INFO, marker = "reset-alarm"} , execute = function(dz, device) local siren = 'Siren Alarm' if (device.state == 'Off') and (dz.devices(siren).state == 'On') then dz.log('Alarm ...