Trigger IDs for repeat conditions

Hi, I have a script with “repeat until” actions with “and”/“or” for various “triggers” to break the loop. Depending on what breaks this loop, a specific action follows.

Right now, I have a “choose” action following the “repeat” to try to catch whatever broke the loop. It would be much easier and simpler if IDs could be specified for the conditions/triggers here:

repeat:
  until:
    - condition: or:                         <- ID
      conditions:
        - condition: and:                    <- ID
          conditions:
            - condition: state
            - condition: numeric_state
        - condition: and:                    <- ID
          conditions:
            - condition: state
            - condition: numeric_state
        - condition: numeric_state           <- ID
        - type: is_no_motion                 <- ID
        - type: is_open                      <- ID

Then I could use “choose” with IDs instead of “choose” and hope the status that broke the cycle hasn’t changed.

Thank you.