Ok, I will bite back
I just use rule machine for complex logic BECAUSE simpler apps don't do it. As programmer, I like the power of rule machine. A while loop like this one (just some lines of a complex rule) is for me confusing:
In some weeks I don't remember that this is in fact a "while" loop, and I don't remember how I have done it. Second the need for a loop is a workaround for a device not always reacting on the first command.
The ability to add comments here like:
// This is the Rule Machine way to create a while loop
// Conditional actions -> Simple Conditional actions -> Repeat as action
// This loop is required to work around a problem with the Spirit device not always reacting on a command. Has to be reevaluated later (if fixed)
may be very useful once the rule takes 40 lines or more.
Just another note: Isn't something that starts with a condition (IF) and ends with a END-REP, instead of an END-IF confusing ?
The logic is to start with a loop, then install a looping condition and then to end the loop:
while (NOT Thermostat mode of Act_Heating_Living_Back heat)
..Thermostats: Act_Heating_Living_Back --> Mode: heat
..Delay: 10s
end while