Trying to set a trigger id for a conditional trigger later in the automation

Please follow the Community Guidelines by properly formatting configuration blocks.

It looks like you should be using a Template condition that uses the wait variable.