Conditional Secondary info on entity card

Screenshot 2023-01-28 at 14.27.47
I currently have four cards set up (see image). The first two horizontal are horizontal stack cards with just the state of the appliances as secondary information.

The second horizontal row are conditional cards that display or disappear based on time remaining.

I am trying to combine the conditional idea into the first row of cards. What I want is for the secondary information to display either “off” or “(time remaining)”.

I’ve tried all sorts of things and just can’t seem to get it to work. Any help would be appreciated!