The event system is great but I agree with Jochen that you should enable this function again This is not advanced programming, it is useful also for simple events.
For example if you have a motion sensor that triggers several lights..
IF motion detector = ON {
IF light A = OFF {
=> TURN light A = ON for X minutes }
IF light B = OFF {
=> TURN light B = ON for X minutes }
IF light C = OFF {
=> TURN light C = ON for X minutes }
}
Offcourse you can create three events but I think the readability is better with nestled if-statements..
//Anders
CopyCatz wrote:Blockly creates a block of xml containing the statements. I have to parse all those statements and separate into 2 blocks: the conditions and the actions. Those are saved in the Domoticz database, so that Domoticz can evaluate the condition line and then execute the actions. If we would allow multiple if .. then's, then we would need multiple condition + action pairs per event, making it way more difficult. As said before, we want to keep the blockly interface simple for people who don't program for a living. If you want complexity, use scripts.Jochen wrote:CopyCatz killed my blockly-events
Why you disable this? It was running very well.