First draft, but this largely works. Though I have questions, below.
The purpose is to provide priority notifications (fire, tornado warning, intruder, flood, that kind of top-priority things) in the environment. I'm using programmable bulbs in "nightlight" situations so they are present a number of places around the house. With multiple notifications I want to show that, not just the first one. By adding a second action statement in the inner if body I can also display this information on Inovelli switch LED strips at the same time. (Eventually, serious notifications probably should also go to various phones, and probably turn on all lights, but I'm still thinking through what's wanted.)
It's annoying to do in that it requires coding a section for each event type (as well as creating a virtual switch for it).
Current code is this:
One question I have is, if I were to change this to repeat say a million times (which really means until a human notices and resets the condition triggering it)...would that interfere with other rules in the hub? Just Rule Machine rules, or everything? Or would it all happen in parallel? (That first test for the conditions being reset, terminating the loop early, is there to help if I greatly increase the repeat count.)
I'm also not clear what would happen if, say, I triggered a fire alert, and while that was still displaying I triggered a tornado alert. Would I then have two copies of this rule running, maybe sending conflicting commands to the lights at random times? Or does RM limit it to one copy of the rule running? Or what?
And...why isn't any of this written down anywhere? Why do I have to learn everything by experiment?