Select working weather sensor automatically: automation creates an infinite loop

When using queued mode, you have to be careful when designing actions that will re-trigger the automation.

If used judiciously, it can be useful. For example, the automation for the following multi-zone irrigation controller is designed to call itself:

The automation changes value that are monitored by all three of its triggers.