As far as I'm aware - correct me if I'm wrong - the bar used here is the possess bar. As for the macro condition for it, there is none. It was
requested (as posted on the previous page), along with the pet battle UI one. They responded saying they will add one for pet battles, but they made no mention of a possess bar condition.
Edit: Just noticed you posted there, derp. Link of the topic is a bit unnecessary then.