Dynamic selection of which entity to show using a template (in lovelace dashboard)

Other options:

State switch card (switches whole card, not just a row, based on a condition): https://github.com/thomasloven/lovelace-state-switch

Lovelace templates (use templates in an entities card): 📝 100% Templatable Lovelace Configurations