Hi I have a problem to understand why my lua-code not working as i expected. See first this (properly working) test-lua-scene and the debug-result: Please login or register to see this code. Please login or register to see this attachment. As expected first was the function "funcDevices" performed. Second the function "funcSections". And then at last the function "funcRooms".   And now for my scene, which does not work as expected (code and result): Please login or register to see this code. 86080a6fee58308dbc7e786