You forgot some quotes. return { on = { devices = { 441 }}, execute = function(dz) dz.devices("device name").SwitchOff() end } No, I didn't, but maybe this could help someone pinpoint the problem? (My script is called LED test BTW): The LCD controller has IDX of 440, ID C0A80079, Name "LED1" dz ...