Dynamic wording on HA Dashboard

Hi folks,

Is there a way to change the name field dynamically when you place a sensor on a dashboard card?

For example if I place a sensor on a dashboard and I name it “Import value” when it’s a negative sensor value can I then dynamically nake it “export value” when the sensor value is positive?

TIA

I can think of a couple of ways.

You could create two sensor cards with different names and choose which is displayed with either the conditional card or the custom state switch card.

Or you could template the sensor card name with this custom card: 📝 100% Templatable Lovelace Configurations