Good Day all! need help on writing a LUA script, a lighting feedback group, example; cbus lighting gp address 1 to 4. any of the address 1 to 4, on will trigger [feedback address] gp5 to on and only gp address 1 to 4 is off will trigger gp5 to off. many thanks in advance. tried the below but failed, couldn't understand why. value1 = GetCBusState(0, 56, 1) value2 = GetCBusState(0, 56, 2) value3 = GetCBusState(0, 56, 3) value4 = GetCBusState(0, 56, 4) state1 = (value1 and value2 and value3 and value4) state2 = (value1 or value2 or value3 or value4) if (state1 == false) then SetCBusState(0, 56, 5, false) end if (state2 == true) then SetCBusState(0, 56, 5, true) end