[SOLVED] Multiple ON and OFF's for crappy 433MHz-devices?

Put all your 433Mhz items in a group:

Group Group433

Then:

var Number repeat = 0
val Number maxRepeat = 3

rule "repeat 443Mhz"
when
    Member of Group433 received command
then
    repeat = repeat + 1
    if (repeat <= maxRepeat) {
        Thread::sleep(500)
        triggeringItem.sendCommand(receivedCommand)
    } else {
        repeat = 0
    }
end

BUT BE CAREFUL.
This will only work one item at a time. If you send a command to several items at once the rule will NOT work.
You will have to work with:

instead

1 Like