Room automation light control - programming problem