I have a strange behaviour when I call one blockly master script with different (blocky) rules.
My rules are based on the so-called “room mode”, which should trigger different scenarios depending on the room mode (automatic, manual, alarm, …).
For this I have created rules for the individual rooms, these rules then pass attributes to the same Maststerscript and should trigger the actions with timer there.
Rules:
are triggering this Master-Script:
Timer detail:
Unfortunately, something strange happens… Timers with individual names per room that are supposed to affect the triggering individual rooms seem to trigger actions in the other rooms.
My questions:
Is this a intentional behaviour?
Does it have something to do with the fact that Blockly creates unique IDs like
<variable id="Ln_=7P!L{7fYF/6]j`D%">to_pushover < /variable>
for all attributes in the background code and these are then overwritten again and again by the triggering rules?
Am I not allowed to trigger one script with running timers from different rules - does the timer refer to the clear name (in my case the room name) or the unique id?
Maybe it is an easy one to answer for @rlkoshak or @stefan.hoehn
…fun fact: I also know how to solve the problem… either multiple scripts or multiple individual rules that contain the script. But originally I wanted to avoid this and only update one script if I do have changes.





