Help with scheduler and illuminance

What do you mean by this? Are you saying you want to delay sending the message if lux and schema are 'on', but send the off right away if one of them is not 'on'?

Two ways I can think of. (1) add a delay if the true side of the IF statement (not recommended) or (2) have the function node have two outputs.The true would go to one and the false would go to the other and on the true leg add a delay node into the flow.