Hi @all. I have 433mhz rollershutters and i would like to create a rule to be able to close two of them at the same time. I need about one second between the commands to let them work properly.
rule "Terrasse - alle 3 manuell"
when
Item roll104Manuell received command
then
switch (receivedCommand) {
case UP: sendCommand(roll104R, UP), Thread::sleep(3000), sendCommand(roll104M, UP)
case STOP: sendCommand(roll104R, STOP), Thread::sleep(1000), sendCommand(roll104M, STOP)
case DOWN: sendCommand(roll104R, DOWN), Thread::sleep(3000), sendCommand(roll104M, DOWN)
}
end
error:
2017-12-17 14:18:13.181 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'rollershutter.rules' has errors, therefore ignoring it: [467,47]: no viable alternative at input '::'
[467,60]: mismatched input ',' expecting 'end'