Hi there! Can someone please help me get this working. Cant find out why it wont Off. My intention is when every device is closed the light is Off . commandArray = {} a = 'Motion sensor' b = 'Light' c = 'door contact' d = 'lux' t = 'DUMMY' e = 500 -- Lys på ved Lux under verdien i (e) h = tonumber( ...