I’ve been playing around with Lambdas, and I run into a problem.
I have a rule to controll my lightscene, and I have a fade lambda for fading. Sometimes I want to execute the lambda multiple times, simultaneous. The problem is, when I just put it on separate lines, it does the first one, and then the second one. Like this:
fade.apply(“H_Bed_Celling”, new HSBType(new DecimalType(0),new PercentType(100),new PercentType(0)), new HSBType(Color_H_Bed_Celling.state.toString), 15, receivedCommand, 10)
fade.apply(“H_All_NOBED”, new HSBType(new DecimalType(0),new PercentType(100),new PercentType(0)), new HSBType(Color_H_Living_Celling.state.toString), 120, receivedCommand, 0)
I have manage to get it to work, but then I use a timer around each line.
Is there a way to run a separte thread for the command, without using timer?